We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b280bb2 commit a5743f3Copy full SHA for a5743f3
include/linux/minmax.h
@@ -106,8 +106,7 @@
106
__auto_type uval = (val); \
107
__auto_type ulo = (lo); \
108
__auto_type uhi = (hi); \
109
- static_assert(__builtin_choose_expr(__is_constexpr((lo) > (hi)), \
110
- (lo) <= (hi), true), \
+ BUILD_BUG_ON_MSG(statically_true(ulo > uhi), \
111
"clamp() low limit " #lo " greater than high limit " #hi); \
112
BUILD_BUG_ON_MSG(!__types_ok3(uval, ulo, uhi), \
113
"clamp("#val", "#lo", "#hi") signedness error"); \
0 commit comments