2009-04-14 18:31:17

by Subrata Modak

[permalink] [raw]
Subject: [BUILD FAILURE 02/12] Next April 14 : PPC64 randconfig [arch/powerpc/kernel/of_platform.c]

Observed the following build error:
---
arch/powerpc/kernel/of_platform.c: In function ‘of_pci_phb_probe’:
arch/powerpc/kernel/of_platform.c:270: error: implicit declaration of
function ‘pci_devs_phb_init_dynamic’
arch/powerpc/kernel/of_platform.c:279: error: implicit declaration of
function ‘scan_phb’
arch/powerpc/kernel/of_platform.c:295: error: implicit declaration of
function ‘pci_bus_add_devices’
make[1]: *** [arch/powerpc/kernel/of_platform.o] Error 1
make: *** [arch/powerpc/kernel] Error 2
---

I saw some discussion(s) happening last year, but could not find out if
some fixes are already available:
http://www.mail-archive.com/[email protected]/msg26215.html,

Regards--
Subrata


Attachments:
randconfig2-next20090414-ppc64 (43.31 kB)

2009-04-15 01:37:38

by Michael Ellerman

[permalink] [raw]
Subject: Re: [BUILD FAILURE 02/12] Next April 14 : PPC64 randconfig [arch/powerpc/kernel/of_platform.c]

On Tue, 2009-04-14 at 23:58 +0530, Subrata Modak wrote:
> Observed the following build error:
> ---
> arch/powerpc/kernel/of_platform.c: In function ‘of_pci_phb_probe’:
> arch/powerpc/kernel/of_platform.c:270: error: implicit declaration of
> function ‘pci_devs_phb_init_dynamic’
> arch/powerpc/kernel/of_platform.c:279: error: implicit declaration of
> function ‘scan_phb’
> arch/powerpc/kernel/of_platform.c:295: error: implicit declaration of
> function ‘pci_bus_add_devices’
> make[1]: *** [arch/powerpc/kernel/of_platform.o] Error 1
> make: *** [arch/powerpc/kernel] Error 2
> ---
>
> I saw some discussion(s) happening last year, but could not find out if
> some fixes are already available:
> http://www.mail-archive.com/[email protected]/msg26215.html,

It's a different problem.

You have CONFIG_PPC_OF_PLATFORM_PCI=y but CONFIG_PCI=n.

That's because PPC_CELL_NATIVE selects PLATFORM_PCI, without regard to
whether PCI is enabled.

cheers

--
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


Attachments:
signature.asc (197.00 B)
This is a digitally signed message part