PATCH: Support strace

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



strace includes <asm/system.h>. gcc doesn't like asmlinkage. This patch
helps strace.


H.J.
--- include/asm-mips/system.h.kernel	Sat Oct  5 10:39:23 2002
+++ include/asm-mips/system.h	Thu Oct 10 09:47:51 2002
@@ -24,6 +24,8 @@
 #include <asm/addrspace.h>
 #include <asm/ptrace.h>
 
+#ifdef __KERNEL__
+
 __asm__ (
 	".macro\t__sti\n\t"
 	".set\tpush\n\t"
@@ -322,4 +324,6 @@ extern void __die_if_kernel(const char *
 #define die_if_kernel(msg, regs)					\
 	__die_if_kernel(msg, regs, __FILE__ ":", __FUNCTION__, __LINE__)
 
+#endif /* __KERNEL__ */
+
 #endif /* _ASM_SYSTEM_H */


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux