mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
Linux 5.17 compat: dequeue_signal() takes a 4th argument
Linux 5.17's dequeue_signal() takes an additional enum pid_type *
output argument
Upstream commit 5768d8906bc23d512b1a736c1e198aa833a6daa4
("signal: Requeue signals in the appropriate queue")
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #12989
This commit is contained in:
@@ -188,7 +188,12 @@ issig(int why)
|
||||
|
||||
spin_lock_irq(&task->sighand->siglock);
|
||||
int ret;
|
||||
#ifdef HAVE_DEQUEUE_SIGNAL_4ARG
|
||||
enum pid_type __type;
|
||||
if ((ret = dequeue_signal(task, &set, &__info, &__type)) != 0) {
|
||||
#else
|
||||
if ((ret = dequeue_signal(task, &set, &__info)) != 0) {
|
||||
#endif
|
||||
#ifdef HAVE_SIGNAL_STOP
|
||||
spin_unlock_irq(&task->sighand->siglock);
|
||||
kernel_signal_stop();
|
||||
|
||||
Reference in New Issue
Block a user