History

module: move struct symsearch to module.c

struct symsearch is only used inside of module.h, so move the definition out of module.h.

Christoph Hellwig committed 5 years ago

Commit 00cc2c11 parent 0b966152 files · +11 −11Browse files

Unified · Split

2 files
  1. include/linux/module.h +0 −11
  2. kernel/module.c +11 −0
include/linux/module.h+0−11
@@ -587,17 +587,6 @@ static inline bool within_module(unsigned long addr, const struct module *mod) · 586 unmodified lines
587/* Search for module by name: must be in a RCU-sched critical section. */587/* Search for module by name: must be in a RCU-sched critical section. */
588struct module *find_module(const char *name);588struct module *find_module(const char *name);
589 589
590struct 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/* Returns 0 and fills in value, defined and namebuf, or -ERANGE if590/* Returns 0 and fills in value, defined and namebuf, or -ERANGE if
602 symnum out of range. */591 symnum out of range. */
603int module_get_kallsym(unsigned int symnum, unsigned long *value, char *type,592int module_get_kallsym(unsigned int symnum, unsigned long *value, char *type,
kernel/module.c+11−0
@@ -428,6 +428,17 @@ extern const s32 __start___kcrctab_unused_gpl[]; · 427 unmodified lines
428#define symversion(base, idx) ((base != NULL) ? ((base) + (idx)) : NULL)428#define symversion(base, idx) ((base != NULL) ? ((base) + (idx)) : NULL)
429#endif429#endif
430 430
431struct 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
431struct find_symbol_arg {442struct find_symbol_arg {
432 /* Input */443 /* Input */
433 const char *name;444 const char *name;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t