diff options
Diffstat (limited to 'mm/swapfile.c')
-rw-r--r-- | mm/swapfile.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mm/swapfile.c b/mm/swapfile.c index 3074b02eaa09..c7a33717d079 100644 --- a/mm/swapfile.c +++ b/mm/swapfile.c @@ -2697,7 +2697,7 @@ out: } #ifdef CONFIG_PROC_FS -static unsigned swaps_poll(struct file *file, poll_table *wait) +static __poll_t swaps_poll(struct file *file, poll_table *wait) { struct seq_file *seq = file->private_data; @@ -2705,10 +2705,10 @@ static unsigned swaps_poll(struct file *file, poll_table *wait) if (seq->poll_event != atomic_read(&proc_poll_event)) { seq->poll_event = atomic_read(&proc_poll_event); - return POLLIN | POLLRDNORM | POLLERR | POLLPRI; + return EPOLLIN | EPOLLRDNORM | EPOLLERR | EPOLLPRI; } - return POLLIN | POLLRDNORM; + return EPOLLIN | EPOLLRDNORM; } /* iterator */ |