Skip to contentSkip to conversation

kernel/intermodule.c: make inter_module_get static

PATCH New Adrian Bunk 1 participant 1 message Dec 12, 2004 Module support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel/intermodule.c: make inter_module_get static

In -mm, there's no longer any user of inter_module_get outside of intermodule.c .

diffstat output:

 include/linux/module.h |    1 -
 kernel/intermodule.c   |    3 +--
 2 files changed, 1 insertion(+), 3 deletions(-)
include/linux/module.h renamed from include/linux/module.h.old +0 -1
@@ -571,7 +571,6 @@
 extern void __deprecated inter_module_register(const char *,
 		struct module *, const void *);
 extern void __deprecated inter_module_unregister(const char *);
-extern const void * __deprecated inter_module_get(const char *);
 extern const void * __deprecated inter_module_get_request(const char *,
 		const char *);
 extern void __deprecated inter_module_put(const char *);
kernel/intermodule.c renamed from kernel/intermodule.c.old +1 -2
@@ -113,7 +113,7 @@
  * Try to increment the use count on the owning module, if that fails
  * then return NULL.  Otherwise return the userdata.
  */
-const void *inter_module_get(const char *im_name)
+static const void *inter_module_get(const char *im_name)
 {
 	struct list_head *tmp;
 	struct inter_module_entry *ime;
@@ -178,6 +178,5 @@
 
 EXPORT_SYMBOL(inter_module_register);
 EXPORT_SYMBOL(inter_module_unregister);
-EXPORT_SYMBOL(inter_module_get);
 EXPORT_SYMBOL(inter_module_get_request);
 EXPORT_SYMBOL(inter_module_put);