]> git.hungrycats.org Git - linux/commitdiff
[PATCH] M68k asm/system.h
authorAndrew Morton <akpm@osdl.org>
Mon, 19 Jan 2004 02:34:58 +0000 (18:34 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Mon, 19 Jan 2004 02:34:58 +0000 (18:34 -0800)
From: Geert Uytterhoeven <geert@linux-m68k.org>

M68k: Add missing #ifdef __KERNEL / #endif (from Christian T. Steigies)

include/asm-m68k/system.h

index 2491ff5dd92cd93cf6da222c158fb0e18fd55258..f7b5fd40f0352002e10d221ca9b5567e3618c89d 100644 (file)
@@ -7,6 +7,8 @@
 #include <asm/segment.h>
 #include <asm/entry.h>
 
+#ifdef __KERNEL__
+
 /*
  * switch_to(n) should switch tasks to task ptr, first checking that
  * ptr isn't the current task, in which case it does nothing.  This
@@ -156,4 +158,6 @@ static inline unsigned long __xchg(unsigned long x, volatile void * ptr, int siz
 }
 #endif
 
+#endif /* __KERNEL__ */
+
 #endif /* _M68K_SYSTEM_H */