[PATCH v1 0/2] kernel.h: Move out a couple of macros and constants
From: Andy Shevchenko
Date: Mon Mar 24 2025 - 06:52:47 EST
The kernel.h hosts a couple of macros and constants that may have been put
to a better place. Do that. Also add missing documentation.
No functional changes intended.
Andy Shevchenko (1):
kernel.h: Move PTR_IF() and u64_to_user_ptr() to util_macros.h
Ingo Molnar (1):
kernel.h: Move READ/WRITE definitions to <linux/types.h>
include/linux/kernel.h | 14 +-------
include/linux/types.h | 4 +++
include/linux/util_macros.h | 66 +++++++++++++++++++++++++++++++++++++
3 files changed, 71 insertions(+), 13 deletions(-)
--
2.47.2