Re: kbuild now support arch/$ARCH/include - time for ARCHs to convert
- From: Arnd Bergmann <arnd@xxxxxxxx>
- Date: Fri, 1 Aug 2008 09:35:04 +0200
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 <><
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: kbuild now support arch/$ARCH/include - time for ARCHs to convert
- From: Sam Ravnborg
- Re: kbuild now support arch/$ARCH/include - time for ARCHs to convert
- Prev by Date: Re: [BUG] wireless : cpu stuck for 61s
- Next by Date: Re: Kernel WARNING: at net/core/dev.c:1330 __netif_schedule+0x2c/0x98()
- Previous by thread: Re: kbuild now support arch/$ARCH/include - time for ARCHs to convert
- Next by thread: Re: kbuild now support arch/$ARCH/include - time for ARCHs to convert
- Index(es):
Relevant Pages
|