m68k: Make thread_info.h usable from assembly.
authorTim Abbott <tabbott@ksplice.com>
Wed, 16 Sep 2009 16:44:25 +0000 (12:44 -0400)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Sun, 6 Dec 2009 10:18:24 +0000 (11:18 +0100)
[Geert] <asm/thread_info_mm.h> pulls in <asm/current.h>, which contains C only.
So the include must be moved inside #ifndef __ASSEMBLY__.

Signed-off-by: Tim Abbott <tabbott@ksplice.com>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Roman Zippel <zippel@linux-m68k.org>
Cc: linux-m68k@lists.linux-m68k.org
Cc: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
arch/m68k/include/asm/thread_info_mm.h

index b6da3882be9bc8e78261648cafcd0cbb4ba0ec8c..167e518db41b69bcb01c43c4b1a9f056f0f0232d 100644 (file)
@@ -4,10 +4,12 @@
 #ifndef ASM_OFFSETS_C
 #include <asm/asm-offsets.h>
 #endif
-#include <asm/current.h>
 #include <asm/types.h>
 #include <asm/page.h>
 
+#ifndef __ASSEMBLY__
+#include <asm/current.h>
+
 struct thread_info {
        struct task_struct      *task;          /* main task structure */
        unsigned long           flags;
@@ -16,6 +18,7 @@ struct thread_info {
        __u32 cpu; /* should always be 0 on m68k */
        struct restart_block    restart_block;
 };
+#endif /* __ASSEMBLY__ */
 
 #define PREEMPT_ACTIVE         0x4000000