Skip to content

Commit 5cdef24

Browse files
Tim Abbottgeertu
authored andcommitted
m68k: Make thread_info.h usable from assembly.
[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>
1 parent f60a557 commit 5cdef24

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎arch/m68k/include/asm/thread_info_mm.h‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@
44
#ifndef ASM_OFFSETS_C
55
#include <asm/asm-offsets.h>
66
#endif
7-
#include <asm/current.h>
87
#include <asm/types.h>
98
#include <asm/page.h>
109

10+
#ifndef __ASSEMBLY__
11+
#include <asm/current.h>
12+
1113
struct thread_info {
1214
struct task_struct *task; /* main task structure */
1315
unsigned long flags;
@@ -16,6 +18,7 @@ struct thread_info {
1618
__u32 cpu; /* should always be 0 on m68k */
1719
struct restart_block restart_block;
1820
};
21+
#endif /* __ASSEMBLY__ */
1922

2023
#define PREEMPT_ACTIVE 0x4000000
2124

0 commit comments

Comments
 (0)