Skip to contentSkip to conversation

Bug in ipipe patch?

Xenomai-core Steven A. Falco 2 participants 2 messages Apr 18, 2008 – Apr 21, 2008

lore
Share & tools
lore
#0 lore raw

I don't know if this has already been reported, but I think there is a bug in file:

    adeos-ipipe-2.6.24-powerpc-DENX-2.1-01.patch

specifically for the file ipipe.c.

The macro "EXPORT_SYMBOL_GPL(tasklist_lock)" appears in two places; once outside of any ifdef, and once inside the "#else /* !CONFIG_PPC64 */" ifdef.

Consequently, when building for a 32-bit processor, I get a "redefined" error:

/home/sfalco/linux/embedded/ppc3/linux/linux-2.6-denx/arch/powerpc/kernel/ipipe.c:747:
error: redefinition of '__kstrtab_tasklist_lock' /home/sfalco/linux/embedded/ppc3/linux/linux-2.6-denx/arch/powerpc/kernel/ipipe.c:724:
error: previous definition of '__kstrtab_tasklist_lock' was here

Steve

#1 lore raw
Quoted 11 lines · Steven A. Falco

I don't know if this has already been reported, but I think there is a bug in file:

    adeos-ipipe-2.6.24-powerpc-DENX-2.1-01.patch

specifically for the file ipipe.c.

The macro "EXPORT_SYMBOL_GPL(tasklist_lock)" appears in two places; once outside of any ifdef, and once inside the "#else /* !CONFIG_PPC64 */" ifdef.

Quoted 8 lines

Consequently, when building for a 32-bit processor, I get a "redefined" error:

/home/sfalco/linux/embedded/ppc3/linux/linux-2.6-denx/arch/powerpc/kernel/ipipe.c:747:
error: redefinition of '__kstrtab_tasklist_lock' /home/sfalco/linux/embedded/ppc3/linux/linux-2.6-denx/arch/powerpc/kernel/ipipe.c:724:
error: previous definition of '__kstrtab_tasklist_lock' was here

Fixed in my tree, thanks.

Quoted 8 lines

Steve

_______________________________________________
Xenomai-core mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-core

Signature · 1 line
Philippe.