]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ARC: Always use SWAPE instructions for __arch_swab32()
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Wed, 14 Jan 2026 07:28:13 +0000 (08:28 +0100)
committerArnd Bergmann <arnd@arndb.de>
Fri, 30 Jan 2026 15:46:17 +0000 (16:46 +0100)
commitb4171fd0b091072f403b66bf05d01051d4bd94d9
tree8f1879b05b4fb316d08015d04d7cbe3b7b56add1
parenteed444d02585b426645532166ede3e2427db901d
ARC: Always use SWAPE instructions for __arch_swab32()

Since commit 67a697e7576 ("ARC: retire ARC750 support") all supported
CPUs have the 'swape' instruction.

Always use the implementation of __arch_swabe() which uses 'swape'.
ARCH_USE_BUILTIN_BSWAP can not be used as that results on libcalls on
-mcpu=arc700.

As as side-effect, remove a leak of an internal kconfig symbol through
the UAPI headers.

Suggested-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/lkml/0ae2688a-5a22-405b-adaf-9b5ad712b245@app.fastmail.com/
Suggested-by: Vineet Gupta <vgupta@kernel.org>
Link: https://lore.kernel.org/lkml/a033a402-e3c5-4982-9fff-b6a4c55817ae@kernel.org/
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arc/Kconfig
arch/arc/Makefile
arch/arc/include/uapi/asm/swab.h
scripts/headers_install.sh