summaryrefslogtreecommitdiffstats
path: root/kernel/module.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-07-30 08:10:20 +0200
committerJessica Yu <jeyu@kernel.org>2020-08-01 16:04:55 +0200
commit7ef5264de773279b9f23b6cc8afb5addb30e970b (patch)
tree0ca13dc21c372afaf6a830cd97c9df8158b112f5 /kernel/module.c
parentc6a8b84da4c28bda61b842a089651c3ec9d89a48 (diff)
downloadlinux-7ef5264de773279b9f23b6cc8afb5addb30e970b.tar.gz
linux-7ef5264de773279b9f23b6cc8afb5addb30e970b.tar.bz2
linux-7ef5264de773279b9f23b6cc8afb5addb30e970b.zip
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>
Diffstat (limited to 'kernel/module.c')
-rw-r--r--kernel/module.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/kernel/module.c b/kernel/module.c
index e8a198588f26..baae0e83d630 100644
--- a/kernel/module.c
+++ b/kernel/module.c
@@ -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)
{