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

Message ID 20230310160757.199253-1-thuth@redhat.com
Headers
Series Remove #ifdef CONFIG_* from uapi headers (2023 edition) |

Message

Thomas Huth March 10, 2023, 4:07 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.

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(-)
  

Comments

Arnd Bergmann March 10, 2023, 8:06 p.m. UTC | #1
On Fri, Mar 10, 2023, at 17:07, 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.
>
> 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

Thanks for the rebase, applied to the asm-generic tree now, as I'm
fairly optimistic they are all good.

    Arnd