struct symsearch is only used inside of module.h, so move the definition out of module.h.
Unified · Split
| @@ -587,17 +587,6 @@ static inline bool within_module(unsigned long addr, const struct module *mod) · 586 unmodified lines | ||
| 587 | 587 | /* Search for module by name: must be in a RCU-sched critical section. */ |
| 588 | 588 | struct module *find_module(const char *name); |
| 589 | 589 | |
| 590 | −struct symsearch { | |
| 591 | − const struct kernel_symbol *start, *stop; | |
| 592 | − const s32 *crcs; | |
| 593 | − enum mod_license { | |
| 594 | − NOT_GPL_ONLY, | |
| 595 | − GPL_ONLY, | |
| 596 | − WILL_BE_GPL_ONLY, | |
| 597 | − } license; | |
| 598 | − bool unused; | |
| 599 | −}; | |
| 600 | − | |
| 601 | 590 | /* Returns 0 and fills in value, defined and namebuf, or -ERANGE if |
| 602 | 591 | symnum out of range. */ |
| 603 | 592 | int module_get_kallsym(unsigned int symnum, unsigned long *value, char *type, |
| @@ -428,6 +428,17 @@ extern const s32 __start___kcrctab_unused_gpl[]; · 427 unmodified lines | ||
| 428 | 428 | #define symversion(base, idx) ((base != NULL) ? ((base) + (idx)) : NULL) |
| 429 | 429 | #endif |
| 430 | 430 | |
| 431 | +struct symsearch { | |
| 432 | + const struct kernel_symbol *start, *stop; | |
| 433 | + const s32 *crcs; | |
| 434 | + enum mod_license { | |
| 435 | + NOT_GPL_ONLY, | |
| 436 | + GPL_ONLY, | |
| 437 | + WILL_BE_GPL_ONLY, | |
| 438 | + } license; | |
| 439 | + bool unused; | |
| 440 | +}; | |
| 441 | + | |
| 431 | 442 | struct find_symbol_arg { |
| 432 | 443 | /* Input */ |
| 433 | 444 | const char *name; |