2002-11-13 18:41:30

by Luca

[permalink] [raw]
Subject: [2.5.47] Unable to load XFS module


Hi,
I'm playing with kernel 2.5.47. XFS support is compiled as module and at
boot time, while mounting /home, I get this:

insmod /lib/modules/2.5.47/kernel/fs/xfs/xfs.o failed

Then, trying to modprobe xfs by hand:

/lib/modules/2.5.47/kernel/fs/xfs/xfs.o: unresolved symbol page_states__per_cpu
/lib/modules/2.5.47/kernel/fs/xfs/xfs.o: insmod /lib/modules/2.5.47/kernel/fs/xfs/xfs.o failed
/lib/modules/2.5.47/kernel/fs/xfs/xfs.o: insmod xfs failed

I'm using modutils 2.4.19

ciao,
Luca
--
Home: http://kronoz.cjb.net
Windows /win'dohz/ n. : thirty-two bit extension and graphical shell to
a sixteen bit patch to an eight bit operating system originally coded
for a four bit microprocessor which was written by a two-bit company
that can't stand a bit of competition.


2002-11-13 19:14:17

by Andrew Morton

[permalink] [raw]
Subject: Re: [2.5.47] Unable to load XFS module

Kronos wrote:
>
> Hi,
> I'm playing with kernel 2.5.47. XFS support is compiled as module and at
> boot time, while mounting /home, I get this:
>
> insmod /lib/modules/2.5.47/kernel/fs/xfs/xfs.o failed
>
> Then, trying to modprobe xfs by hand:
>
> /lib/modules/2.5.47/kernel/fs/xfs/xfs.o: unresolved symbol page_states__per_cpu
> /lib/modules/2.5.47/kernel/fs/xfs/xfs.o: insmod /lib/modules/2.5.47/kernel/fs/xfs/xfs.o failed
> /lib/modules/2.5.47/kernel/fs/xfs/xfs.o: insmod xfs failed
>

You'll need to disable module symbol versioning, or apply this
patch from Rusty:



include/asm-generic/percpu.h | 6 ++++++
1 files changed, 6 insertions(+)

--- 25/include/asm-generic/percpu.h~genksyms-fix Wed Nov 13 00:57:06 2002
+++ 25-akpm/include/asm-generic/percpu.h Wed Nov 13 00:57:06 2002
@@ -35,4 +35,10 @@ extern unsigned long __per_cpu_offset[NR
#define EXPORT_PER_CPU_SYMBOL(var) EXPORT_SYMBOL(var##__per_cpu)
#define EXPORT_PER_CPU_SYMBOL_GPL(var) EXPORT_SYMBOL_GPL(var##__per_cpu)

+/* Genksyms can't follow the percpu declaration. Give it a fake one. */
+#ifdef __GENKSYMS__
+#undef DEFINE_PER_CPU
+#define DEFINE_PER_CPU(type, name) type name##__per_cpu
+#endif /*__GENKSYMS__*/
+
#endif /* _ASM_GENERIC_PERCPU_H_ */

_

2002-11-13 19:18:03

by Steve Lord

[permalink] [raw]
Subject: Re: [2.5.47] Unable to load XFS module

On Wed, 2002-11-13 at 12:48, Kronos wrote:
>
> Hi,
> I'm playing with kernel 2.5.47. XFS support is compiled as module and at
> boot time, while mounting /home, I get this:
>
> insmod /lib/modules/2.5.47/kernel/fs/xfs/xfs.o failed
>
> Then, trying to modprobe xfs by hand:
>
> /lib/modules/2.5.47/kernel/fs/xfs/xfs.o: unresolved symbol page_states__per_cpu
> /lib/modules/2.5.47/kernel/fs/xfs/xfs.o: insmod /lib/modules/2.5.47/kernel/fs/xfs/xfs.o failed
> /lib/modules/2.5.47/kernel/fs/xfs/xfs.o: insmod xfs failed

If you turn off modversions it works, this appears to be an issue
with the per_cpu variables and how module versioning works with
them.

Steve