summaryrefslogtreecommitdiffstats
path: root/kernel/module.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2021-02-02 13:13:32 +0100
committerJessica Yu <jeyu@kernel.org>2021-02-08 12:27:43 +0100
commit00cc2c1cd34f81f777085cb2d65267edcd403fd0 (patch)
treecf67c063a6599fd8e19e03fd0fd272cf9197f46c /kernel/module.c
parent0b96615cdc091bcef9a48daa455b93631f196dea (diff)
downloadlinux-00cc2c1cd34f81f777085cb2d65267edcd403fd0.tar.gz
linux-00cc2c1cd34f81f777085cb2d65267edcd403fd0.tar.bz2
linux-00cc2c1cd34f81f777085cb2d65267edcd403fd0.zip
module: move struct symsearch to module.c
struct symsearch is only used inside of module.h, so move the definition out of module.h. Reviewed-by: Miroslav Benes <mbenes@suse.cz> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jessica Yu <jeyu@kernel.org>
Diffstat (limited to 'kernel/module.c')
-rw-r--r--kernel/module.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/kernel/module.c b/kernel/module.c
index 2e7ddf544338..9cd6814405b9 100644
--- a/kernel/module.c
+++ b/kernel/module.c
@@ -428,6 +428,17 @@ extern const s32 __start___kcrctab_unused_gpl[];
#define symversion(base, idx) ((base != NULL) ? ((base) + (idx)) : NULL)
#endif
+struct symsearch {
+ const struct kernel_symbol *start, *stop;
+ const s32 *crcs;
+ enum mod_license {
+ NOT_GPL_ONLY,
+ GPL_ONLY,
+ WILL_BE_GPL_ONLY,
+ } license;
+ bool unused;
+};
+
struct find_symbol_arg {
/* Input */
const char *name;