diff options
author | Christoph Hellwig <hch@lst.de> | 2021-02-02 13:13:28 +0100 |
---|---|---|
committer | Jessica Yu <jeyu@kernel.org> | 2021-02-08 12:24:26 +0100 |
commit | 922f2a7c822bf76dffb218331bd95b1eea3cf637 (patch) | |
tree | e6f789265451fdeb57cbe76ef72a13f25d4dfcfb /include/linux/module.h | |
parent | 3e3552056ab42f883d7723eeb42fed712b66bacf (diff) | |
download | lwn-922f2a7c822bf76dffb218331bd95b1eea3cf637.tar.gz lwn-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.h | 2 |
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.*/ |