Skip to content

kernel.h: Split out a couple of macros to args.h

Andy Shevchenko linux-arm-kernel linux-kselftest linux-pci linux-trace-kernel lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest4 patches 3 repliesIn review 3 of 4 applied
  2. v34 patches 0 repliesSuperseded
  3. v21 patch 3 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v11 patch4 repliesSuperseded

Patches in v4 3 of 4 applied

#Subject and filesSizeRepliesApplied
1/4kernel.h: Split out COUNT_ARGS() and CONCATENATE() to args.hinclude/kunit/test.h include/linux/args.h include/linux/kernel.h +2 more+32 -83 replies
2/4x86/asm: Replace custom COUNT_ARGS() & CONCATENATE() implementationsarch/x86/include/asm/rmwcc.h+3 -80 repliesApplied
3/4arm64: smccc: Replace custom COUNT_ARGS() & CONCATENATE() implementationsinclude/linux/arm-smccc.h+32 -370 repliesApplied
4/4genetlink: Replace custom CONCATENATE() implementationinclude/linux/genl_magic_func.h include/linux/genl_magic_struct.h+17 -180 repliesApplied

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchSteven Rostedt (Google)David GowBjorn Helgaas
1/4A-b A-b A-b
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v4 thread

Cover letter [PATCH v4 0/4] kernel.h: Split out a couple of macros to args.h

There are macros in kernel.h that can be used outside of that header. Split them to args.h and replace open coded variants.

Test compiled with make allmodconfig for x86_64. Test cross-compiled with make multi_v7_defconfig for arm.

(Note that positive diff statistics is due to documentation being updated.)

In v4:
- fixed compilation error on arm (LKP, Stephen)

In v3:
- split to a series of patches
- fixed build issue on make allmodconfig for x86_64 (Andrew)

In v2:
- converted existing users at the same time (Andrew, Rasmus)
- documented how it does work (Andrew, Rasmus)

Andy Shevchenko (4):
kernel.h: Split out COUNT_ARGS() and CONCATENATE() to args.h x86/asm: Replace custom COUNT_ARGS() & CONCATENATE() implementations
arm64: smccc: Replace custom COUNT_ARGS() & CONCATENATE()
implementations
genetlink: Replace custom CONCATENATE() implementation

 arch/x86/include/asm/rmwcc.h      | 11 ++---
 include/kunit/test.h              |  1 +
 include/linux/args.h              | 28 +++++++++++++
 include/linux/arm-smccc.h         | 69 ++++++++++++++-----------------
 include/linux/genl_magic_func.h   | 27 ++++++------
 include/linux/genl_magic_struct.h |  8 ++--
 include/linux/kernel.h            |  7 ----
 include/linux/pci.h               |  2 +-
 include/trace/bpf_probe.h         |  2 +
 9 files changed, 84 insertions(+), 71 deletions(-)
 create mode 100644 include/linux/args.h
Signature · 1 line
2.40.0.1.gaa8946217a0b