Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Christoph Hellwig and committed by
Jessica Yu
00cc2c1c 0b96615c

+11 -11
-11
include/linux/module.h
··· 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,
+11
kernel/module.c
··· 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;