aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/module.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2021-02-02 13:13:28 +0100
committerJessica Yu <jeyu@kernel.org>2021-02-08 12:24:26 +0100
commit922f2a7c822bf76dffb218331bd95b1eea3cf637 (patch)
treee6f789265451fdeb57cbe76ef72a13f25d4dfcfb /include/linux/module.h
parentkallsyms: only build {,module_}kallsyms_on_each_symbol when required (diff)
downloadlinux-dev-922f2a7c822bf76dffb218331bd95b1eea3cf637.tar.xz
linux-dev-922f2a7c822bf76dffb218331bd95b1eea3cf637.zip
module: mark module_mutex static
Except for two lockdep asserts module_mutex is only used in module.c. Remove the two asserts given that the functions they are in are not exported and just called from the module code, and mark module_mutex static. Reviewed-by: Miroslav Benes <mbenes@suse.cz> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jessica Yu <jeyu@kernel.org>
Diffstat (limited to 'include/linux/module.h')
-rw-r--r--include/linux/module.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/module.h b/include/linux/module.h
index 3ea4ffae608f..0f360c48fe92 100644
--- a/include/linux/module.h
+++ b/include/linux/module.h
@@ -550,8 +550,6 @@ static inline unsigned long kallsyms_symbol_value(const Elf_Sym *sym)
}
#endif
-extern struct mutex module_mutex;
-
/* FIXME: It'd be nice to isolate modules during init, too, so they
aren't used before they (may) fail. But presently too much code
(IDE & SCSI) require entry into the module during init.*/