mbox series

[0/4] Remove #ifdef CONFIG_* from uapi headers (2023 edition)

Message ID 20230217202301.436895-1-thuth@redhat.com (mailing list archive)
Headers show
Series Remove #ifdef CONFIG_* from uapi headers (2023 edition) | expand

Message

Thomas Huth Feb. 17, 2023, 8:22 p.m. UTC
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?

Palmer Dabbelt (4):
  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
  Move USE_WCACHING to drivers/block/pktcdvd.c

 drivers/block/pktcdvd.c                  | 11 +++++++++++
 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 +++++
 tools/include/uapi/linux/hw_breakpoint.h | 10 ----------
 9 files changed, 39 insertions(+), 47 deletions(-)

Comments

Arnd Bergmann Feb. 17, 2023, 9:11 p.m. UTC | #1
On Fri, Feb 17, 2023, at 21:22, Thomas Huth wrote:
> 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?

I just sent the pull request for the merge window an will be out
of office for most of next week. The patches all look good and
I provided a Reviewed-by: tag in case someone else wants to pick
up some or all of them. Otherwise I can apply them when I get
back.

    Arnd