UPSTREAM: modules: mark ref_module static
ref_module isn't used anywhere outside of module.c.
Bug: 157965270
Bug: 171277690
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jessica Yu <jeyu@kernel.org>
(cherry picked from commit 7ef5264de7)
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I68f39675f53b745664c833ac150d838563c78aae
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
cbd55f8de6
commit
ec46411eb4
@@ -648,7 +648,6 @@ static inline void __module_get(struct module *module)
|
|||||||
#define symbol_put_addr(p) do { } while (0)
|
#define symbol_put_addr(p) do { } while (0)
|
||||||
|
|
||||||
#endif /* CONFIG_MODULE_UNLOAD */
|
#endif /* CONFIG_MODULE_UNLOAD */
|
||||||
int ref_module(struct module *a, struct module *b);
|
|
||||||
|
|
||||||
/* This is a #define so the string doesn't get put in every .o file */
|
/* This is a #define so the string doesn't get put in every .o file */
|
||||||
#define module_name(mod) \
|
#define module_name(mod) \
|
||||||
|
|||||||
@@ -866,7 +866,7 @@ static int add_module_usage(struct module *a, struct module *b)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Module a uses b: caller needs module_mutex() */
|
/* 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;
|
int err;
|
||||||
|
|
||||||
@@ -885,7 +885,6 @@ int ref_module(struct module *a, struct module *b)
|
|||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(ref_module);
|
|
||||||
|
|
||||||
/* Clear the unload stuff of the module. */
|
/* Clear the unload stuff of the module. */
|
||||||
static void module_unload_free(struct module *mod)
|
static void module_unload_free(struct module *mod)
|
||||||
@@ -1165,11 +1164,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);
|
return strong_try_module_get(b);
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(ref_module);
|
|
||||||
|
|
||||||
static inline int module_unload_init(struct module *mod)
|
static inline int module_unload_init(struct module *mod)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user