Skip to contentSkip to conversation

compile error xen/stable-2.6.32.x

DISCUSSION James Harper 2 participants 3 messages May 20, 2010

lore
Share & tools
lore
#0 lore raw

CC [M] drivers/xen/platform-pci.o
drivers/xen/platform-pci.c:50: error: redefinition of âalloc_xen_mmioâ include/xen/platform_pci.h:39: error: previous definition of âalloc_xen_mmioâ was here drivers/xen/platform-pci.c:94: error: redefinition of âplatform_pci_disable_irqâ include/xen/platform_pci.h:43: error: previous definition of âplatform_pci_disable_irqâ was here drivers/xen/platform-pci.c:100: error: redefinition of âplatform_pci_enable_irqâ include/xen/platform_pci.h:44: error: previous definition of âplatform_pci_enable_irqâ was here drivers/xen/platform-pci.c:106: error: redefinition of âplatform_pci_resumeâ include/xen/platform_pci.h:42: error: previous definition of âplatform_pci_resumeâ was here make[2]: *** [drivers/xen/platform-pci.o] Error 1
make[1]: *** [drivers/xen] Error 2

I think maybe platform-pci doesn't work when compiled as a module? I'll build it in and see what happens...

James

#1 lore raw
Quoted 19 lines

CC [M] drivers/xen/platform-pci.o
drivers/xen/platform-pci.c:50: error: redefinition of âalloc_xen_mmioâ include/xen/platform_pci.h:39: error: previous definition of âalloc_xen_mmioâ was here
drivers/xen/platform-pci.c:94: error: redefinition of âplatform_pci_disable_irqâ
include/xen/platform_pci.h:43: error: previous definition of âplatform_pci_disable_irqâ was here drivers/xen/platform-pci.c:100: error: redefinition of âplatform_pci_enable_irqâ
include/xen/platform_pci.h:44: error: previous definition of âplatform_pci_enable_irqâ was here drivers/xen/platform-pci.c:106: error: redefinition of âplatform_pci_resumeâ include/xen/platform_pci.h:42: error: previous definition of âplatform_pci_resumeâ was here
make[2]: *** [drivers/xen/platform-pci.o] Error 1
make[1]: *** [drivers/xen] Error 2

Quoted 3 lines

I think maybe platform-pci doesn't work when compiled as a module? I'll build it in and see what happens...

Okay I can confirm that. I compiles fine as CONFIG_XEN_PLATFORM_PCI=y but not CONFIG_XEN_PLATFORM_PCI=m.

James

#2 lore raw
In reply to James Harper
Quoted 12 lines · James Harper

CC [M] drivers/xen/platform-pci.o
drivers/xen/platform-pci.c:50: error: redefinition of âalloc_xen_mmioâ include/xen/platform_pci.h:39: error: previous definition of âalloc_xen_mmioâ was here drivers/xen/platform-pci.c:94: error: redefinition of âplatform_pci_disable_irqâ include/xen/platform_pci.h:43: error: previous definition of âplatform_pci_disable_irqâ was here drivers/xen/platform-pci.c:100: error: redefinition of âplatform_pci_enable_irqâ include/xen/platform_pci.h:44: error: previous definition of âplatform_pci_enable_irqâ was here drivers/xen/platform-pci.c:106: error: redefinition of âplatform_pci_resumeâ include/xen/platform_pci.h:42: error: previous definition of âplatform_pci_resumeâ was here make[2]: *** [drivers/xen/platform-pci.o] Error 1
make[1]: *** [drivers/xen] Error 2

Quoted 1 line

I think maybe platform-pci doesn't work when compiled as a module? I'll build it in and see what happens...

There was a patch for this posted to the list a couple of weeks ago at
http://lists.xensource.com/archives/html/xen-devel/2010-05/msg00315.html
though I haven't tried it yet.

Michael Young

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel