Skip to contentSkip to conversation

[2.5.47] Unable to load XFS module

DISCUSSION Kronos 3 participants 3 messages Nov 13, 2002 Generic include/asm header files

lore
Share & tools
lore

Kronos

author
#0 lore raw

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

Signature · 5 lines
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.
#1 lore raw
Quoted 5 lines · Kronos

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:

Quoted 8 lines

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(+)
include/asm-generic/percpu.h renamed from include/asm-generic/percpu.h~genksyms-fix +6 -0
@@ -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_ */

_

#2 lore raw
In reply to Kronos
Quoted 5 lines · Kronos

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:

Quoted 7 lines

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