[PATCH v3 0/4] Unload linux/kernel.h

Yury Norov (NVIDIA) posted 4 patches 1 week, 3 days ago
Documentation/filesystems/sysfs.rst           |   2 +-
.../drm/i915/gt/selftest_ring_submission.c    |   1 +
drivers/gpu/drm/i915/i915_selftest.h          |   2 +
include/linux/kernel.h                        | 210 +-----------------
include/linux/moduleparam.h                   |   7 +-
include/linux/sysfs.h                         |  13 ++
include/linux/trace_printk.h                  | 205 +++++++++++++++++
7 files changed, 229 insertions(+), 211 deletions(-)
create mode 100644 include/linux/trace_printk.h
[PATCH v3 0/4] Unload linux/kernel.h
Posted by Yury Norov (NVIDIA) 1 week, 3 days ago
kernel.h hosts declarations that can be placed better.

No major changes since v2. For testing details, see v2.

v1: https://lore.kernel.org/all/20251129195304.204082-1-yury.norov@gmail.com/
v2: https://lore.kernel.org/all/20251203162329.280182-1-yury.norov@gmail.com/
v3:
 - rename linux/tracing.h to linux/trace_printk.h (Steven);
 - cleanup headers better (Andy);

Yury Norov (NVIDIA) (4):
  kernel.h: drop STACK_MAGIC macro
  moduleparam: include required headers explicitly
  kernel.h: move VERIFY_OCTAL_PERMISSIONS() to sysfs.h
  tracing: move tracing declarations from kernel.h to a dedicated header

 Documentation/filesystems/sysfs.rst           |   2 +-
 .../drm/i915/gt/selftest_ring_submission.c    |   1 +
 drivers/gpu/drm/i915/i915_selftest.h          |   2 +
 include/linux/kernel.h                        | 210 +-----------------
 include/linux/moduleparam.h                   |   7 +-
 include/linux/sysfs.h                         |  13 ++
 include/linux/trace_printk.h                  | 205 +++++++++++++++++
 7 files changed, 229 insertions(+), 211 deletions(-)
 create mode 100644 include/linux/trace_printk.h

-- 
2.43.0