Skip to content

Commit

Permalink
unify default ptrace_signal_deliver
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Nov 29, 2012
1 parent e80d666 commit 4f4202f
Show file tree
Hide file tree
Showing 18 changed files with 6 additions and 42 deletions.
3 changes: 0 additions & 3 deletions arch/alpha/include/asm/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,6 @@ struct sigstack {

#ifdef __KERNEL__
#include <asm/sigcontext.h>

#define ptrace_signal_deliver(regs, cookie) do { } while (0)

#endif

#endif
1 change: 0 additions & 1 deletion arch/arm/include/asm/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,4 @@ struct k_sigaction {
};

#include <asm/sigcontext.h>
#define ptrace_signal_deliver(regs, cookie) do { } while (0)
#endif
2 changes: 0 additions & 2 deletions arch/avr32/include/asm/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 0 additions & 6 deletions arch/cris/include/asm/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 0 additions & 2 deletions arch/h8300/include/asm/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
2 changes: 0 additions & 2 deletions arch/ia64/include/asm/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
4 changes: 0 additions & 4 deletions arch/m32r/include/asm/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
5 changes: 2 additions & 3 deletions arch/m68k/include/asm/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
2 changes: 0 additions & 2 deletions arch/mips/include/asm/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
4 changes: 0 additions & 4 deletions arch/mn10300/include/asm/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
2 changes: 0 additions & 2 deletions arch/parisc/include/asm/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
2 changes: 0 additions & 2 deletions arch/powerpc/include/asm/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
2 changes: 0 additions & 2 deletions arch/s390/include/asm/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,4 @@ struct k_sigaction {
struct sigaction sa;
};

#define ptrace_signal_deliver(regs, cookie) do { } while (0)

#endif
2 changes: 0 additions & 2 deletions arch/sparc/include/asm/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) */
2 changes: 0 additions & 2 deletions arch/x86/include/asm/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,6 @@ struct pt_regs;

#endif /* !__i386__ */

#define ptrace_signal_deliver(regs, cookie) do { } while (0)

#endif /* __KERNEL__ */
#endif /* __ASSEMBLY__ */

Expand Down
1 change: 0 additions & 1 deletion arch/xtensa/include/asm/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
2 changes: 0 additions & 2 deletions include/asm-generic/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
4 changes: 4 additions & 0 deletions include/linux/ptrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4f4202f

Please sign in to comment.