[PATCH v1 0/8] Fast kernel headers: split linux/kernel.h

From: Max Kellermann
Date: Thu Feb 15 2024 - 04:37:06 EST


This patch set aims to clean up the linux/kernel.h header and reduce
dependencies on it by moving parts out.

(These patches were part of my previous "fast kernel headers" pull
request which was found hard to review due to its huge size. I'm now
trying to resend smaller chunks of it, hoping they are easier to
review.)

Max Kellermann (8):
include/linux/goldfish.h: include linux/wordpart.h instead of
linux/kernel.h
include/drm/drm_fixed.h: include linux/wordpart.h instead of
linux/kernel.h
include linux/wordpart.h in various sources that need it
linux/random.h: reduce dependencies on linux/kernel.h
linux/kernel.h: move might_sleep(), ... to sched/debug_atomic_sleep.h
linux/kernel.h: move READ and WRITE to direction.h
linux/kernel.h: move VERIFY_OCTAL_PERMISSIONS() to octal_permissions.h
linux/kernel.h: move PTR_IF() to ptr_util.h

arch/arc/kernel/perf_event.c | 1 +
arch/arm64/include/asm/syscall.h | 1 +
arch/arm64/kvm/handle_exit.c | 1 +
drivers/bus/uniphier-system-bus.c | 1 +
drivers/edac/thunderx_edac.c | 1 +
drivers/gpio/gpio-sim.c | 1 +
drivers/gpu/drm/i915/i915_driver.c | 1 +
drivers/hwmon/occ/common.c | 1 +
drivers/input/misc/iqs7222.c | 1 +
drivers/irqchip/irq-gic-v3-its.c | 1 +
drivers/media/platform/amphion/vpu_dbg.c | 1 +
drivers/memstick/core/memstick.c | 1 +
drivers/memstick/host/jmb38x_ms.c | 1 +
drivers/memstick/host/r592.c | 1 +
drivers/memstick/host/rtsx_pci_ms.c | 1 +
drivers/memstick/host/rtsx_usb_ms.c | 1 +
drivers/memstick/host/tifm_ms.c | 1 +
drivers/pinctrl/pinctrl-ingenic.c | 1 +
drivers/soc/aspeed/aspeed-uart-routing.c | 1 +
drivers/spi/spi-pci1xxxx.c | 1 +
fs/ext4/super.c | 1 +
fs/hfs/hfs_fs.h | 1 +
fs/hfsplus/hfsplus_fs.h | 1 +
fs/notify/fanotify/fanotify_user.c | 1 +
fs/open.c | 1 +
fs/overlayfs/copy_up.c | 1 +
fs/ufs/util.h | 1 +
fs/xfs/xfs_error.c | 1 +
include/drm/drm_fixed.h | 2 +-
include/linux/clk.h | 1 +
include/linux/direction.h | 9 ++
include/linux/dma-fence.h | 1 +
include/linux/goldfish.h | 2 +-
include/linux/gpio/consumer.h | 2 +-
include/linux/kernel.h | 125 -----------------------
include/linux/mmu_notifier.h | 1 +
include/linux/moduleparam.h | 2 +-
include/linux/nd.h | 1 +
include/linux/octal_permissions.h | 20 ++++
include/linux/pm.h | 1 +
include/linux/ptr_util.h | 7 ++
include/linux/pwm.h | 2 +
include/linux/qed/common_hsi.h | 1 +
include/linux/random.h | 4 +-
include/linux/rcutiny.h | 1 +
include/linux/sched.h | 1 +
include/linux/sched/debug_atomic_sleep.h | 114 +++++++++++++++++++++
include/linux/sched/mm.h | 2 +-
include/linux/sysfs.h | 1 +
include/linux/uaccess.h | 1 +
include/linux/uio.h | 2 +-
include/linux/wait.h | 1 +
include/linux/wait_bit.h | 1 +
include/rdma/uverbs_ioctl.h | 3 +-
include/soc/fsl/bman.h | 2 +
include/soc/fsl/qman.h | 1 +
security/landlock/object.c | 1 +
security/landlock/ruleset.c | 1 +
58 files changed, 207 insertions(+), 134 deletions(-)
create mode 100644 include/linux/direction.h
create mode 100644 include/linux/octal_permissions.h
create mode 100644 include/linux/ptr_util.h
create mode 100644 include/linux/sched/debug_atomic_sleep.h

--
2.39.2