public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
To: rusty@rustcorp.com.au
Cc: trivial@rustcorp.com.au, linux-kernel@vger.kernel.org
Subject: [PATCH] Runtime fix for intermodule.c
Date: Tue, 12 Jul 2005 23:39:20 +0200	[thread overview]
Message-ID: <20050712213920.GA9714@physik.fu-berlin.de> (raw)

[-- 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 */

             reply	other threads:[~2005-07-12 21:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-12 21:39 Adrian Glaubitz [this message]
2005-07-12 22:07 ` [PATCH] Runtime fix for intermodule.c 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050712213920.GA9714@physik.fu-berlin.de \
    --to=glaubitz@physik.fu-berlin.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rusty@rustcorp.com.au \
    --cc=trivial@rustcorp.com.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox