diff options
author | Arnd Bergmann <arnd@arndb.de> | 2018-07-06 14:48:47 +0200 |
---|---|---|
committer | Jessica Yu <jeyu@kernel.org> | 2018-07-09 20:29:49 +0200 |
commit | 4d58e7034d1971436d44f203cf69d2feb6b82e5c (patch) | |
tree | c83c37638ad76b7d5c6f476fd066c6773d469d52 /kernel/module.c | |
parent | modsign: log module name in the event of an error (diff) | |
download | linux-4d58e7034d1971436d44f203cf69d2feb6b82e5c.tar.xz linux-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 'kernel/module.c')
0 files changed, 0 insertions, 0 deletions