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
587587 /* Search for module by name: must be in a RCU-sched critical section. */
588588 struct module *find_module(const char *name);
589589
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−
601590 /* Returns 0 and fills in value, defined and namebuf, or -ERANGE if
602591 symnum out of range. */
603592 int 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
428428 #define symversion(base, idx) ((base != NULL) ? ((base) + (idx)) : NULL)
429429 #endif
430430
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+
431442 struct find_symbol_arg {
432443 /* Input */
433444 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