]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
tile: check for correct compiler earlier in asm-offsets.c
authorChris Metcalf <cmetcalf@tilera.com>
Tue, 13 Aug 2013 18:42:36 +0000 (14:42 -0400)
committerChris Metcalf <cmetcalf@tilera.com>
Tue, 13 Aug 2013 20:28:46 +0000 (16:28 -0400)
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 <cmetcalf@tilera.com>
arch/tile/kernel/asm-offsets.c

index 0a04a16fb8d585ce9fb8cdfad4862545d2c80bb5..80877ff3233140428f8479e48831616434bc58f0 100644 (file)
  * Generates definitions from c-type structures used by assembly sources.
  */
 
-#include <linux/kbuild.h>
-#include <linux/thread_info.h>
-#include <linux/sched.h>
-#include <linux/hardirq.h>
-#include <linux/ptrace.h>
-#include <hv/hypervisor.h>
-#ifdef CONFIG_KVM
-#include <linux/kvm_host.h>
-#endif
-
 /* Check for compatible compiler early in the build. */
 #ifdef CONFIG_TILEGX
 # ifndef __tilegx__
 # 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 <linux/kbuild.h>
+#include <linux/thread_info.h>
+#include <linux/sched.h>
+#include <linux/hardirq.h>
+#include <linux/ptrace.h>
+#include <hv/hypervisor.h>
+#ifdef CONFIG_KVM
+#include <linux/kvm_host.h>
+#endif
+
 void foo(void)
 {
        DEFINE(SINGLESTEP_STATE_BUFFER_OFFSET,