]> git.baikalelectronics.ru Git - kernel.git/commit
compiler-gcc4: conditionalize #error on __KERNEL__
authorH. Peter Anvin <hpa@linux.intel.com>
Wed, 25 Feb 2009 23:22:19 +0000 (15:22 -0800)
committerIngo Molnar <mingo@elte.hu>
Thu, 26 Mar 2009 17:14:23 +0000 (18:14 +0100)
commita9354f190c0e1ac69cfdff1d7fda8dbde1ef87db
tree93e289fae6ee92c29c45f74cdafc6a6a11fdc4b7
parent10b757b261e6bd4058386721e02b853b72f245b7
compiler-gcc4: conditionalize #error on __KERNEL__

Impact: Fix for exported headers

We only want to error out on specific gcc versions if we are actually
building the kernel, so conditionalize the #if...#error on __KERNEL__.

Based on a patchset by Arnd Bergmann <arnd@arndb.de>.

Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/compiler-gcc4.h