* [2.5.47] Unable to load XFS module
@ 2002-11-13 18:48 Kronos
2002-11-13 19:19 ` Stephen Lord
2002-11-13 19:21 ` Andrew Morton
0 siblings, 2 replies; 3+ messages in thread
From: Kronos @ 2002-11-13 18:48 UTC (permalink / raw)
To: lord; +Cc: linux-kernel
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [2.5.47] Unable to load XFS module
2002-11-13 18:48 [2.5.47] Unable to load XFS module Kronos
@ 2002-11-13 19:19 ` Stephen Lord
2002-11-13 19:21 ` Andrew Morton
1 sibling, 0 replies; 3+ messages in thread
From: Stephen Lord @ 2002-11-13 19:19 UTC (permalink / raw)
To: kronos; +Cc: Linux Kernel Mailing List
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [2.5.47] Unable to load XFS module
2002-11-13 18:48 [2.5.47] Unable to load XFS module Kronos
2002-11-13 19:19 ` Stephen Lord
@ 2002-11-13 19:21 ` Andrew Morton
1 sibling, 0 replies; 3+ messages in thread
From: Andrew Morton @ 2002-11-13 19:21 UTC (permalink / raw)
To: kronos; +Cc: lord, linux-kernel
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_ */
_
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-11-13 19:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-13 18:48 [2.5.47] Unable to load XFS module Kronos
2002-11-13 19:19 ` Stephen Lord
2002-11-13 19:21 ` Andrew Morton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).