]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[MIPS] Fix errors detected by "make headers_check"
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Wed, 6 Sep 2006 16:00:22 +0000 (01:00 +0900)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 27 Sep 2006 12:37:40 +0000 (13:37 +0100)
* export asm/sgidefs.h
* include asm/isadep.h only if in kernel
* do not export contents of asm/timex.h and asm/user.h

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
include/asm-mips/Kbuild
include/asm-mips/ptrace.h
include/asm-mips/timex.h
include/asm-mips/user.h

index c68e1680da0173d5754d1a1df4944120a5239e58..01ea3e045652a384466b236285d4aa4643d22cbe 100644 (file)
@@ -1 +1,3 @@
 include include/asm-generic/Kbuild.asm
+
+header-y += sgidefs.h
index 4113316ee0da595bc6292bb50bbedb19737dcb46..4fb0fc43ffd71af828d8362052612b32b7fcafc1 100644 (file)
@@ -10,8 +10,6 @@
 #define _ASM_PTRACE_H
 
 
-#include <asm/isadep.h>
-
 /* 0 - 31 are integer registers, 32 - 63 are fp registers.  */
 #define FPR_BASE       32
 #define PC             64
@@ -73,6 +71,7 @@ struct pt_regs {
 #ifdef __KERNEL__
 
 #include <linux/linkage.h>
+#include <asm/isadep.h>
 
 /*
  * Does the process account for user or for system time?
index 98aa737b34aa75fc79d582431fcd12bf2bc42a43..b80de8e0fbbda8d8ca9f66dad92c32e25ce6e05a 100644 (file)
@@ -8,6 +8,8 @@
 #ifndef _ASM_TIMEX_H
 #define _ASM_TIMEX_H
 
+#ifdef __KERNEL__
+
 #include <asm/mipsregs.h>
 
 /*
@@ -51,4 +53,6 @@ static inline cycles_t get_cycles (void)
        return read_c0_count();
 }
 
+#endif /* __KERNEL__ */
+
 #endif /*  _ASM_TIMEX_H */
index 89bf8b4cab3c333b07c0388f546dc2bc1ed1286a..61f2a093b91befa8476bbafd52cb291d5588db45 100644 (file)
@@ -8,6 +8,8 @@
 #ifndef _ASM_USER_H
 #define _ASM_USER_H
 
+#ifdef __KERNEL__
+
 #include <asm/page.h>
 #include <asm/reg.h>
 
@@ -55,4 +57,6 @@ struct user {
 #define HOST_DATA_START_ADDR   (u.start_data)
 #define HOST_STACK_END_ADDR    (u.start_stack + u.u_ssize * NBPG)
 
+#endif /* __KERNEL__ */
+
 #endif /* _ASM_USER_H */