mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 06:32:08 +00:00
modules: mark ref_module static
ref_module isn't used anywhere outside of module.c. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jessica Yu <jeyu@kernel.org>
This commit is contained in:
parent
c6a8b84da4
commit
7ef5264de7
2 changed files with 2 additions and 5 deletions
|
@ -869,7 +869,7 @@ static int add_module_usage(struct module *a, struct module *b)
|
|||
}
|
||||
|
||||
/* Module a uses b: caller needs module_mutex() */
|
||||
int ref_module(struct module *a, struct module *b)
|
||||
static int ref_module(struct module *a, struct module *b)
|
||||
{
|
||||
int err;
|
||||
|
||||
|
@ -888,7 +888,6 @@ int ref_module(struct module *a, struct module *b)
|
|||
}
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(ref_module);
|
||||
|
||||
/* Clear the unload stuff of the module. */
|
||||
static void module_unload_free(struct module *mod)
|
||||
|
@ -1169,11 +1168,10 @@ static inline void module_unload_free(struct module *mod)
|
|||
{
|
||||
}
|
||||
|
||||
int ref_module(struct module *a, struct module *b)
|
||||
static int ref_module(struct module *a, struct module *b)
|
||||
{
|
||||
return strong_try_module_get(b);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(ref_module);
|
||||
|
||||
static inline int module_unload_init(struct module *mod)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue