aboutsummaryrefslogtreecommitdiffstats
path: root/lib/fault-inject.c
diff options
context:
space:
mode:
authorVincent Mailhol <[email protected]>2024-11-13 17:18:33 +0000
committerYury Norov <[email protected]>2024-12-30 18:29:25 +0000
commit4463a445a64b719e6f501d80dcc5872dde42eb73 (patch)
tree04244fea57ef778284b9c3f586fab9f49e9a9495 /lib/fault-inject.c
parentcompiler.h: add const_true() (diff)
downloadkernel-4463a445a64b719e6f501d80dcc5872dde42eb73.tar.gz
kernel-4463a445a64b719e6f501d80dcc5872dde42eb73.zip
linux/bits.h: simplify GENMASK_INPUT_CHECK()
In GENMASK_INPUT_CHECK(), __builtin_choose_expr(__is_constexpr((l) > (h)), (l) > (h), 0) is the exact expansion of: const_true((l) > (h)) Apply const_true() to simplify GENMASK_INPUT_CHECK(). CC: Linus Torvalds <[email protected]> CC: Rasmus Villemoes <[email protected]> CC: Luc Van Oostenryck <[email protected]> Reviewed-by: Yury Norov <[email protected]>, Signed-off-by: Vincent Mailhol <[email protected]> Signed-off-by: Yury Norov <[email protected]>
Diffstat (limited to 'lib/fault-inject.c')
0 files changed, 0 insertions, 0 deletions