Skip to content

Remove #ifdef CONFIG_* from uapi headers (2023 edition)

Thomas Huth linux-arch linux-block linux-fsdevel lkml netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 2 repliesIn review
  2. v14 patches 8 repliesSuperseded

Changes in v2 from the cover letter

- Added Reviewed-bys from v1
- Changed the CONFIG_CDROM_PKTCDVD_WCACHE patch according to Christoph's suggestion
- Added final patch to clean the list in scripts/headers_install.sh

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5Move COMPAT_ATM_ADDPARTY to net/atm/svc.cinclude/uapi/linux/atmdev.h net/atm/svc.c+5 -40 replies
2/5Move ep_take_care_of_epollwakeup() to fs/eventpoll.cfs/eventpoll.c include/uapi/linux/eventpoll.h+13 -120 replies
3/5Move bp_type_idx to include/linux/hw_breakpoint.hinclude/linux/hw_breakpoint.h include/uapi/linux/hw_breakpoint.h tools/include/uapi/linux/hw_breakpoint.h+10 -200 replies
4/5pktcdvd: Remove CONFIG_CDROM_PKTCDVD_WCACHE from uapi headerdrivers/block/pktcdvd.c include/uapi/linux/pktcdvd.h+9 -151 reply
5/5scripts: Update the CONFIG_* ignore list in headers_install.shscripts/headers_install.sh+0 -40 replies

Reviews trailers per patch

4 of 5 patches have a Reviewed-by or Acked-by.

PatchAndrew WatermanAlbert OuArnd BergmannChristoph Hellwig
1/5R-b R-b R-b R-b
2/5R-b R-b R-b R-b
3/5R-b R-b R-b R-b
4/5R-b
5/5

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

Read the v2 thread

Cover letter [PATCH v2 0/5] Remove #ifdef CONFIG_* from uapi headers (2023 edition)

uapi headers should not use the kernel-internal CONFIG switches. Palmer Dabbelt sent some patches to clean this up a couple of years ago, but unfortunately some of those patches never got merged. So here's a rebased version of those patches - since they are rather trivial, I hope it's OK for everybody if they could go through Arnd's "generic include/asm header files" branch.

v2:
- Added Reviewed-bys from v1
- Changed the CONFIG_CDROM_PKTCDVD_WCACHE patch according to Christoph's suggestion
- Added final patch to clean the list in scripts/headers_install.sh

Palmer Dabbelt (3):
Move COMPAT_ATM_ADDPARTY to net/atm/svc.c Move ep_take_care_of_epollwakeup() to fs/eventpoll.c Move bp_type_idx to include/linux/hw_breakpoint.h

Thomas Huth (2):
pktcdvd: Remove CONFIG_CDROM_PKTCDVD_WCACHE from uapi header
scripts: Update the CONFIG_* ignore list in headers_install.sh

 drivers/block/pktcdvd.c                  | 13 +++++++++----
 fs/eventpoll.c                           | 13 +++++++++++++
 include/linux/hw_breakpoint.h            | 10 ++++++++++
 include/uapi/linux/atmdev.h              |  4 ----
 include/uapi/linux/eventpoll.h           | 12 ------------
 include/uapi/linux/hw_breakpoint.h       | 10 ----------
 include/uapi/linux/pktcdvd.h             | 11 -----------
 net/atm/svc.c                            |  5 +++++
 scripts/headers_install.sh               |  4 ----
 tools/include/uapi/linux/hw_breakpoint.h | 10 ----------
 10 files changed, 37 insertions(+), 55 deletions(-)
Signature · 1 line
2.31.1