compiler-gcc4: conditionalize #error on __KERNEL__
A message that is not in the archive (sent off-list or not yet received): [email protected]
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]>.
Cc Arnd Bergmann <[email protected]>Signed-off-by H. Peter Anvin <[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 <><