From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from e4.ny.us.ibm.com (e4.ny.us.ibm.com [32.97.182.144]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "e4.ny.us.ibm.com", Issuer "Equifax" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id 5E3ECDDF60 for ; Thu, 11 Dec 2008 01:25:19 +1100 (EST) Received: from d01relay02.pok.ibm.com (d01relay02.pok.ibm.com [9.56.227.234]) by e4.ny.us.ibm.com (8.13.1/8.13.1) with ESMTP id mBAEOdLE003017 for ; Wed, 10 Dec 2008 09:24:39 -0500 Received: from d01av01.pok.ibm.com (d01av01.pok.ibm.com [9.56.224.215]) by d01relay02.pok.ibm.com (8.13.8/8.13.8/NCO v9.1) with ESMTP id mBAEPDeH156050 for ; Wed, 10 Dec 2008 09:25:15 -0500 Received: from d01av01.pok.ibm.com (loopback [127.0.0.1]) by d01av01.pok.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id mBAEPDPa019435 for ; Wed, 10 Dec 2008 09:25:13 -0500 Date: Wed, 10 Dec 2008 09:25:08 -0500 From: Josh Boyer To: Benjamin Herrenschmidt Subject: Re: [PATCH] powerpc: Fix build of 4xx simple platforms without CONFIG_PCI Message-ID: <20081210092508.66e566f8@zod.rchland.ibm.com> In-Reply-To: <1228714694.7101.27.camel@pasglop> References: <20081208045411.0CE03DDE0E@ozlabs.org> <1228714329.23242.52.camel@localhost> <1228714694.7101.27.camel@pasglop> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mon, 08 Dec 2008 16:38:14 +1100 Benjamin Herrenschmidt wrote: > > > > --- linux-work.orig/arch/powerpc/platforms/40x/ppc40x_simple.c 2008-12-08 15:51:49.000000000 +1100 > > > +++ linux-work/arch/powerpc/platforms/40x/ppc40x_simple.c 2008-12-08 15:51:52.000000000 +1100 > > > @@ -61,7 +61,9 @@ static int __init ppc40x_probe(void) > > > > > > for (i = 0; i < ARRAY_SIZE(board); i++) { > > > if (of_flat_dt_is_compatible(root, board[i])) { > > > +#ifdef CONFIG_PCI > > > ppc_pci_flags = PPC_PCI_REASSIGN_ALL_RSRC; > > > +#endif > > > > No! #ifdefs! in C code! > > > > To the tune of you-know-what. > > > > Looks like we need an accessor we can replace with an empty version in > > the !PCI case. > > If you have plenty of time on your hands :-) In the meantime, this is a > build fix. I have time. I hate ifdefs. josh