Re: [2.5.47] Unable to load XFS module

Andrew Morton (akpm@digeo.com)
Wed, 13 Nov 2002 11:21:02 -0800


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

_
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/