The header file is very generic and could be reused by other architectures as long as they provide __cmpxchg_u32(). Move sh's cmpxchg-xchg.h to asm-generic. Cc: Yoshinori Sato <ysato@xxxxxxxxxxxxxxxxxxxx> Cc: Rich Felker <dalias@xxxxxxxx> Cc: Arnd Bergmann <arnd@xxxxxxxx> Cc: linux-sh@xxxxxxxxxxxxxxx Cc: linux-arch@xxxxxxxxxxxxxxx Signed-off-by: Sebastian Andrzej Siewior <sebastian@xxxxxxxxxxxxx> --- arch/sh/include/asm/Kbuild | 1 + {arch/sh/include/asm => include/asm-generic}/cmpxchg-xchg.h | 0 2 files changed, 1 insertion(+) rename {arch/sh/include/asm => include/asm-generic}/cmpxchg-xchg.h (100%) diff --git a/arch/sh/include/asm/Kbuild b/arch/sh/include/asm/Kbuild index 51a54df22c110..08c1d96286d9d 100644 --- a/arch/sh/include/asm/Kbuild +++ b/arch/sh/include/asm/Kbuild @@ -1,5 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 generated-y += syscall_table.h +generic-y += cmpxchg-xchg.h generic-y += compat.h generic-y += current.h generic-y += delay.h diff --git a/arch/sh/include/asm/cmpxchg-xchg.h b/include/asm-generic/cmpxchg-xchg.h similarity index 100% rename from arch/sh/include/asm/cmpxchg-xchg.h rename to include/asm-generic/cmpxchg-xchg.h -- 2.23.0