Commit 05d6f1cc authored by Thomas Weißschuh's avatar Thomas Weißschuh Committed by Andrew Morton
Browse files

compiler.h: remove ARCH_SEL()

Its last user was removed in commit 8ea81539 ("compiler: remove
__ADDRESSABLE_ASM{_STR,}() again").

Link: https://lkml.kernel.org/r/20251013-arch-sel-v1-1-7eef9b22ceb0@linutronix.de


Signed-off-by: default avatarThomas Weißschuh <thomas.weissschuh@linutronix.de>
Cc: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 1b34743c
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -269,12 +269,6 @@ static inline void *offset_to_ptr(const int *off)

#endif /* __ASSEMBLY__ */

#ifdef CONFIG_64BIT
#define ARCH_SEL(a,b) a
#else
#define ARCH_SEL(a,b) b
#endif

/*
 * Force the compiler to emit 'sym' as a symbol, so that we can reference
 * it from inline assembler. Necessary in case 'sym' could be inlined