On Sun, Jun 08, 2008 at 11:49:01AM +0100, David Woodhouse wrote:Correct. A quick grep shows that we have these different uses of __KERNEL__: #if defined(__ARM_EABI__) && !defined(__KERNEL__) #if !defined(CONFIG_M68K) || !defined(__KERNEL__) #if defined(CONFIG_VIDEO_V4L1_COMPAT) || !defined (__KERNEL__) #if defined(__GNUC__) && !defined(__STRICT_ANSI__) || defined(__KERNEL__) #if defined(__KERNEL__) #if defined(__KERNEL__) && !defined(__ASSEMBLY__) #if defined(__KERNEL__) && defined(CONFIG_PPC32) #if defined(__KERNEL__) && defined(CONFIG_SMP) && !defined(__ASSEMBLY__) #if !defined(__KERNEL__) || defined(CONFIG_X86) #if defined(__KERNEL__) || defined(__DEFINE_BSD_TERMIOS) #if !defined(__KERNEL__) && !defined(DIV_ROUND_UP) #if defined(__KERNEL__) || !defined(__GLIBC__) || (__GLIBC__ < 2) #if (!defined(__KERNEL__) && !defined(KERNEL) && !defined(INKERNEL) && !defined(_KERNEL)) || defined(USE_SEQ_MACROS) #if defined(__KERNEL__) || defined(__linux__) # if (defined(__KERNEL__) || !defined(RELOC_DEBUG)) \ #if defined(__KERNEL__) || defined(__USE_ALL) #if defined(__KERNEL__) || defined(__WANT_POSIX1B_SIGNALS__) #if defined(__KERNEL__) && defined(__x86_64__) #if !defined(__STRICT_ANSI__) || defined(__KERNEL__) #ifdef __KERNEL__ #ifndef __KERNEL__ #else and #endif filtered away. A script needs to take into account other preprocessor uses too due to their nested nature. But doable I'm sure. And I rather have 100 lines perl than use the unifdef utility because we then have it collected in one place and can do even stricter validation. Agree. Sam --
| Theodore Tso | Re: -mm merge plans for 2.6.23 -- sys_fallocate |
| Greg Kroah-Hartman | [PATCH 005/196] Chinese: add translation of SubmittingDrivers |
| Christoph Hellwig | Re: [malware-list] [RFC 0/5] [TALPA] Intro to a linux interface for on access scan... |
| Andi Kleen | [PATCH] [0/45] x86 2.6.24 patches review I |
git: | |
| Wenji Wu | RE: A Linux TCP SACK Question |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| David Miller | Re: [GIT]: Networking |
