summaryrefslogtreecommitdiffstats
path: root/fs/fcntl.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2017-07-16 22:14:00 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2017-11-28 11:07:12 -0500
commit5dc533c66b131726a1a747eb3c92b20a9ede9219 (patch)
treecf622707aa1a425ebfa9863ed43b38927f68df65 /fs/fcntl.c
parentecf927000ce3265e9871c79d43c10ceed8bd61c9 (diff)
->si_band gets POLL... bitmap stored into a user-visible long field
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/fcntl.c')
-rw-r--r--fs/fcntl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/fcntl.c b/fs/fcntl.c
index 0522e283a4f4..afe731c7a5a8 100644
--- a/fs/fcntl.c
+++ b/fs/fcntl.c
@@ -690,7 +690,7 @@ COMPAT_SYSCALL_DEFINE3(fcntl, unsigned int, fd, unsigned int, cmd,
690 690
691/* Table to convert sigio signal codes into poll band bitmaps */ 691/* Table to convert sigio signal codes into poll band bitmaps */
692 692
693static const long band_table[NSIGPOLL] = { 693static const __poll_t band_table[NSIGPOLL] = {
694 POLLIN | POLLRDNORM, /* POLL_IN */ 694 POLLIN | POLLRDNORM, /* POLL_IN */
695 POLLOUT | POLLWRNORM | POLLWRBAND, /* POLL_OUT */ 695 POLLOUT | POLLWRNORM | POLLWRBAND, /* POLL_OUT */
696 POLLIN | POLLRDNORM | POLLMSG, /* POLL_MSG */ 696 POLLIN | POLLRDNORM | POLLMSG, /* POLL_MSG */
@@ -758,7 +758,7 @@ static void send_sigio_to_task(struct task_struct *p,
758 if (reason - POLL_IN >= NSIGPOLL) 758 if (reason - POLL_IN >= NSIGPOLL)
759 si.si_band = ~0L; 759 si.si_band = ~0L;
760 else 760 else
761 si.si_band = band_table[reason - POLL_IN]; 761 si.si_band = (__force long)band_table[reason - POLL_IN];
762 si.si_fd = fd; 762 si.si_fd = fd;
763 if (!do_send_sig_info(signum, &si, p, group)) 763 if (!do_send_sig_info(signum, &si, p, group))
764 break; 764 break;