]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
unify default ptrace_signal_deliver
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 5 Nov 2012 17:59:15 +0000 (12:59 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 29 Nov 2012 05:01:23 +0000 (00:01 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
18 files changed:
arch/alpha/include/asm/signal.h
arch/arm/include/asm/signal.h
arch/avr32/include/asm/signal.h
arch/cris/include/asm/signal.h
arch/h8300/include/asm/signal.h
arch/ia64/include/asm/signal.h
arch/m32r/include/asm/signal.h
arch/m68k/include/asm/signal.h
arch/mips/include/asm/signal.h
arch/mn10300/include/asm/signal.h
arch/parisc/include/asm/signal.h
arch/powerpc/include/asm/signal.h
arch/s390/include/asm/signal.h
arch/sparc/include/asm/signal.h
arch/x86/include/asm/signal.h
arch/xtensa/include/asm/signal.h
include/asm-generic/signal.h
include/linux/ptrace.h

index a9388300abb13b75c2d9cdbbfc0f682ba2465e00..45552862cc10999ad8a46ee752fc451de356ce54 100644 (file)
@@ -164,9 +164,6 @@ struct sigstack {
 
 #ifdef __KERNEL__
 #include <asm/sigcontext.h>
-
-#define ptrace_signal_deliver(regs, cookie) do { } while (0)
-
 #endif
 
 #endif
index 5a7963dbd3fbd50d7006d43ad378b7dd579647b7..9a0ea6ab988f0ca973d9bae3d9b2057f03fe768f 100644 (file)
@@ -35,5 +35,4 @@ struct k_sigaction {
 };
 
 #include <asm/sigcontext.h>
-#define ptrace_signal_deliver(regs, cookie) do { } while (0)
 #endif
index 4d502fd6bad3f0257d1806484f6b26c74ce6765e..9326d182e9e5d8d0f8b0f2511f67299a8f3eb7d3 100644 (file)
@@ -37,6 +37,4 @@ struct k_sigaction {
 #include <asm/sigcontext.h>
 #undef __HAVE_ARCH_SIG_BITOPS
 
-#define ptrace_signal_deliver(regs, cookie) do { } while (0)
-
 #endif
index ea6af9aad76c25c92d255c842ea95f0aeba27fbe..72dbbf59dfae67afb71da81b422765fef2c1acf3 100644 (file)
@@ -152,12 +152,6 @@ typedef struct sigaltstack {
 
 #ifdef __KERNEL__
 #include <asm/sigcontext.h>
-
-/* here we could define asm-optimized sigaddset, sigdelset etc. operations. 
- * if we don't, generic ones are used from linux/signal.h
- */
-#define ptrace_signal_deliver(regs, cookie) do { } while (0)
-
 #endif /* __KERNEL__ */
 
 #endif
index fd8b66e40dcaa41c726500c66237e2b4b87cc92a..c43c0a7d2c2ed683949939fc20c0d0ae1ac05cec 100644 (file)
@@ -154,8 +154,6 @@ typedef struct sigaltstack {
 #include <asm/sigcontext.h>
 #undef __HAVE_ARCH_SIG_BITOPS
 
-#define ptrace_signal_deliver(regs, cookie) do { } while (0)
-
 #endif /* __KERNEL__ */
 
 #endif /* _H8300_SIGNAL_H */
index aecda5b9eb4ece83e867bdcdceadef56dfaf7de1..3a1b20e74c5cda3e2271f2a3f3253690ca93322d 100644 (file)
@@ -38,7 +38,5 @@ struct k_sigaction {
 
 #  include <asm/sigcontext.h>
 
-#define ptrace_signal_deliver(regs, cookie) do { } while (0)
-
 # endif /* !__ASSEMBLY__ */
 #endif /* _ASM_IA64_SIGNAL_H */
index ea5f95e4079eacc5eec97c479674989b146431b5..e4d2e2ad5f1eacc295c7bb3d091892ec12ab81a3 100644 (file)
@@ -149,10 +149,6 @@ typedef struct sigaltstack {
 
 #undef __HAVE_ARCH_SIG_BITOPS
 
-struct pt_regs;
-
-#define ptrace_signal_deliver(regs, cookie)    do { } while (0)
-
 #endif /* __KERNEL__ */
 
 #endif  /* _ASM_M32R_SIGNAL_H */
index 2df26b57c26ada5cf34d6c608f75ebd7460f2063..eb51a524118785891a4373be703462ead25f562d 100644 (file)
@@ -86,11 +86,10 @@ static inline int sigfindinword(unsigned long word)
 
 #endif /* !CONFIG_CPU_HAS_NO_BITFIELDS */
 
-#ifdef __uClinux__
-#define ptrace_signal_deliver(regs, cookie) do { } while (0)
-#else
+#ifndef __uClinux__
 struct pt_regs;
 extern void ptrace_signal_deliver(struct pt_regs *regs, void *cookie);
+#define ptrace_signal_deliver ptrace_signal_deliver
 #endif /* __uClinux__ */
 
 #endif /* _M68K_SIGNAL_H */
index 880240dff8b75aef0416990efef374c4afe3bd73..cf4a08062d1d899c34c3487e56009fad7a1f4b5b 100644 (file)
@@ -21,6 +21,4 @@
 #include <asm/sigcontext.h>
 #include <asm/siginfo.h>
 
-#define ptrace_signal_deliver(regs, cookie) do { } while (0)
-
 #endif /* _ASM_SIGNAL_H */
index f9668ec3040c828fe357a50be10381efb17402bb..d280e9780793eb1d012f19ff86842f69182be344 100644 (file)
@@ -45,8 +45,4 @@ struct k_sigaction {
 };
 #include <asm/sigcontext.h>
 
-
-struct pt_regs;
-#define ptrace_signal_deliver(regs, cookie) do { } while (0)
-
 #endif /* _ASM_SIGNAL_H */
index 21abf4fc169a3086123327a6528dd302498a1b8b..0fdb3c83595236de0cc694d2809157665e3bfc3f 100644 (file)
@@ -34,8 +34,6 @@ struct k_sigaction {
        struct sigaction sa;
 };
 
-#define ptrace_signal_deliver(regs, cookie) do { } while (0)
-
 #include <asm/sigcontext.h>
 
 #endif /* !__ASSEMBLY */
index 189998bb61c4b5847a787c918e9b517c35b936bb..a101637725a2485ba8651cae932f25d68440af78 100644 (file)
@@ -3,6 +3,4 @@
 
 #include <uapi/asm/signal.h>
 
-struct pt_regs;
-#define ptrace_signal_deliver(regs, cookie) do { } while (0)
 #endif /* _ASM_POWERPC_SIGNAL_H */
index bffdbdd5b3d72171fb05fad336474763d53041de..db7ddfaf5b795facb665ebc22f91c0f72b7a5ba0 100644 (file)
@@ -39,6 +39,4 @@ struct k_sigaction {
         struct sigaction sa;
 };
 
-#define ptrace_signal_deliver(regs, cookie) do { } while (0)
-
 #endif
index d243c2ae02d297d40303b237f9c9e1d53842adfd..77b85850d54399b9afe94d7e96d9c0c33828507b 100644 (file)
@@ -26,7 +26,5 @@ struct k_sigaction {
        void                    __user *ka_restorer;
 };
 
-#define ptrace_signal_deliver(regs, cookie) do { } while (0)
-
 #endif /* !(__ASSEMBLY__) */
 #endif /* !(__SPARC_SIGNAL_H) */
index 323973f4abf191a3f9031b0fa767c215f216dba4..0dba8b7a6ac7c6d8824e563d01889ca7134304a6 100644 (file)
@@ -260,8 +260,6 @@ struct pt_regs;
 
 #endif /* !__i386__ */
 
-#define ptrace_signal_deliver(regs, cookie) do { } while (0)
-
 #endif /* __KERNEL__ */
 #endif /* __ASSEMBLY__ */
 
index 72fd44c85b702ad3c2c78da2e6cf64bc74545d46..6f586bd90e1862ad90cb8ad6b8b078a9a4af8d86 100644 (file)
@@ -27,7 +27,6 @@ struct k_sigaction {
 };
 
 #include <asm/sigcontext.h>
-#define ptrace_signal_deliver(regs, cookie) do { } while (0)
 
 #endif /* __ASSEMBLY__ */
 #endif /* _XTENSA_SIGNAL_H */
index 98caa306122a7e502aa7c2785c7a4e191592cb1e..d840c90a157a1ce0a636213aea1fc4eb34ba4e81 100644 (file)
@@ -10,7 +10,5 @@
 #include <asm/sigcontext.h>
 #undef __HAVE_ARCH_SIG_BITOPS
 
-#define ptrace_signal_deliver(regs, cookie) do { } while (0)
-
 #endif /* __ASSEMBLY__ */
 #endif /* _ASM_GENERIC_SIGNAL_H */
index e0ff4689d35a6bb6a72b17b3f6cc055066d3ca41..7aefbae2452e87473a7026fda45e7476b97a995c 100644 (file)
@@ -329,6 +329,10 @@ static inline void user_single_step_siginfo(struct task_struct *tsk,
 #define current_pt_regs() task_pt_regs(current)
 #endif
 
+#ifndef ptrace_signal_deliver
+#define ptrace_signal_deliver(regs, cookie) do { } while (0)
+#endif
+
 extern int task_current_syscall(struct task_struct *target, long *callno,
                                unsigned long args[6], unsigned int maxargs,
                                unsigned long *sp, unsigned long *pc);