From: Chris Metcalf Date: Tue, 13 Aug 2013 18:42:36 +0000 (-0400) Subject: tile: check for correct compiler earlier in asm-offsets.c X-Git-Tag: next-20130822~108^2~8 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c8175a2a15eab2992abdc93b17f6693679564065;p=karo-tx-linux.git tile: check for correct compiler earlier in asm-offsets.c If we wait until after including a bunch of other files, we will have generated so much warning spew that it's hard to notice the error about using the wrong compiler. Signed-off-by: Chris Metcalf --- diff --git a/arch/tile/kernel/asm-offsets.c b/arch/tile/kernel/asm-offsets.c index 0a04a16fb8d5..80877ff32331 100644 --- a/arch/tile/kernel/asm-offsets.c +++ b/arch/tile/kernel/asm-offsets.c @@ -14,16 +14,6 @@ * Generates definitions from c-type structures used by assembly sources. */ -#include -#include -#include -#include -#include -#include -#ifdef CONFIG_KVM -#include -#endif - /* Check for compatible compiler early in the build. */ #ifdef CONFIG_TILEGX # ifndef __tilegx__ @@ -34,10 +24,20 @@ # endif #else # ifdef __tilegx__ -# error Can not build TILEPro/TILE64 configurations with tilegx compiler +# error Can not build TILEPro configurations with tilegx compiler # endif #endif +#include +#include +#include +#include +#include +#include +#ifdef CONFIG_KVM +#include +#endif + void foo(void) { DEFINE(SINGLESTEP_STATE_BUFFER_OFFSET,