[PATCH] Runtime fix for intermodule.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Rusty,

As it seeems that you are the maintainer of the module
related code in the Linux kernel, I send these
two small patches to you:

This little patch adds the missing function declaration
of the deprecatated function call inter_module_get
to the header file include/linux/module.h and the
necessary EXPORT_SYMBOL to kernel/intermodule.c. Without
the declaration and the EXPORT_SYMBOL any module that requires
the inter_module_get call will fail upon loading
since the symbol inter_module_get cannot be resolved,
applying this patch will make those modules work again.

Kernel version is 2.6.12.1

Affected modules are for example the ltmodem drivers
version 8.31a8 for lucent chipsets, they won't
work without the fix.

Regards,

Adrian Glaubitz
([email protected])

--- kernel/intermodule.c.orig	2005-07-12 23:19:29.000000000 +0200
+++ kernel/intermodule.c	2005-07-12 23:19:58.000000000 +0200
@@ -180,3 +180,4 @@ EXPORT_SYMBOL(inter_module_register);
 EXPORT_SYMBOL(inter_module_unregister);
 EXPORT_SYMBOL(inter_module_get_request);
 EXPORT_SYMBOL(inter_module_put);
+EXPORT_SYMBOL(inter_module_get);
--- include/linux/module.h.orig	2005-07-12 22:58:20.000000000 +0200
+++ include/linux/module.h	2005-07-12 22:31:45.000000000 +0200
@@ -566,5 +566,6 @@ extern void __deprecated inter_module_un
 extern const void * __deprecated inter_module_get_request(const char *,
 		const char *);
 extern void __deprecated inter_module_put(const char *);
+extern const void * __deprecated inter_module_get(const char *);
 
 #endif /* _LINUX_MODULE_H */

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux