* BUG: v2.4.1 missing EXPORT_SYMBOL
@ 2001-01-31 20:44 Eric Kasten
2001-01-31 21:04 ` Ken Sandars
2001-02-01 0:40 ` BUG: " Keith Owens
0 siblings, 2 replies; 4+ messages in thread
From: Eric Kasten @ 2001-01-31 20:44 UTC (permalink / raw)
To: linux-kernel
Hi,
Quick bug report for kernel 2.4.1. There needs to be a
EXPORT_SYMBOL(name_to_kdev_t); at the bottom of linux/init/main.c.
name_to_kdev_t is used by the md driver (and maybe others). If the
driver is built as a module it won't load due to the missing symbol.
...Eric
Eric Kasten
kasten@nscl.msu.edu
National Superconducting Cyclotron Lab
(517) 333-6412
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: v2.4.1 missing EXPORT_SYMBOL
2001-01-31 20:44 BUG: v2.4.1 missing EXPORT_SYMBOL Eric Kasten
@ 2001-01-31 21:04 ` Ken Sandars
2001-02-01 0:40 ` BUG: " Keith Owens
1 sibling, 0 replies; 4+ messages in thread
From: Ken Sandars @ 2001-01-31 21:04 UTC (permalink / raw)
To: kasten, linux-kernel
----- Original Message -----
From: "Eric Kasten" <kasten@nscl.msu.edu>
To: <linux-kernel@vger.kernel.org>
Sent: Wednesday, January 31, 2001 8:44 PM
Subject: BUG: v2.4.1 missing EXPORT_SYMBOL
> Hi,
>
> Quick bug report for kernel 2.4.1. There needs to be a
> EXPORT_SYMBOL(name_to_kdev_t); at the bottom of linux/init/main.c.
> name_to_kdev_t is used by the md driver (and maybe others). If the
> driver is built as a module it won't load due to the missing symbol.
>
> ...Eric
>
> Eric Kasten
> kasten@nscl.msu.edu
> National Superconducting Cyclotron Lab
> (517) 333-6412
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> Please read the FAQ at http://www.tux.org/lkml/
>
Thanks, Eric
That does the trick for me.
Ken Sandars
ksandars@eurologic.com
Eurologic Systems
+44 117 930 9621
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: BUG: v2.4.1 missing EXPORT_SYMBOL
2001-01-31 20:44 BUG: v2.4.1 missing EXPORT_SYMBOL Eric Kasten
2001-01-31 21:04 ` Ken Sandars
@ 2001-02-01 0:40 ` Keith Owens
2001-02-01 15:15 ` Eric Kasten
1 sibling, 1 reply; 4+ messages in thread
From: Keith Owens @ 2001-02-01 0:40 UTC (permalink / raw)
To: kasten; +Cc: linux-kernel, Ken Sandars
On Wed, 31 Jan 2001 15:44:29 -0500 (EST),
Eric Kasten <kasten@nscl.msu.edu> wrote:
>Quick bug report for kernel 2.4.1. There needs to be a
>EXPORT_SYMBOL(name_to_kdev_t); at the bottom of linux/init/main.c.
>name_to_kdev_t is used by the md driver (and maybe others). If the
>driver is built as a module it won't load due to the missing symbol.
Don't blame us when the driver gets an oops. name_to_kdev_t is defined
__init so the code is discarded after boot and the area is reused as
scratch space. You must not EXPORT_SYMBOL() any __init or __exit code.
The only place name_to_kdev_t is used in md is in the md_setup routine,
that routine probably only makes sense when md is built in, not when md
is a module. I recommend wrapping md_setup and all its data in #ifndef
MODULE.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: BUG: v2.4.1 missing EXPORT_SYMBOL
2001-02-01 0:40 ` BUG: " Keith Owens
@ 2001-02-01 15:15 ` Eric Kasten
0 siblings, 0 replies; 4+ messages in thread
From: Eric Kasten @ 2001-02-01 15:15 UTC (permalink / raw)
To: Keith Owens; +Cc: linux-kernel, Ken Sandars
> On Wed, 31 Jan 2001 15:44:29 -0500 (EST),
> Eric Kasten <kasten@nscl.msu.edu> wrote:
> >Quick bug report for kernel 2.4.1. There needs to be a
> >EXPORT_SYMBOL(name_to_kdev_t); at the bottom of linux/init/main.c.
> >name_to_kdev_t is used by the md driver (and maybe others). If the
> >driver is built as a module it won't load due to the missing symbol.
>
> Don't blame us when the driver gets an oops. name_to_kdev_t is defined
> __init so the code is discarded after boot and the area is reused as
> scratch space. You must not EXPORT_SYMBOL() any __init or __exit code.
>
> The only place name_to_kdev_t is used in md is in the md_setup routine,
> that routine probably only makes sense when md is built in, not when md
> is a module. I recommend wrapping md_setup and all its data in #ifndef
> MODULE.
Which is fine by me. I'm not using the md driver much on 2.4.1 at the
moment -- just testing to make sure that most of the things that I'll
use in the longer run are working. Hence, pass on what I know of the
problem and what appears to fix it and hopefully get a bit of a review
by those buried deeper in the kernel than I am (have time to be)
at the moment (which you have aptly provided).
Thanks.
...Eric
Eric Kasten
kasten@nscl.msu.edu
National Superconducting Cyclotron Lab
(517) 333-6412
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-02-01 15:16 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-31 20:44 BUG: v2.4.1 missing EXPORT_SYMBOL Eric Kasten
2001-01-31 21:04 ` Ken Sandars
2001-02-01 0:40 ` BUG: " Keith Owens
2001-02-01 15:15 ` Eric Kasten
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox