Skip to content

Commit 7731104

Browse files
Christoph HellwigJessica Yu
authored andcommitted
modules: mark find_symbol static
find_symbol is only used in module.c. Signed-off-by: Christoph Hellwig <[email protected]> Signed-off-by: Jessica Yu <[email protected]>
1 parent 7ef5264 commit 7731104

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

include/linux/module.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -590,17 +590,6 @@ struct symsearch {
590590
bool unused;
591591
};
592592

593-
/*
594-
* Search for an exported symbol by name.
595-
*
596-
* Must be called with module_mutex held or preemption disabled.
597-
*/
598-
const struct kernel_symbol *find_symbol(const char *name,
599-
struct module **owner,
600-
const s32 **crc,
601-
bool gplok,
602-
bool warn);
603-
604593
/*
605594
* Walk the exported symbol table
606595
*

kernel/module.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ static bool find_exported_symbol_in_section(const struct symsearch *syms,
585585

586586
/* Find an exported symbol and return it, along with, (optional) crc and
587587
* (optional) module which owns it. Needs preempt disabled or module_mutex. */
588-
const struct kernel_symbol *find_symbol(const char *name,
588+
static const struct kernel_symbol *find_symbol(const char *name,
589589
struct module **owner,
590590
const s32 **crc,
591591
bool gplok,
@@ -608,7 +608,6 @@ const struct kernel_symbol *find_symbol(const char *name,
608608
pr_debug("Failed to find symbol %s\n", name);
609609
return NULL;
610610
}
611-
EXPORT_SYMBOL_GPL(find_symbol);
612611

613612
/*
614613
* Search for module by name: must hold module_mutex (or preempt disabled

0 commit comments

Comments
 (0)