* [PATCH] Runtime fix for intermodule.c
@ 2005-07-12 21:39 Adrian Glaubitz
2005-07-12 22:07 ` Christoph Hellwig
2005-07-12 22:25 ` [PATCH] " Alexey Dobriyan
0 siblings, 2 replies; 6+ messages in thread
From: Adrian Glaubitz @ 2005-07-12 21:39 UTC (permalink / raw)
To: rusty; +Cc: trivial, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 789 bytes --]
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
(glaubitz@physik.fu-berlin.de)
[-- Attachment #2: intermodule.c.diff --]
[-- Type: text/plain, Size: 336 bytes --]
--- 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);
[-- Attachment #3: module.h.diff --]
[-- Type: text/plain, Size: 439 bytes --]
--- 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 */
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] Runtime fix for intermodule.c
2005-07-12 21:39 [PATCH] Runtime fix for intermodule.c Adrian Glaubitz
@ 2005-07-12 22:07 ` Christoph Hellwig
2005-07-13 8:19 ` Adrian Glaubitz
2005-07-13 10:56 ` Jan Engelhardt
2005-07-12 22:25 ` [PATCH] " Alexey Dobriyan
1 sibling, 2 replies; 6+ messages in thread
From: Christoph Hellwig @ 2005-07-12 22:07 UTC (permalink / raw)
To: Adrian Glaubitz; +Cc: rusty, trivial, linux-kernel
On Tue, Jul 12, 2005 at 11:39:20PM +0200, Adrian Glaubitz wrote:
> 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.
There's a reason you shouldn't use it, and because of that it's
not exported.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] Runtime fix for intermodule.c
2005-07-12 21:39 [PATCH] Runtime fix for intermodule.c Adrian Glaubitz
2005-07-12 22:07 ` Christoph Hellwig
@ 2005-07-12 22:25 ` Alexey Dobriyan
1 sibling, 0 replies; 6+ messages in thread
From: Alexey Dobriyan @ 2005-07-12 22:25 UTC (permalink / raw)
To: Adrian Glaubitz; +Cc: rusty, linux-kernel
On Wednesday 13 July 2005 01:39, Adrian Glaubitz wrote:
> 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.
> Affected modules are for example the ltmodem drivers
> version 8.31a8 for lucent chipsets, they won't
> work without the fix.
Just to be sure I read what I read: you are asking for reexport of a function
that was officially deprecated 9 months ago on the grounds that said reexport
would be useful for a crappy [1] proprietary module?
[1] Semi-randomly freezing serial mouse after loading.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] Runtime fix for intermodule.c
2005-07-12 22:07 ` Christoph Hellwig
@ 2005-07-13 8:19 ` Adrian Glaubitz
2005-07-13 10:56 ` Jan Engelhardt
1 sibling, 0 replies; 6+ messages in thread
From: Adrian Glaubitz @ 2005-07-13 8:19 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: linux-kernel
> > 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.
>
> There's a reason you shouldn't use it, and because of that it's
> not exported.
I am sorry ! Since I didn't see any reason why not, I added
the export to code again to make my modem work with
the latest kernel versions. Well, I will need to try to
fix the driver then. I think I can use symbol_get instead,
can't I ?
Regards,
Adrian Glaubitz
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Runtime fix for intermodule.c
2005-07-12 22:07 ` Christoph Hellwig
2005-07-13 8:19 ` Adrian Glaubitz
@ 2005-07-13 10:56 ` Jan Engelhardt
2005-07-13 11:38 ` Arjan van de Ven
1 sibling, 1 reply; 6+ messages in thread
From: Jan Engelhardt @ 2005-07-13 10:56 UTC (permalink / raw)
Cc: Linux Kernel Mailing List
>> since the symbol inter_module_get cannot be resolved,
>> applying this patch will make those modules work again.
>
>There's a reason you shouldn't use it, and because of that it's
>not exported.
Oh BTW, while we're at it: With what should I replace inter_module_get? I'm
maintaining an "ancient-sufficient" nvidia driver for myself that uses it in
one or two places.
Jan Engelhardt
--
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Runtime fix for intermodule.c
2005-07-13 10:56 ` Jan Engelhardt
@ 2005-07-13 11:38 ` Arjan van de Ven
0 siblings, 0 replies; 6+ messages in thread
From: Arjan van de Ven @ 2005-07-13 11:38 UTC (permalink / raw)
To: Jan Engelhardt; +Cc: Linux Kernel Mailing List
On Wed, 2005-07-13 at 12:56 +0200, Jan Engelhardt wrote:
> >> since the symbol inter_module_get cannot be resolved,
> >> applying this patch will make those modules work again.
> >
> >There's a reason you shouldn't use it, and because of that it's
> >not exported.
>
> Oh BTW, while we're at it: With what should I replace inter_module_get? I'm
> maintaining an "ancient-sufficient" nvidia driver for myself that uses it in
> one or two places.
if it does that to talk to agp you have to remove it since the agp side
of things isn't there anymore since several kernel releases.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-07-13 11:38 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-12 21:39 [PATCH] Runtime fix for intermodule.c Adrian Glaubitz
2005-07-12 22:07 ` Christoph Hellwig
2005-07-13 8:19 ` Adrian Glaubitz
2005-07-13 10:56 ` Jan Engelhardt
2005-07-13 11:38 ` Arjan van de Ven
2005-07-12 22:25 ` [PATCH] " Alexey Dobriyan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox