ARM: module: fix modsign build error
authorArnd Bergmann <arnd@arndb.de>
Fri, 6 Jul 2018 12:48:47 +0000 (14:48 +0200)
committerJessica Yu <jeyu@kernel.org>
Mon, 9 Jul 2018 18:29:49 +0000 (20:29 +0200)
commit4d58e7034d1971436d44f203cf69d2feb6b82e5c
treec83c37638ad76b7d5c6f476fd066c6773d469d52
parentf314dfea16a085a58d2ff227ea9fa9e490ee5d18
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>
arch/arm/include/asm/module.h