Skip to content

Commit

Permalink
tile: check for correct compiler earlier in asm-offsets.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
cmetcalf-tilera committed Sep 3, 2013
1 parent 729b25a commit 9a55fed
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions arch/tile/kernel/asm-offsets.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,6 @@
* 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>

/* Check for compatible compiler early in the build. */
#ifdef CONFIG_TILEGX
# ifndef __tilegx__
Expand All @@ -31,10 +24,17 @@
# 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>

void foo(void)
{
DEFINE(SINGLESTEP_STATE_BUFFER_OFFSET,
Expand Down

0 comments on commit 9a55fed

Please sign in to comment.