]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
signal: Remove the siginfo paramater from kernel_dqueue_signal
authorEric W. Biederman <ebiederm@xmission.com>
Fri, 20 Jul 2018 02:31:13 +0000 (21:31 -0500)
committerEric W. Biederman <ebiederm@xmission.com>
Tue, 11 Sep 2018 19:19:14 +0000 (21:19 +0200)
None of the callers use the it so remove it.

Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
drivers/usb/gadget/function/f_mass_storage.c
fs/jffs2/background.c
include/linux/sched/signal.h

index ca8a4b53c59f9896e40e1ffd107d2d3b1f3e2e74..70038a475c9fea37f2ed46fad8db28d978175216 100644 (file)
@@ -2311,7 +2311,7 @@ static void handle_exception(struct fsg_common *common)
         * into a high-priority EXIT exception.
         */
        for (;;) {
-               int sig = kernel_dequeue_signal(NULL);
+               int sig = kernel_dequeue_signal();
                if (!sig)
                        break;
                if (sig != SIGUSR1) {
index 453a6a1fff34ec9a3fca95d49b560fed2a8cec8e..2b4d5013dc5d0b48a38514ca602169ea1cdc7274 100644 (file)
@@ -125,7 +125,7 @@ static int jffs2_garbage_collect_thread(void *_c)
                        if (try_to_freeze())
                                goto again;
 
-                       signr = kernel_dequeue_signal(NULL);
+                       signr = kernel_dequeue_signal();
 
                        switch(signr) {
                        case SIGSTOP:
index 1be35729c2c5b9c0bb915653d7778e0acbdfd29b..9b6968cbde14b2c36fd7874523d535361d8fa796 100644 (file)
@@ -272,14 +272,14 @@ extern void ignore_signals(struct task_struct *);
 extern void flush_signal_handlers(struct task_struct *, int force_default);
 extern int dequeue_signal(struct task_struct *tsk, sigset_t *mask, siginfo_t *info);
 
-static inline int kernel_dequeue_signal(siginfo_t *info)
+static inline int kernel_dequeue_signal(void)
 {
        struct task_struct *tsk = current;
        siginfo_t __info;
        int ret;
 
        spin_lock_irq(&tsk->sighand->siglock);
-       ret = dequeue_signal(tsk, &tsk->blocked, info ?: &__info);
+       ret = dequeue_signal(tsk, &tsk->blocked, &__info);
        spin_unlock_irq(&tsk->sighand->siglock);
 
        return ret;