]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: static_call: include asm/insns.h
authorArnd Bergmann <arnd@arndb.de>
Thu, 11 Jun 2026 13:21:44 +0000 (15:21 +0200)
committerWill Deacon <will@kernel.org>
Fri, 19 Jun 2026 14:27:33 +0000 (15:27 +0100)
I came a cross a missing declaration in a randconfig build:

arch/arm64/kernel/static_call.c:16:5: error: call to undeclared function 'aarch64_insn_adrp_get_offset'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
   16 |                   aarch64_insn_adrp_get_offset(le32_to_cpup(tramp + 4)) +
      |                   ^

Include the header that contains this definition explicitly,
rather than relying on it to come indirectly through another
header.

Fixes: 54ac9ff8f119 ("arm64: Use static call trampolines when kCFI is enabled")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/static_call.c

index 8b3a19e108713e82a1c0192cb8a0eed699711f7b..c126edced022f4e1f891261aaa5165ff16a0a5db 100644 (file)
@@ -2,6 +2,7 @@
 #include <linux/static_call.h>
 #include <linux/memory.h>
 #include <asm/text-patching.h>
+#include <asm/insn.h>
 
 void arch_static_call_transform(void *site, void *tramp, void *func, bool tail)
 {