diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2025-01-26 14:03:44 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2025-01-26 14:03:44 -0800 |
commit | 5fb40886243b64b8e084b99d983a19c10e296e9c (patch) | |
tree | 941a3dc7901d2e54be1ba6b166ac6ca21ae45911 /include/linux/bits.h | |
parent | c2da8b3f914f83fb9089d26a692eb8f22146ddb9 (diff) | |
parent | e876695aab1e3d4743e11633219cea456820660b (diff) |
Merge tag 'bitmap-for-6.14' of https://github.com:/norov/linux
Pull bitmap updates from Yury Norov:
"This includes const_true() series from Vincent Mailhol, another
__always_inline rework from Nathan Chancellor for RISCV, and a couple
of random fixes from Dr. David Alan Gilbert and I Hsin Cheng"
* tag 'bitmap-for-6.14' of https://github.com:/norov/linux:
cpumask: Rephrase comments for cpumask_any*() APIs
cpu: Remove unused init_cpu_online
riscv: Always inline bitops
linux/bits.h: simplify GENMASK_INPUT_CHECK()
compiler.h: add const_true()
Diffstat (limited to 'include/linux/bits.h')
-rw-r--r-- | include/linux/bits.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/linux/bits.h b/include/linux/bits.h index 60044b608817..61a75d3f294b 100644 --- a/include/linux/bits.h +++ b/include/linux/bits.h @@ -20,9 +20,8 @@ */ #if !defined(__ASSEMBLY__) #include <linux/build_bug.h> -#define GENMASK_INPUT_CHECK(h, l) \ - (BUILD_BUG_ON_ZERO(__builtin_choose_expr( \ - __is_constexpr((l) > (h)), (l) > (h), 0))) +#include <linux/compiler.h> +#define GENMASK_INPUT_CHECK(h, l) BUILD_BUG_ON_ZERO(const_true((l) > (h))) #else /* * BUILD_BUG_ON_ZERO is not available in h files included from asm files, |