]> git.baikalelectronics.ru Git - kernel.git/commit
module: mark module_mutex static
authorChristoph Hellwig <hch@lst.de>
Tue, 2 Feb 2021 12:13:28 +0000 (13:13 +0100)
committerJessica Yu <jeyu@kernel.org>
Mon, 8 Feb 2021 11:24:26 +0000 (12:24 +0100)
commit922f2a7c822bf76dffb218331bd95b1eea3cf637
treee6f789265451fdeb57cbe76ef72a13f25d4dfcfb
parent3e3552056ab42f883d7723eeb42fed712b66bacf
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>
include/linux/module.h
kernel/module.c
lib/bug.c