History

linux/bits.h: Extract common header for vDSO

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.

Vincenzo Frascino committed 6 years ago

Commit 3945ff31 parent 8165b572 files · +10 −1Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/bits.h+1−1
@@ -3,9 +3,9 @@ · 2 unmodified lines
3#define __LINUX_BITS_H3#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)