From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: Re: kbuild now support arch/$ARCH/include - time for ARCHs to convert Date: Fri, 1 Aug 2008 09:35:04 +0200 Message-ID: <200808010935.05949.arnd@arndb.de> References: <200807300907.25186.arnd@arndb.de> <200807312147.25837.arnd@arndb.de> <20080731201352.GB25305@uranus.ravnborg.org> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: Received: from moutng.kundenserver.de ([212.227.126.186]:63130 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753209AbYHAHf0 (ORCPT ); Fri, 1 Aug 2008 03:35:26 -0400 In-Reply-To: <20080731201352.GB25305@uranus.ravnborg.org> Content-Disposition: inline Sender: linux-arch-owner@vger.kernel.org List-ID: To: Sam Ravnborg Cc: Paul Mundt , Geert Uytterhoeven , David Howells , Greg Ungerer , linux arch , LKML , Linux/m68k , uClinux list On Thursday 31 July 2008, Sam Ravnborg wrote: > > #ifdef __KERNEL__ > > #ifdef CONFIG_MMU > > #include "${BASE}_mmu.h" > > #else > > #include "${BASE}_nommu.h" > > #endif > > #else > > #include "${BASE}_mmu.h" > > #endif > > EOF > > } > > This will leak a CONFIG_ symbol if the header file > is exported. Can we do it with a gcc defined symbol? > [See how I did it for sparc for instance] Is there a compiler defined symbol for this? I thought the tool chain was identical. Do you think my #ifdef __KERNEL__ does not do what I wanted it to do? It should make sure that user space always sees the _mmu variant. Arnd <><