summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2021-02-02 13:13:24 +0100
committerJessica Yu <jeyu@kernel.org>2021-02-08 12:21:16 +0100
commit089049f6c9956c5cf1fc89fe10229c76e99f4bef (patch)
tree684bc28d48d87d7171f82955f486865a61055bc8 /kernel
parentdrm: remove drm_fb_helper_modinit (diff)
downloadlinux-089049f6c9956c5cf1fc89fe10229c76e99f4bef.tar.xz
linux-089049f6c9956c5cf1fc89fe10229c76e99f4bef.zip
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>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/module.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/module.c b/kernel/module.c
index 1e5aad812310..8fb16e704b89 100644
--- a/kernel/module.c
+++ b/kernel/module.c
@@ -88,7 +88,6 @@
* (delete and add uses RCU list operations).
*/
DEFINE_MUTEX(module_mutex);
-EXPORT_SYMBOL_GPL(module_mutex);
static LIST_HEAD(modules);
/* Work queue for freeing init sections in success case */
@@ -672,7 +671,6 @@ struct module *find_module(const char *name)
module_assert_mutex();
return find_module_all(name, strlen(name), false);
}
-EXPORT_SYMBOL_GPL(find_module);
#ifdef CONFIG_SMP