headers/prep: kernel.h: Move READ/WRITE definitions to <linux/types.h>
PATCH 1/1 headers/prep: kernel.h: Move READ/WRITE definitions to <linux/types.h>
From: Ingo Molnar <[email protected]>
Headers shouldn't be forced to include <linux/kernel.h> just to gain these simple constants.
Signed-off-by Ingo Molnar <[email protected]>
Signed-off-by Andy Shevchenko <[email protected]>
--- include/linux/kernel.h | 4 ---- include/linux/types.h | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-)
include/linux/kernel.h +0 -4
@@ -45,10 +45,6 @@*/ #define REPEAT_BYTE (x) ((~0ul / 0xff) * (x)) -/* generic data direction definitions */ -#define READ 0 -#define WRITE 1 -/** * ARRAY_SIZE - get the number of elements in array @arr * @arr: array to be sized
include/linux/types.h +4 -0
@@ -125,6 +125,10 @@ typedef s64 int64_t;typedef u64 sector_t ;typedef u64 blkcnt_t ; +/* generic data direction definitions */ +#define READ 0 +#define WRITE 1 +/* * The type of an index into the pagecache. */
Signature · 1 line
2.35.1