Skip to contentSkip to conversation

Kernel build fail with MODVERSIONS=y

DISCUSSION Cédric Schieli 1 participant 1 message Aug 17, 2005

lore
Share & tools
lore
#0 lore raw

Kernel build fail for me since changeset 6192 if I enable MODVERSIONS in my kernel (2.6) config with this error :

...
LD arch/xen/i386/kernel/built-in.o
arch/xen/i386/kernel/i386_ksyms.o(*ABS*+0x2602faa9): In function `__crc_dma_alloc_coherent':
i386_ksyms.c: multiple definition of __crc_dma_alloc_coherent' arch/xen/i386/kernel/i386_ksyms.o(*ABS*+0xb210325d): In function __crc_dma_free_coherent':
i386_ksyms.c: multiple definition of `__crc_dma_free_coherent' make[1]: *** [arch/xen/i386/kernel/built-in.o] Error 1
make: *** [arch/xen/i386/kernel] Error 2

EXPORT_SYMBOL(dma_alloc_coherent) and EXPORT_SYMBOL(dma_free_coherent) appear in both i386_ksyms.c and pci-dma.c

Removing those in i386_ksyms.c solved the problem for me.