Skip to contentSkip to conversation

linux-next: build failure after merge of the iommu tree

DISCUSSION Stephen Rothwell 3 participants 3 messages Jul 8, 2014 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi Joerg,

After merging the iommu tree, today's linux-next build (powerpc ppc64_defconfig) failed like this:

arch/powerpc/platforms/built-in.o:(.opd+0x29e8): multiple definition of iommu_device_destroy' arch/powerpc/kernel/built-in.o:(.opd+0x5628): first defined here arch/powerpc/platforms/built-in.o: In function .iommu_device_unlink':
(.text+0x13240): multiple definition of .iommu_device_unlink' arch/powerpc/kernel/built-in.o:(.text+0x2b240): first defined here arch/powerpc/platforms/built-in.o: In function .iommu_device_create':
(.text+0x13210): multiple definition of .iommu_device_create' arch/powerpc/kernel/built-in.o:(.text+0x2b210): first defined here arch/powerpc/platforms/built-in.o: In function .iommu_device_destroy':
(.text+0x13220): multiple definition of .iommu_device_destroy' arch/powerpc/kernel/built-in.o:(.text+0x2b220): first defined here arch/powerpc/platforms/built-in.o: In function .iommu_device_link':
(.text+0x13230): multiple definition of .iommu_device_link' arch/powerpc/kernel/built-in.o:(.text+0x2b230): first defined here arch/powerpc/platforms/built-in.o:(.opd+0x2a00): multiple definition of iommu_device_link' arch/powerpc/kernel/built-in.o:(.opd+0x5640): first defined here arch/powerpc/platforms/built-in.o:(.opd+0x2a18): multiple definition of iommu_device_unlink' arch/powerpc/kernel/built-in.o:(.opd+0x5658): first defined here arch/powerpc/platforms/built-in.o:(.opd+0x29d0): multiple definition of iommu_device_create' arch/powerpc/kernel/built-in.o:(.opd+0x5610): first defined here

Caused by commit c61959ecbbc6 ("iommu: Add sysfs support for IOMMUs"). CONFIG_IOMMU_API is not set for this build. Forgotten "static inline"s :-(

I have used the iommu tree from next-20140707 for today.

Signature · 2 lines
Cheers,
Stephen Rothwell                    [email protected]
#1 lore raw
Quoted 26 lines · Stephen Rothwell

Hi Joerg,

After merging the iommu tree, today's linux-next build (powerpc ppc64_defconfig) failed like this:

arch/powerpc/platforms/built-in.o:(.opd+0x29e8): multiple definition of iommu_device_destroy' arch/powerpc/kernel/built-in.o:(.opd+0x5628): first defined here arch/powerpc/platforms/built-in.o: In function .iommu_device_unlink':
(.text+0x13240): multiple definition of .iommu_device_unlink' arch/powerpc/kernel/built-in.o:(.text+0x2b240): first defined here arch/powerpc/platforms/built-in.o: In function .iommu_device_create':
(.text+0x13210): multiple definition of .iommu_device_create' arch/powerpc/kernel/built-in.o:(.text+0x2b210): first defined here arch/powerpc/platforms/built-in.o: In function .iommu_device_destroy':
(.text+0x13220): multiple definition of .iommu_device_destroy' arch/powerpc/kernel/built-in.o:(.text+0x2b220): first defined here arch/powerpc/platforms/built-in.o: In function .iommu_device_link':
(.text+0x13230): multiple definition of .iommu_device_link' arch/powerpc/kernel/built-in.o:(.text+0x2b230): first defined here arch/powerpc/platforms/built-in.o:(.opd+0x2a00): multiple definition of iommu_device_link' arch/powerpc/kernel/built-in.o:(.opd+0x5640): first defined here arch/powerpc/platforms/built-in.o:(.opd+0x2a18): multiple definition of iommu_device_unlink' arch/powerpc/kernel/built-in.o:(.opd+0x5658): first defined here arch/powerpc/platforms/built-in.o:(.opd+0x29d0): multiple definition of iommu_device_create' arch/powerpc/kernel/built-in.o:(.opd+0x5610): first defined here

Quoted 3 lines

Caused by commit c61959ecbbc6 ("iommu: Add sysfs support for IOMMUs"). CONFIG_IOMMU_API is not set for this build. Forgotten "static inline"s :-(

Yep, I already posted a patch for this:

http://lists.linuxfoundation.org/pipermail/iommu/2014-July/009123.html

Sorry for the trouble. Thanks,

Alex

#2 lore raw
In reply to Stephen Rothwell

Hi Stephen,

Quoted 5 lines · Stephen Rothwell

Caused by commit c61959ecbbc6 ("iommu: Add sysfs support for IOMMUs"). CONFIG_IOMMU_API is not set for this build. Forgotten "static inline"s :-(

I have used the iommu tree from next-20140707 for today.

I have committed the patch from Alex and published a new next branch. It should be fixed now.

Thanks,

Joerg