On Sun, Jul 22, 2007 at 12:16:27AM +0200, Oleg Verych wrote: > > What do you think about this one? I want to propose to remove > scripts/unifdef.c but to make clear policy about how to mark __KERNEL__ > sections in header files. We know how obfuscated C can be, and this also > applies to preprocessing. There's known CodingStyle about some points. > The thing is to specify rules, that will be easy for `sed` to do cleaup > job. > > ./linux/soundcard.h:#if (!defined(__KERNEL__) && !defined(KERNEL) && !defined(INKERNEL) > && !defined(_KERNEL)) || defined(USE_SEQ_MACROS) > ./linux/stat.h:#if defined(__KERNEL__) || !defined(__GLIBC__) || (__GLIBC__ < 2) > > Split __KERNEL__ check, make only positive, i.e. > > #if defined(__KERNEL__) > #ifdef __KERNEL__ > > ./linux/stat.h:#ifdef __KERNEL__ > > No `#else` and ending part to contain comment: > > ./linux/smb_fs_sb.h:#endif /* __KERNEL__ */ > > Simple enough: > > sed '/^#if[^_]*__KERNEL__/,/^#end[^_]*__KERNEL__/d' What are you trying to say with the above? Sorry but I lost track of part of the discussion but you seems to havea point here? Sam - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: More effective processing (Re: [PATCH 25/33] kbuild: use POSIX BRE in headers install target)
- From: Oleg Verych <olecom@flower.upol.cz>
- Re: More effective processing (Re: [PATCH 25/33] kbuild: use POSIX BRE in headers install target)
- References:
- [PATCH 22/33] kbuild: do section mismatch check on full vmlinux
- From: Sam Ravnborg <sam@ravnborg.org>
- [PATCH 23/33] modpost white list pattern adjustment
- From: Sam Ravnborg <sam@ravnborg.org>
- [PATCH 24/33] Whitelist references from __dbe_table to .init
- From: Sam Ravnborg <sam@ravnborg.org>
- [PATCH 25/33] kbuild: use POSIX BRE in headers install target
- From: Sam Ravnborg <sam@ravnborg.org>
- Re: [PATCH 25/33] kbuild: use POSIX BRE in headers install target
- From: Oleg Verych <olecom@flower.upol.cz>
- Re: [kbuild-devel] [PATCH 25/33] kbuild: use POSIX BRE in headers install target
- From: "Mike Frysinger" <vapier.adi@gmail.com>
- Re: [kbuild-devel] [PATCH 25/33] kbuild: use POSIX BRE in headers install target
- From: Oleg Verych <olecom@flower.upol.cz>
- Re: [kbuild-devel] [PATCH 25/33] kbuild: use POSIX BRE in headers install target
- From: "Mike Frysinger" <vapier.adi@gmail.com>
- Re: [kbuild-devel] [PATCH 25/33] kbuild: use POSIX BRE in headers install target
- From: Sam Ravnborg <sam@ravnborg.org>
- More effective processing (Re: [PATCH 25/33] kbuild: use POSIX BRE in headers install target)
- From: Oleg Verych <olecom@flower.upol.cz>
- [PATCH 22/33] kbuild: do section mismatch check on full vmlinux
- Prev by Date: voyager_{thread,cat}.c compile warnings
- Next by Date: Re: [kbuild-devel] [PATCH 25/33] kbuild: use POSIX BRE in headers install target
- Previous by thread: More effective processing (Re: [PATCH 25/33] kbuild: use POSIX BRE in headers install target)
- Next by thread: Re: More effective processing (Re: [PATCH 25/33] kbuild: use POSIX BRE in headers install target)
- Index(es):
![]() |