提交 9a55fed4 编写于 作者: C Chris Metcalf

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: NChris Metcalf <cmetcalf@tilera.com>
上级 729b25a4
...@@ -14,13 +14,6 @@ ...@@ -14,13 +14,6 @@
* Generates definitions from c-type structures used by assembly sources. * 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. */ /* Check for compatible compiler early in the build. */
#ifdef CONFIG_TILEGX #ifdef CONFIG_TILEGX
# ifndef __tilegx__ # ifndef __tilegx__
...@@ -31,10 +24,17 @@ ...@@ -31,10 +24,17 @@
# endif # endif
#else #else
# ifdef __tilegx__ # ifdef __tilegx__
# error Can not build TILEPro/TILE64 configurations with tilegx compiler # error Can not build TILEPro configurations with tilegx compiler
# endif # endif
#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) void foo(void)
{ {
DEFINE(SINGLESTEP_STATE_BUFFER_OFFSET, DEFINE(SINGLESTEP_STATE_BUFFER_OFFSET,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册