make powerpc pci compile again
PATCH 1/1 make powerpc pci compile again
Looks like we got a new declaration in the generic header... This fixes compile but I don't know whether it's correct.
--- arch/powerpc/kernel/pci-common.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
arch/powerpc/kernel/pci-common.c +4 -2
@@ -156,10 +156,12 @@ static DEVICE_ATTR(devspec, S_IRUGO, pci#endif /* CONFIG_PPC_OF */ /* Add sysfs properties */ -void pcibios_add_platform_entries (struct pci_dev *pdev) +int pcibios_add_platform_entries (struct pci_dev *pdev) {#ifdef CONFIG_PPC_OF -device_create_file (&pdev->dev, &dev_attr_devspec); +return device_create_file (&pdev->dev, &dev_attr_devspec); +#else +return 0 ;#endif /* CONFIG_PPC_OF */ }
Quoted 2 lines · Johannes Berg
Looks like we got a new declaration in the generic header... This fixes compile but I don't know whether it's correct.
We got a new declaration, along with updated C code in pci_64.c and pci_32.c, but when that was merged with the creation of pci-common.c it all went fubar.
Your patch is correct, but I think Tony has already sent it.
cheers
Quoted 16 lines
arch/powerpc/kernel/pci-common.c +4
-2@@ -156,10 +156,12 @@ static DEVICE_ATTR(devspec, S_IRUGO, pci#endif /* CONFIG_PPC_OF */ /* Add sysfs properties */ -void pcibios_add_platform_entries (struct pci_dev *pdev) +int pcibios_add_platform_entries (struct pci_dev *pdev) {#ifdef CONFIG_PPC_OF -device_create_file (&pdev->dev, &dev_attr_devspec); +return device_create_file (&pdev->dev, &dev_attr_devspec); +#else +return 0 ;#endif /* CONFIG_PPC_OF */ }
Signature · 8 lines
Michael Ellerman OzLabs, IBM Australia Development Lab wwweb: http://michael.ellerman.id.au phone: +61 2 6212 1183 (tie line 70 21183) We do not inherit the earth from our ancestors, we borrow it from our children. - S.M.A.R.T Person
Quoted 2 lines · Michael Ellerman
Your patch is correct, but I think Tony has already sent it.
yes, it's already upstream as of Wed Jul 18 11:03:55 2007 +1000
Arnd <><