Skip to contentSkip to conversation

Latest SVN version: tasklist_lock not exported with UP

Xenomai-help M. Koehrer 2 participants 2 messages Jan 3, 2007

lore
Share & tools
lore

M. Koehrer

author
#0 lore raw

Hi all,

using the latest SVN version (#2039) of Xenomai on a 2.6.19.1 kernel (Pentium 4), I found out that the build is broken if the nucleus skin is compiled as module and if UP (and not SMP) is selected.
in arch/i386/kernel/ipipe.c
the EXPORT_SYMBOL(tasklist_lock)
is encapsulated in a #ifdef CONFIG_SMP
which is not true for a UP kernel.

Regards

Mathias

Signature · 9 lines
Mathias Koehrer
[email protected]


Viel oder wenig? Schnell oder langsam? Unbegrenzt surfen + telefonieren
ohne Zeit- und Volumenbegrenzung? DAS TOP ANGEBOT JETZT bei Arcor: günstig
und schnell mit DSL - das All-Inclusive-Paket für clevere Doppel-Sparer,
nur  44,85 €  inkl. DSL- und ISDN-Grundgebühr!
http://www.arcor.de/rd/emf-dsl-2
#1 lore raw
Quoted 9 lines · M. Koehrer

Hi all,

using the latest SVN version (#2039) of Xenomai on a 2.6.19.1 kernel (Pentium 4), I found out that the build is broken if the nucleus skin is compiled as module and if UP (and not SMP) is selected.
in arch/i386/kernel/ipipe.c
the EXPORT_SYMBOL(tasklist_lock)
is encapsulated in a #ifdef CONFIG_SMP
which is not true for a UP kernel.

Apply this, or disable CONFIG_DEBUG_SPINLOCK until the fix is merged into the next I-pipe release:

i386/kernel/ipipe.c renamed from i386/kernel/ipipe.c~ +3 -1
@@ -900,8 +900,10 @@
 EXPORT_SYMBOL_GPL(__switch_to);
 EXPORT_SYMBOL_GPL(show_stack);
 EXPORT_PER_CPU_SYMBOL_GPL(init_tss);
-#ifdef CONFIG_SMP
+#if defined(CONFIG_SMP) || defined(CONFIG_DEBUG_SPINLOCK)
 EXPORT_SYMBOL(tasklist_lock);
+#endif /* CONFIG_SMP || CONFIG_DEBUG_SPINLOCK */
+#ifdef CONFIG_SMP
 EXPORT_SYMBOL(__ipipe_logical_cpuid);
 EXPORT_PER_CPU_SYMBOL_GPL(cpu_tlbstate);
 #endif /* CONFIG_SMP */
Quoted 5 lines

Regards

Mathias

Signature · 1 line
Philippe.