Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

vdso/bits.h: Add BIT_ULL() for the sake of consistency

The minimization done in 3945ff37d2f4 ("linux/bits.h: Extract common header
for vDSO") was required to isolate the VDSO build from the larger kernel
header impact.

The split added some inconsistency since BIT() and BIT_ULL() are now
defined in the different files which confuses unprepared reader.

Move BIT_ULL() to vdso/bits.h. No functional change.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20221128141003.77929-1-andriy.shevchenko@linux.intel.com

authored by

Andy Shevchenko and committed by
Thomas Gleixner
cbdb1f16 0c52310f

+1 -1
-1
include/linux/bits.h
··· 6 6 #include <vdso/bits.h> 7 7 #include <asm/bitsperlong.h> 8 8 9 - #define BIT_ULL(nr) (ULL(1) << (nr)) 10 9 #define BIT_MASK(nr) (UL(1) << ((nr) % BITS_PER_LONG)) 11 10 #define BIT_WORD(nr) ((nr) / BITS_PER_LONG) 12 11 #define BIT_ULL_MASK(nr) (ULL(1) << ((nr) % BITS_PER_LONG_LONG))
+1
include/vdso/bits.h
··· 5 5 #include <vdso/const.h> 6 6 7 7 #define BIT(nr) (UL(1) << (nr)) 8 + #define BIT_ULL(nr) (ULL(1) << (nr)) 8 9 9 10 #endif /* __VDSO_BITS_H */