[PATCH 10/15] arm64: module-plts: inline linux/moduleloader.h
Arnd Bergmann
arnd at kernel.org
Tue May 16 09:06:37 PDT 2023
From: Arnd Bergmann <arnd at arndb.de>
module_frob_arch_sections() is declared in moduleloader.h, but
that is not included before the definition:
arch/arm64/kernel/module-plts.c:286:5: error: no previous prototype for 'module_frob_arch_sections' [-Werror=missing-prototypes]
Signed-off-by: Arnd Bergmann <arnd at arndb.de>
---
arch/arm64/kernel/module-plts.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm64/kernel/module-plts.c b/arch/arm64/kernel/module-plts.c
index 543493bf924d..ad02058756b5 100644
--- a/arch/arm64/kernel/module-plts.c
+++ b/arch/arm64/kernel/module-plts.c
@@ -7,6 +7,7 @@
#include <linux/ftrace.h>
#include <linux/kernel.h>
#include <linux/module.h>
+#include <linux/moduleloader.h>
#include <linux/sort.h>
static struct plt_entry __get_adrp_add_pair(u64 dst, u64 pc,
--
2.39.2
More information about the linux-arm-kernel
mailing list