The vDSO library should only include the necessary headers required for a userspace library (UAPI and a minimal set of kernel headers). To make this possible it is necessary to isolate from the kernel headers the common parts that are strictly necessary to build the library. Split bits.h into linux and common headers to make the latter suitable for inclusion in the vDSO library.
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -3,9 +3,9 @@ · 2 unmodified lines | |||
| 3 | #define __LINUX_BITS_H | 3 | #define __LINUX_BITS_H |
| 4 | 4 | ||
| 5 | #include <linux/const.h> | 5 | #include <linux/const.h> |
| 6 | #include <vdso/bits.h> | ||
| 6 | #include <asm/bitsperlong.h> | 7 | #include <asm/bitsperlong.h> |
| 7 | 8 | ||
| 8 | #define BIT(nr) (UL(1) << (nr)) | ||
| 9 | #define BIT_ULL(nr) (ULL(1) << (nr)) | 9 | #define BIT_ULL(nr) (ULL(1) << (nr)) |
| 10 | #define BIT_MASK(nr) (UL(1) << ((nr) % BITS_PER_LONG)) | 10 | #define BIT_MASK(nr) (UL(1) << ((nr) % BITS_PER_LONG)) |
| 11 | #define BIT_WORD(nr) ((nr) / BITS_PER_LONG) | 11 | #define BIT_WORD(nr) ((nr) / BITS_PER_LONG) |