diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-11-05 12:59:15 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-11-29 00:01:23 -0500 |
commit | 4f4202fe5ae9a43e59303f20d700571f695d7b1b (patch) | |
tree | 150e0dc8d1a8e0009c55fdca69981dd83e44aa1f | |
parent | e80d6661c3a5caa0cebec0853c6cb0db090fb506 (diff) |
unify default ptrace_signal_deliver
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r-- | arch/alpha/include/asm/signal.h | 3 | ||||
-rw-r--r-- | arch/arm/include/asm/signal.h | 1 | ||||
-rw-r--r-- | arch/avr32/include/asm/signal.h | 2 | ||||
-rw-r--r-- | arch/cris/include/asm/signal.h | 6 | ||||
-rw-r--r-- | arch/h8300/include/asm/signal.h | 2 | ||||
-rw-r--r-- | arch/ia64/include/asm/signal.h | 2 | ||||
-rw-r--r-- | arch/m32r/include/asm/signal.h | 4 | ||||
-rw-r--r-- | arch/m68k/include/asm/signal.h | 5 | ||||
-rw-r--r-- | arch/mips/include/asm/signal.h | 2 | ||||
-rw-r--r-- | arch/mn10300/include/asm/signal.h | 4 | ||||
-rw-r--r-- | arch/parisc/include/asm/signal.h | 2 | ||||
-rw-r--r-- | arch/powerpc/include/asm/signal.h | 2 | ||||
-rw-r--r-- | arch/s390/include/asm/signal.h | 2 | ||||
-rw-r--r-- | arch/sparc/include/asm/signal.h | 2 | ||||
-rw-r--r-- | arch/x86/include/asm/signal.h | 2 | ||||
-rw-r--r-- | arch/xtensa/include/asm/signal.h | 1 | ||||
-rw-r--r-- | include/asm-generic/signal.h | 2 | ||||
-rw-r--r-- | include/linux/ptrace.h | 4 |
18 files changed, 6 insertions, 42 deletions
diff --git a/arch/alpha/include/asm/signal.h b/arch/alpha/include/asm/signal.h index a9388300abb1..45552862cc10 100644 --- a/arch/alpha/include/asm/signal.h +++ b/arch/alpha/include/asm/signal.h | |||
@@ -164,9 +164,6 @@ struct sigstack { | |||
164 | 164 | ||
165 | #ifdef __KERNEL__ | 165 | #ifdef __KERNEL__ |
166 | #include <asm/sigcontext.h> | 166 | #include <asm/sigcontext.h> |
167 | |||
168 | #define ptrace_signal_deliver(regs, cookie) do { } while (0) | ||
169 | |||
170 | #endif | 167 | #endif |
171 | 168 | ||
172 | #endif | 169 | #endif |
diff --git a/arch/arm/include/asm/signal.h b/arch/arm/include/asm/signal.h index 5a7963dbd3fb..9a0ea6ab988f 100644 --- a/arch/arm/include/asm/signal.h +++ b/arch/arm/include/asm/signal.h | |||
@@ -35,5 +35,4 @@ struct k_sigaction { | |||
35 | }; | 35 | }; |
36 | 36 | ||
37 | #include <asm/sigcontext.h> | 37 | #include <asm/sigcontext.h> |
38 | #define ptrace_signal_deliver(regs, cookie) do { } while (0) | ||
39 | #endif | 38 | #endif |
diff --git a/arch/avr32/include/asm/signal.h b/arch/avr32/include/asm/signal.h index 4d502fd6bad3..9326d182e9e5 100644 --- a/arch/avr32/include/asm/signal.h +++ b/arch/avr32/include/asm/signal.h | |||
@@ -37,6 +37,4 @@ struct k_sigaction { | |||
37 | #include <asm/sigcontext.h> | 37 | #include <asm/sigcontext.h> |
38 | #undef __HAVE_ARCH_SIG_BITOPS | 38 | #undef __HAVE_ARCH_SIG_BITOPS |
39 | 39 | ||
40 | #define ptrace_signal_deliver(regs, cookie) do { } while (0) | ||
41 | |||
42 | #endif | 40 | #endif |
diff --git a/arch/cris/include/asm/signal.h b/arch/cris/include/asm/signal.h index ea6af9aad76c..72dbbf59dfae 100644 --- a/arch/cris/include/asm/signal.h +++ b/arch/cris/include/asm/signal.h | |||
@@ -152,12 +152,6 @@ typedef struct sigaltstack { | |||
152 | 152 | ||
153 | #ifdef __KERNEL__ | 153 | #ifdef __KERNEL__ |
154 | #include <asm/sigcontext.h> | 154 | #include <asm/sigcontext.h> |
155 | |||
156 | /* here we could define asm-optimized sigaddset, sigdelset etc. operations. | ||
157 | * if we don't, generic ones are used from linux/signal.h | ||
158 | */ | ||
159 | #define ptrace_signal_deliver(regs, cookie) do { } while (0) | ||
160 | |||
161 | #endif /* __KERNEL__ */ | 155 | #endif /* __KERNEL__ */ |
162 | 156 | ||
163 | #endif | 157 | #endif |
diff --git a/arch/h8300/include/asm/signal.h b/arch/h8300/include/asm/signal.h index fd8b66e40dca..c43c0a7d2c2e 100644 --- a/arch/h8300/include/asm/signal.h +++ b/arch/h8300/include/asm/signal.h | |||
@@ -154,8 +154,6 @@ typedef struct sigaltstack { | |||
154 | #include <asm/sigcontext.h> | 154 | #include <asm/sigcontext.h> |
155 | #undef __HAVE_ARCH_SIG_BITOPS | 155 | #undef __HAVE_ARCH_SIG_BITOPS |
156 | 156 | ||
157 | #define ptrace_signal_deliver(regs, cookie) do { } while (0) | ||
158 | |||
159 | #endif /* __KERNEL__ */ | 157 | #endif /* __KERNEL__ */ |
160 | 158 | ||
161 | #endif /* _H8300_SIGNAL_H */ | 159 | #endif /* _H8300_SIGNAL_H */ |
diff --git a/arch/ia64/include/asm/signal.h b/arch/ia64/include/asm/signal.h index aecda5b9eb4e..3a1b20e74c5c 100644 --- a/arch/ia64/include/asm/signal.h +++ b/arch/ia64/include/asm/signal.h | |||
@@ -38,7 +38,5 @@ struct k_sigaction { | |||
38 | 38 | ||
39 | # include <asm/sigcontext.h> | 39 | # include <asm/sigcontext.h> |
40 | 40 | ||
41 | #define ptrace_signal_deliver(regs, cookie) do { } while (0) | ||
42 | |||
43 | # endif /* !__ASSEMBLY__ */ | 41 | # endif /* !__ASSEMBLY__ */ |
44 | #endif /* _ASM_IA64_SIGNAL_H */ | 42 | #endif /* _ASM_IA64_SIGNAL_H */ |
diff --git a/arch/m32r/include/asm/signal.h b/arch/m32r/include/asm/signal.h index ea5f95e4079e..e4d2e2ad5f1e 100644 --- a/arch/m32r/include/asm/signal.h +++ b/arch/m32r/include/asm/signal.h | |||
@@ -149,10 +149,6 @@ typedef struct sigaltstack { | |||
149 | 149 | ||
150 | #undef __HAVE_ARCH_SIG_BITOPS | 150 | #undef __HAVE_ARCH_SIG_BITOPS |
151 | 151 | ||
152 | struct pt_regs; | ||
153 | |||
154 | #define ptrace_signal_deliver(regs, cookie) do { } while (0) | ||
155 | |||
156 | #endif /* __KERNEL__ */ | 152 | #endif /* __KERNEL__ */ |
157 | 153 | ||
158 | #endif /* _ASM_M32R_SIGNAL_H */ | 154 | #endif /* _ASM_M32R_SIGNAL_H */ |
diff --git a/arch/m68k/include/asm/signal.h b/arch/m68k/include/asm/signal.h index 2df26b57c26a..eb51a5241187 100644 --- a/arch/m68k/include/asm/signal.h +++ b/arch/m68k/include/asm/signal.h | |||
@@ -86,11 +86,10 @@ static inline int sigfindinword(unsigned long word) | |||
86 | 86 | ||
87 | #endif /* !CONFIG_CPU_HAS_NO_BITFIELDS */ | 87 | #endif /* !CONFIG_CPU_HAS_NO_BITFIELDS */ |
88 | 88 | ||
89 | #ifdef __uClinux__ | 89 | #ifndef __uClinux__ |
90 | #define ptrace_signal_deliver(regs, cookie) do { } while (0) | ||
91 | #else | ||
92 | struct pt_regs; | 90 | struct pt_regs; |
93 | extern void ptrace_signal_deliver(struct pt_regs *regs, void *cookie); | 91 | extern void ptrace_signal_deliver(struct pt_regs *regs, void *cookie); |
92 | #define ptrace_signal_deliver ptrace_signal_deliver | ||
94 | #endif /* __uClinux__ */ | 93 | #endif /* __uClinux__ */ |
95 | 94 | ||
96 | #endif /* _M68K_SIGNAL_H */ | 95 | #endif /* _M68K_SIGNAL_H */ |
diff --git a/arch/mips/include/asm/signal.h b/arch/mips/include/asm/signal.h index 880240dff8b7..cf4a08062d1d 100644 --- a/arch/mips/include/asm/signal.h +++ b/arch/mips/include/asm/signal.h | |||
@@ -21,6 +21,4 @@ | |||
21 | #include <asm/sigcontext.h> | 21 | #include <asm/sigcontext.h> |
22 | #include <asm/siginfo.h> | 22 | #include <asm/siginfo.h> |
23 | 23 | ||
24 | #define ptrace_signal_deliver(regs, cookie) do { } while (0) | ||
25 | |||
26 | #endif /* _ASM_SIGNAL_H */ | 24 | #endif /* _ASM_SIGNAL_H */ |
diff --git a/arch/mn10300/include/asm/signal.h b/arch/mn10300/include/asm/signal.h index f9668ec3040c..d280e9780793 100644 --- a/arch/mn10300/include/asm/signal.h +++ b/arch/mn10300/include/asm/signal.h | |||
@@ -45,8 +45,4 @@ struct k_sigaction { | |||
45 | }; | 45 | }; |
46 | #include <asm/sigcontext.h> | 46 | #include <asm/sigcontext.h> |
47 | 47 | ||
48 | |||
49 | struct pt_regs; | ||
50 | #define ptrace_signal_deliver(regs, cookie) do { } while (0) | ||
51 | |||
52 | #endif /* _ASM_SIGNAL_H */ | 48 | #endif /* _ASM_SIGNAL_H */ |
diff --git a/arch/parisc/include/asm/signal.h b/arch/parisc/include/asm/signal.h index 21abf4fc169a..0fdb3c835952 100644 --- a/arch/parisc/include/asm/signal.h +++ b/arch/parisc/include/asm/signal.h | |||
@@ -34,8 +34,6 @@ struct k_sigaction { | |||
34 | struct sigaction sa; | 34 | struct sigaction sa; |
35 | }; | 35 | }; |
36 | 36 | ||
37 | #define ptrace_signal_deliver(regs, cookie) do { } while (0) | ||
38 | |||
39 | #include <asm/sigcontext.h> | 37 | #include <asm/sigcontext.h> |
40 | 38 | ||
41 | #endif /* !__ASSEMBLY */ | 39 | #endif /* !__ASSEMBLY */ |
diff --git a/arch/powerpc/include/asm/signal.h b/arch/powerpc/include/asm/signal.h index 189998bb61c4..a101637725a2 100644 --- a/arch/powerpc/include/asm/signal.h +++ b/arch/powerpc/include/asm/signal.h | |||
@@ -3,6 +3,4 @@ | |||
3 | 3 | ||
4 | #include <uapi/asm/signal.h> | 4 | #include <uapi/asm/signal.h> |
5 | 5 | ||
6 | struct pt_regs; | ||
7 | #define ptrace_signal_deliver(regs, cookie) do { } while (0) | ||
8 | #endif /* _ASM_POWERPC_SIGNAL_H */ | 6 | #endif /* _ASM_POWERPC_SIGNAL_H */ |
diff --git a/arch/s390/include/asm/signal.h b/arch/s390/include/asm/signal.h index bffdbdd5b3d7..db7ddfaf5b79 100644 --- a/arch/s390/include/asm/signal.h +++ b/arch/s390/include/asm/signal.h | |||
@@ -39,6 +39,4 @@ struct k_sigaction { | |||
39 | struct sigaction sa; | 39 | struct sigaction sa; |
40 | }; | 40 | }; |
41 | 41 | ||
42 | #define ptrace_signal_deliver(regs, cookie) do { } while (0) | ||
43 | |||
44 | #endif | 42 | #endif |
diff --git a/arch/sparc/include/asm/signal.h b/arch/sparc/include/asm/signal.h index d243c2ae02d2..77b85850d543 100644 --- a/arch/sparc/include/asm/signal.h +++ b/arch/sparc/include/asm/signal.h | |||
@@ -26,7 +26,5 @@ struct k_sigaction { | |||
26 | void __user *ka_restorer; | 26 | void __user *ka_restorer; |
27 | }; | 27 | }; |
28 | 28 | ||
29 | #define ptrace_signal_deliver(regs, cookie) do { } while (0) | ||
30 | |||
31 | #endif /* !(__ASSEMBLY__) */ | 29 | #endif /* !(__ASSEMBLY__) */ |
32 | #endif /* !(__SPARC_SIGNAL_H) */ | 30 | #endif /* !(__SPARC_SIGNAL_H) */ |
diff --git a/arch/x86/include/asm/signal.h b/arch/x86/include/asm/signal.h index 323973f4abf1..0dba8b7a6ac7 100644 --- a/arch/x86/include/asm/signal.h +++ b/arch/x86/include/asm/signal.h | |||
@@ -260,8 +260,6 @@ struct pt_regs; | |||
260 | 260 | ||
261 | #endif /* !__i386__ */ | 261 | #endif /* !__i386__ */ |
262 | 262 | ||
263 | #define ptrace_signal_deliver(regs, cookie) do { } while (0) | ||
264 | |||
265 | #endif /* __KERNEL__ */ | 263 | #endif /* __KERNEL__ */ |
266 | #endif /* __ASSEMBLY__ */ | 264 | #endif /* __ASSEMBLY__ */ |
267 | 265 | ||
diff --git a/arch/xtensa/include/asm/signal.h b/arch/xtensa/include/asm/signal.h index 72fd44c85b70..6f586bd90e18 100644 --- a/arch/xtensa/include/asm/signal.h +++ b/arch/xtensa/include/asm/signal.h | |||
@@ -27,7 +27,6 @@ struct k_sigaction { | |||
27 | }; | 27 | }; |
28 | 28 | ||
29 | #include <asm/sigcontext.h> | 29 | #include <asm/sigcontext.h> |
30 | #define ptrace_signal_deliver(regs, cookie) do { } while (0) | ||
31 | 30 | ||
32 | #endif /* __ASSEMBLY__ */ | 31 | #endif /* __ASSEMBLY__ */ |
33 | #endif /* _XTENSA_SIGNAL_H */ | 32 | #endif /* _XTENSA_SIGNAL_H */ |
diff --git a/include/asm-generic/signal.h b/include/asm-generic/signal.h index 98caa306122a..d840c90a157a 100644 --- a/include/asm-generic/signal.h +++ b/include/asm-generic/signal.h | |||
@@ -10,7 +10,5 @@ | |||
10 | #include <asm/sigcontext.h> | 10 | #include <asm/sigcontext.h> |
11 | #undef __HAVE_ARCH_SIG_BITOPS | 11 | #undef __HAVE_ARCH_SIG_BITOPS |
12 | 12 | ||
13 | #define ptrace_signal_deliver(regs, cookie) do { } while (0) | ||
14 | |||
15 | #endif /* __ASSEMBLY__ */ | 13 | #endif /* __ASSEMBLY__ */ |
16 | #endif /* _ASM_GENERIC_SIGNAL_H */ | 14 | #endif /* _ASM_GENERIC_SIGNAL_H */ |
diff --git a/include/linux/ptrace.h b/include/linux/ptrace.h index e0ff4689d35a..7aefbae2452e 100644 --- a/include/linux/ptrace.h +++ b/include/linux/ptrace.h | |||
@@ -329,6 +329,10 @@ static inline void user_single_step_siginfo(struct task_struct *tsk, | |||
329 | #define current_pt_regs() task_pt_regs(current) | 329 | #define current_pt_regs() task_pt_regs(current) |
330 | #endif | 330 | #endif |
331 | 331 | ||
332 | #ifndef ptrace_signal_deliver | ||
333 | #define ptrace_signal_deliver(regs, cookie) do { } while (0) | ||
334 | #endif | ||
335 | |||
332 | extern int task_current_syscall(struct task_struct *target, long *callno, | 336 | extern int task_current_syscall(struct task_struct *target, long *callno, |
333 | unsigned long args[6], unsigned int maxargs, | 337 | unsigned long args[6], unsigned int maxargs, |
334 | unsigned long *sp, unsigned long *pc); | 338 | unsigned long *sp, unsigned long *pc); |