Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

module: unexport find_module and module_mutex

find_module is not used by modular code any more, and random driver code
has no business calling it to start with.

Reviewed-by: Miroslav Benes <mbenes@suse.cz>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jessica Yu <jeyu@kernel.org>

authored by

Christoph Hellwig and committed by
Jessica Yu
089049f6 bf22c9ec

-2
-2
kernel/module.c
··· 88 88 * (delete and add uses RCU list operations). 89 89 */ 90 90 DEFINE_MUTEX(module_mutex); 91 - EXPORT_SYMBOL_GPL(module_mutex); 92 91 static LIST_HEAD(modules); 93 92 94 93 /* Work queue for freeing init sections in success case */ ··· 671 672 module_assert_mutex(); 672 673 return find_module_all(name, strlen(name), false); 673 674 } 674 - EXPORT_SYMBOL_GPL(find_module); 675 675 676 676 #ifdef CONFIG_SMP 677 677