tracehook_signal_handler: Remove sig, info, ka and regs
authorRichard Weinberger <richard@nod.at>
Mon, 7 Oct 2013 13:37:19 +0000 (15:37 +0200)
committerRichard Weinberger <richard@sigma-star.at>
Wed, 6 Aug 2014 11:03:43 +0000 (13:03 +0200)
These parameters are nowhere used, so we can remove them.

Signed-off-by: Richard Weinberger <richard@nod.at>
include/linux/tracehook.h
kernel/signal.c

index 6f8ab7da27c43c47b82b25eb5198a82ca0d8487e..84d497297c5f44af0bcc1ace0a0584092d77ab92 100644 (file)
@@ -133,10 +133,6 @@ static inline void tracehook_report_syscall_exit(struct pt_regs *regs, int step)
 
 /**
  * tracehook_signal_handler - signal handler setup is complete
- * @sig:               number of signal being delivered
- * @info:              siginfo_t of signal being delivered
- * @ka:                        sigaction setting that chose the handler
- * @regs:              user register state
  * @stepping:          nonzero if debugger single-step or block-step in use
  *
  * Called by the arch code after a signal handler has been set up.
@@ -146,9 +142,7 @@ static inline void tracehook_report_syscall_exit(struct pt_regs *regs, int step)
  * Called without locks, shortly before returning to user mode
  * (or handling more signals).
  */
-static inline void tracehook_signal_handler(int sig, siginfo_t *info,
-                                           const struct k_sigaction *ka,
-                                           struct pt_regs *regs, int stepping)
+static inline void tracehook_signal_handler(int stepping)
 {
        if (stepping)
                ptrace_notify(SIGTRAP);
index a4077e90f19fcba4776af7f62a9ed2d4ddb9de03..c4d47661cc86976efde07789019aed0e9b4b79f9 100644 (file)
@@ -2379,7 +2379,7 @@ void signal_delivered(int sig, siginfo_t *info, struct k_sigaction *ka,
        if (!(ka->sa.sa_flags & SA_NODEFER))
                sigaddset(&blocked, sig);
        set_current_blocked(&blocked);
-       tracehook_signal_handler(sig, info, ka, regs, stepping);
+       tracehook_signal_handler(stepping);
 }
 
 void signal_setup_done(int failed, struct ksignal *ksig, int stepping)