Skip to content

Commit cbdb1f1

Browse files
andy-shevKAGA-KOKO
authored andcommitted
vdso/bits.h: Add BIT_ULL() for the sake of consistency
The minimization done in 3945ff3 ("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 <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 0c52310 commit cbdb1f1

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

include/linux/bits.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#include <vdso/bits.h>
77
#include <asm/bitsperlong.h>
88

9-
#define BIT_ULL(nr) (ULL(1) << (nr))
109
#define BIT_MASK(nr) (UL(1) << ((nr) % BITS_PER_LONG))
1110
#define BIT_WORD(nr) ((nr) / BITS_PER_LONG)
1211
#define BIT_ULL_MASK(nr) (ULL(1) << ((nr) % BITS_PER_LONG_LONG))

include/vdso/bits.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55
#include <vdso/const.h>
66

77
#define BIT(nr) (UL(1) << (nr))
8+
#define BIT_ULL(nr) (ULL(1) << (nr))
89

910
#endif /* __VDSO_BITS_H */

0 commit comments

Comments
 (0)