aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/module.h
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2018-07-06 14:48:47 +0200
committerJessica Yu <jeyu@kernel.org>2018-07-09 20:29:49 +0200
commit4d58e7034d1971436d44f203cf69d2feb6b82e5c (patch)
treec83c37638ad76b7d5c6f476fd066c6773d469d52 /arch/arm/include/asm/module.h
parentmodsign: log module name in the event of an error (diff)
downloadlinux-dev-4d58e7034d1971436d44f203cf69d2feb6b82e5c.tar.xz
linux-dev-4d58e7034d1971436d44f203cf69d2feb6b82e5c.zip
ARM: module: fix modsign build error
The asm/module.h header file can not be included standalone, which breaks the module signing code after a recent change: In file included from kernel/module-internal.h:13, from kernel/module_signing.c:17: arch/arm/include/asm/module.h:37:27: error: 'struct module' declared inside parameter list will not be visible outside of this definition or declaration [-Werror] u32 get_module_plt(struct module *mod, unsigned long loc, Elf32_Addr val); This adds a forward declaration of struct module to make it all work. Fixes: f314dfea16a0 ("modsign: log module name in the event of an error") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Russell King <rmk+kernel@armlinux.org.uk> Signed-off-by: Jessica Yu <jeyu@kernel.org>
Diffstat (limited to 'arch/arm/include/asm/module.h')
-rw-r--r--arch/arm/include/asm/module.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/include/asm/module.h b/arch/arm/include/asm/module.h
index 89ad0596033a..9e81b7c498d8 100644
--- a/arch/arm/include/asm/module.h
+++ b/arch/arm/include/asm/module.h
@@ -34,6 +34,7 @@ struct mod_arch_specific {
#endif
};
+struct module;
u32 get_module_plt(struct module *mod, unsigned long loc, Elf32_Addr val);
/*