pci: frv architecture needs generic setup-bus infrastructure
PATCH 1/1 pci: frv architecture needs generic setup-bus infrastructure
Otherwise we get this link failure for frv's defconfig:
LD .tmp_vmlinux1
drivers/built-in.o: In function `pci_assign_resource':
(.text+0xbf0c): undefined reference to pci_cardbus_resource_alignment' drivers/built-in.o: In function pci_setup':
pci.c:(.init.text+0x174): undefined reference to pci_realloc_get_opt' pci.c:(.init.text+0x1a0): undefined reference to pci_realloc_get_opt' make[1]: *** [.tmp_vmlinux1] Error 1
drivers/pci/Makefile +1 -0
@@ -42,6 +42,7 @@ obj-$(CONFIG_UNICORE32) += setup-bus.o setup-irq.o obj-$(CONFIG_PARISC) += setup-bus.o obj-$(CONFIG_SUPERH) += setup-bus.o setup-irq.o obj-$(CONFIG_PPC) += setup-bus.o +obj-$(CONFIG_FRV) += setup-bus.o obj-$(CONFIG_MIPS) += setup-bus.o setup-irq.o obj-$(CONFIG_X86_VISWS) += setup-irq.o obj-$(CONFIG_MN10300) += setup-bus.o
Signature · 1 line
1.7.9.1
Bjorn Helgaas
maintainerQuoted 19 lines · Paul Gortmaker
Otherwise we get this link failure for frv's defconfig:
LD .tmp_vmlinux1
drivers/built-in.o: In function `pci_assign_resource':
(.text+0xbf0c): undefined reference topci_cardbus_resource_alignment' drivers/built-in.o: In functionpci_setup':
pci.c:(.init.text+0x174): undefined reference topci_realloc_get_opt' pci.c:(.init.text+0x1a0): undefined reference topci_realloc_get_opt' make[1]: *** [.tmp_vmlinux1] Error 1Cc Bjorn Helgaas <[email protected]>Cc David Howells <[email protected]>Signed-off-by Paul Gortmaker <[email protected]>drivers/pci/Makefile +0
-0@@ -42,6 +42,7 @@ obj-$(CONFIG_UNICORE32) += setup-bus.o setup-irq.o
Quoted 7 lines
obj-$(CONFIG_PARISC) += setup-bus.o
obj-$(CONFIG_SUPERH) += setup-bus.o setup-irq.o
obj-$(CONFIG_PPC) += setup-bus.o
+obj-$(CONFIG_FRV) += setup-bus.o
obj-$(CONFIG_MIPS) += setup-bus.o setup-irq.o
obj-$(CONFIG_X86_VISWS) += setup-irq.o
obj-$(CONFIG_MN10300) += setup-bus.o
Wow, I didn't even realize that we had this sort of arch-specific selection of generic PCI parts. drivers/pci/setup-irq.c is on my list for reworking because it looks like it doesn't work correctly for hotplug. setup-bus.c is much more complicated, but (a) it looks like most architectures include it anyway, and (b) it seems like it'd be cleaner to have a CONFIG_PCI_REALLOC or something to avoid having arch-specific stuff in the Makefile.
Anyway, that's all for the future. Does this fix need to go in 3.4, or should it go in -next? What commit introduced the problem?
Bjorn
Quoted 37 lines · Bjorn Helgaas
Quoted 19 lines · Paul Gortmaker
Otherwise we get this link failure for frv's defconfig:
LD .tmp_vmlinux1
drivers/built-in.o: In function `pci_assign_resource':
(.text+0xbf0c): undefined reference topci_cardbus_resource_alignment' drivers/built-in.o: In functionpci_setup':
pci.c:(.init.text+0x174): undefined reference topci_realloc_get_opt' pci.c:(.init.text+0x1a0): undefined reference topci_realloc_get_opt' make[1]: *** [.tmp_vmlinux1] Error 1Cc Bjorn Helgaas <[email protected]>Cc David Howells <[email protected]>Signed-off-by Paul Gortmaker <[email protected]>drivers/pci/Makefile +0
-0drivers/pci/Makefile obj-$(CONFIG_UNICORE32) += setup-bus.o setup-irq.o · line 48
Quoted 7 lines
drivers/pci/Makefile +1
-0@@ -42,6 +42,7 @@ obj-$(CONFIG_UNICORE32) += setup-bus.o setup-irq.o obj-$(CONFIG_PARISC) += setup-bus.o obj-$(CONFIG_SUPERH) += setup-bus.o setup-irq.o obj-$(CONFIG_PPC) += setup-bus.o +obj-$(CONFIG_FRV) += setup-bus.o obj-$(CONFIG_MIPS) += setup-bus.o setup-irq.o obj-$(CONFIG_X86_VISWS) += setup-irq.o obj-$(CONFIG_MN10300) += setup-bus.oWow, I didn't even realize that we had this sort of arch-specific selection of generic PCI parts.
drivers/pci/setup-irq.cis on my list for reworking because it looks like it doesn't work correctly for hotplug.setup-bus.cis much more complicated, but (a) it looks like most architectures include it anyway, and (b) it seems like it'd be cleaner to have aCONFIG_PCI_REALLOCor something to avoid having arch-specific stuff in theMakefile.
Quoted 2 lines
Anyway, that's all for the future. Does this fix need to go in 3.4, or should it go in -next? What commit introduced the problem?
It does address a compile fail seen in 3.4 (sorry for not calling that out explicitly). I've not dug back in time to see when it 1st appeared. With a lot of these less common arch, it seems they can get broken and remain broken for quite some time, so the original breakage may predate the 3.4 merge window.
I've already got a queue with fixes for 3.4 in various other less common arch; it is no trouble for me to carry this there, if you are OK with it as a 3.4 fix.
Thanks,
Paul.
--
Quoted 2 lines
Bjorn
Quoted 13 lines · Paul Gortmaker
Quoted 12 lines · Bjorn Helgaas
Quoted 10 lines · Paul Gortmaker
Otherwise we get this link failure for frv's defconfig:
LD .tmp_vmlinux1
drivers/built-in.o: In function `pci_assign_resource':
(.text+0xbf0c): undefined reference topci_cardbus_resource_alignment' drivers/built-in.o: In functionpci_setup':
pci.c:(.init.text+0x174): undefined reference topci_realloc_get_opt' pci.c:(.init.text+0x1a0): undefined reference topci_realloc_get_opt' make[1]: *** [.tmp_vmlinux1] Error 1
Quoted 1 line
Quoted 1 line
Quoted 1 line
Cc Bjorn Helgaas <[email protected]>
This looks good to me, and if you'd put it in your queue, that'd be great. It won't break any other arches, so I'm fine with it going in either for 3.4 or in the 3.5 merge window.
Quoted 43 lines
Quoted 24 lines
Quoted 8 lines
Cc David Howells <[email protected]>Signed-off-by Paul Gortmaker <[email protected]>drivers/pci/Makefile +0
-0@@ -42,6 +42,7 @@ obj-$(CONFIG_UNICORE32) += setup-bus.o setup-irq.oQuoted 7 lines
obj-$(CONFIG_PARISC) += setup-bus.o
obj-$(CONFIG_SUPERH) += setup-bus.o setup-irq.o
obj-$(CONFIG_PPC) += setup-bus.o
+obj-$(CONFIG_FRV) += setup-bus.o
obj-$(CONFIG_MIPS) += setup-bus.o setup-irq.o
obj-$(CONFIG_X86_VISWS) += setup-irq.o
obj-$(CONFIG_MN10300) += setup-bus.oWow, I didn't even realize that we had this sort of arch-specific selection of generic PCI parts. drivers/pci/setup-irq.c is on my list for reworking because it looks like it doesn't work correctly for hotplug. setup-bus.c is much more complicated, but (a) it looks like most architectures include it anyway, and (b) it seems like it'd be cleaner to have a
CONFIG_PCI_REALLOCor something to avoid having arch-specific stuff in theMakefile.Quoted 2 lines
Anyway, that's all for the future. Does this fix need to go in 3.4, or should it go in -next? What commit introduced the problem?
It does address a compile fail seen in 3.4 (sorry for not calling that out explicitly). I've not dug back in time to see when it 1st appeared. With a lot of these less common arch, it seems they can get broken and remain broken for quite some time, so the original breakage may predate the 3.4 merge window.
I've already got a queue with fixes for 3.4 in various other less common arch; it is no trouble for me to carry this there, if you are OK with it as a 3.4 fix.
Thanks,
Paul.
--Quoted 2 lines
Bjorn
Quoted 15 lines · Bjorn Helgaas
Quoted 13 lines · Paul Gortmaker
Quoted 12 lines · Bjorn Helgaas
Quoted 10 lines · Paul Gortmaker
Otherwise we get this link failure for frv's defconfig:
LD .tmp_vmlinux1
drivers/built-in.o: In function `pci_assign_resource':
(.text+0xbf0c): undefined reference topci_cardbus_resource_alignment' drivers/built-in.o: In functionpci_setup':
pci.c:(.init.text+0x174): undefined reference topci_realloc_get_opt' pci.c:(.init.text+0x1a0): undefined reference topci_realloc_get_opt' make[1]: *** [.tmp_vmlinux1] Error 1
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Cc Bjorn Helgaas <[email protected]>This looks good to me, and if you'd put it in your queue, that'd be great. It won't break any other arches, so I'm fine with it going in either for 3.4 or in the 3.5 merge window.
Acked-by Bjorn Helgaas <[email protected]>
Thanks, I'll queue it up for the 3.4 pull
Paul.
--
Quoted 44 lines
Quoted 44 lines
Quoted 25 lines
Quoted 9 lines
Cc David Howells <[email protected]>Signed-off-by Paul Gortmaker <[email protected]>drivers/pci/Makefile +0
-0drivers/pci/Makefile obj-$(CONFIG_UNICORE32) += setup-bus.o setup-irq.o · line 48
Quoted 7 lines
drivers/pci/Makefile +1
-0@@ -42,6 +42,7 @@ obj-$(CONFIG_UNICORE32) += setup-bus.o setup-irq.o obj-$(CONFIG_PARISC) += setup-bus.o obj-$(CONFIG_SUPERH) += setup-bus.o setup-irq.o obj-$(CONFIG_PPC) += setup-bus.o +obj-$(CONFIG_FRV) += setup-bus.o obj-$(CONFIG_MIPS) += setup-bus.o setup-irq.o obj-$(CONFIG_X86_VISWS) += setup-irq.o obj-$(CONFIG_MN10300) += setup-bus.oWow, I didn't even realize that we had this sort of arch-specific selection of generic PCI parts.
drivers/pci/setup-irq.cis on my list for reworking because it looks like it doesn't work correctly for hotplug.setup-bus.cis much more complicated, but (a) it looks like most architectures include it anyway, and (b) it seems like it'd be cleaner to have aCONFIG_PCI_REALLOCor something to avoid having arch-specific stuff in theMakefile.Quoted 2 lines
Anyway, that's all for the future. Does this fix need to go in 3.4, or should it go in -next? What commit introduced the problem?
It does address a compile fail seen in 3.4 (sorry for not calling that out explicitly). I've not dug back in time to see when it 1st appeared. With a lot of these less common arch, it seems they can get broken and remain broken for quite some time, so the original breakage may predate the 3.4 merge window.
I've already got a queue with fixes for 3.4 in various other less common arch; it is no trouble for me to carry this there, if you are OK with it as a 3.4 fix.
Thanks,
Paul.
--Quoted 2 lines
Bjorn