aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJason A. Donenfeld <[email protected]>2022-09-26 15:34:34 +0200
committerAndrew Morton <[email protected]>2022-11-18 13:55:07 -0800
commit5efcecd9a3b18078d3398b359a84c83f549e22cf (patch)
tree006d1fe563fa148ba64c2d72040dd0fe738d6d0f /tools/perf/scripts/python
parentf07c647c1f62b3334c2be50b75609ffb20df71d3 (diff)
minmax: sanity check constant bounds when clamping
The clamp family of functions only makes sense if hi>=lo. If hi and lo are compile-time constants, then raise a build error. Doing so has already caught buggy code. This also introduces the infrastructure to improve the clamping function in subsequent commits. [[email protected]: coding-style cleanups] [[email protected]: s@&&\@&& \@] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Jason A. Donenfeld <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Cc: Kees Cook <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions