arch/ia64/include: remove CONFIG_IA64_DEBUG_CMPXCHG from uapi header
authorThomas Huth <thuth@redhat.com>
Wed, 26 Apr 2023 06:50:32 +0000 (08:50 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 18 Aug 2023 17:18:50 +0000 (10:18 -0700)
commit9702a046c2617b589dda7edac5b15e754315df3e
tree3803142de063aa5bd567e16dc0ed67d0c460596d
parentae96e0cdc78c816b93f9617d65d144162692c09c
arch/ia64/include: remove CONFIG_IA64_DEBUG_CMPXCHG from uapi header

CONFIG_* switches should not be exposed in uapi headers.  The macros that
are defined here are also only useful for the kernel code, so let's move
them to asm/cmpxchg.h instead.

The only two files that are using these macros are the headers
arch/ia64/include/asm/bitops.h and arch/ia64/include/asm/atomic.h and
these include asm/cmpxchg.h via asm/intrinsics.h, so this movement should
not cause any trouble.

Link: https://lkml.kernel.org/r/20230426065032.517693-1-thuth@redhat.com
Signed-off-by: Thomas Huth <thuth@redhat.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/ia64/include/asm/cmpxchg.h
arch/ia64/include/uapi/asm/cmpxchg.h
scripts/headers_install.sh