Skip to content

kernel.h cleanups

Joe Perches lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest14 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14kernel.h: Consolidate console and logging functions and definesinclude/linux/kernel.h+196 -1870 replies
2/14kernel.h: Checkpatch cleaninginclude/linux/kernel.h+64 -630 replies
3/14kernel.h: ARRAY_SIZE neateninginclude/linux/kernel.h+2 -10 replies
4/14kernel.h: Add argument names to strtoXX, Xscanf prototypesinclude/linux/kernel.h+24 -120 replies
5/14kernel.h: printk neateninginclude/linux/kernel.h+53 -370 replies
6/14drivers/firmware/iscsi_ibft.c: Use %pI4 to print netmaskdrivers/firmware/iscsi_ibft.c+3 -50 replies
7/14kernel.h: Move NIPQUAD and NIPQUAD_FMT to in.hinclude/linux/in.h include/linux/kernel.h+11 -110 replies
8/14kernel.h: Group math and limits functions, indent function argsinclude/linux/kernel.h+44 -280 replies
9/14kernel.h: Don't use NORET_AND just use noreturn, insteadinclude/linux/kernel.h+1 -10 replies
10/14kernel.h: Remove ATTRIB_NORET, use __attribute__((noreturn))include/linux/kernel.h+2 -20 replies
11/14kernel.h: Remove uses of NORET_TYPEinclude/linux/kernel.h+3 -30 replies
12/14kernel.h: Add pr_<level>_onceinclude/linux/kernel.h+69 -360 replies
13/14kernel.h: Kernel address utility aggregation and other neateninginclude/linux/kernel.h+45 -240 replies
14/14kernel/exit.c and kernel/panic.c: Remove unused NORET_TYPEkernel/exit.c kernel/panic.c+3 -32 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/14] kernel.h cleanups

No one seems to like taking patches for kernel.h so I'm sending these to Linus and seeing what happens.

kernel.h has become a chaotic jumble collected over time. Collect the functions and #defines together in logical groups. Do some checkpatch neatening and make it more style conformant.

Compiled x86 allnoconfig, allyesconfig, defconfig

Joe Perches (14):
kernel.h: Consolidate console and logging functions and defines kernel.h: Checkpatch cleaning
kernel.h: ARRAY_SIZE neatening
kernel.h: Add argument names to strtoXX, Xscanf prototypes kernel.h: printk neatening drivers/firmware/iscsi_ibft.c: Use %pI4 to print netmask kernel.h: Move NIPQUAD and NIPQUAD_FMT to in.h kernel.h: Group math and limits functions, indent function args kernel.h: Don't use NORET_AND just use noreturn, instead kernel.h: Remove ATTRIB_NORET, use __attribute__((noreturn)) kernel.h: Remove uses of NORET_TYPE
kernel.h: Add pr_<level>_once
kernel.h: Kernel address utility aggregation and other neatening kernel/exit.c and kernel/panic.c: Remove unused NORET_TYPE

 drivers/firmware/iscsi_ibft.c |    8 +-
 include/linux/in.h            |   11 +
 include/linux/kernel.h        |  742 +++++++++++++++++++++++------------------
 kernel/exit.c                 |    4 +-
 kernel/panic.c                |    2 +-
 5 files changed, 437 insertions(+), 330 deletions(-)