mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-26 14:17:26 -04:00
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>
This commit is contained in:
parent
0b96615cdc
commit
00cc2c1cd3
2 changed files with 11 additions and 11 deletions
|
@ -587,17 +587,6 @@ static inline bool within_module(unsigned long addr, const struct module *mod)
|
||||||
/* Search for module by name: must be in a RCU-sched critical section. */
|
/* Search for module by name: must be in a RCU-sched critical section. */
|
||||||
struct module *find_module(const char *name);
|
struct module *find_module(const char *name);
|
||||||
|
|
||||||
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;
|
|
||||||
};
|
|
||||||
|
|
||||||
/* Returns 0 and fills in value, defined and namebuf, or -ERANGE if
|
/* Returns 0 and fills in value, defined and namebuf, or -ERANGE if
|
||||||
symnum out of range. */
|
symnum out of range. */
|
||||||
int module_get_kallsym(unsigned int symnum, unsigned long *value, char *type,
|
int module_get_kallsym(unsigned int symnum, unsigned long *value, char *type,
|
||||||
|
|
|
@ -428,6 +428,17 @@ extern const s32 __start___kcrctab_unused_gpl[];
|
||||||
#define symversion(base, idx) ((base != NULL) ? ((base) + (idx)) : NULL)
|
#define symversion(base, idx) ((base != NULL) ? ((base) + (idx)) : NULL)
|
||||||
#endif
|
#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 {
|
struct find_symbol_arg {
|
||||||
/* Input */
|
/* Input */
|
||||||
const char *name;
|
const char *name;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue