Skip to contentSkip to conversation

compiler-gcc4: conditionalize #error on __KERNEL__

tip:core/header-fixes Arnd Bergmann 1 participant 1 message Feb 26, 2009 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 11 lines · H. Peter Anvin

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 <[email protected]>.

No kidding. It never occurred to me that this hunk from my patch was any good. It just happened that I was cross compiling for powerpc and only had a ppc64-gcc-4.1.0 installed on my laptop, so I commented out that line with the intention of reverting that change after a successful build...

Good catch!

	Arnd <><