Skip to content

Commit 9dd9574

Browse files
author
Al Viro
committed
ipc, kernel, mm: annotate ->poll() instances
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent ade994f commit 9dd9574

7 files changed

Lines changed: 14 additions & 14 deletions

File tree

‎ipc/mqueue.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,10 +519,10 @@ static int mqueue_flush_file(struct file *filp, fl_owner_t id)
519519
return 0;
520520
}
521521

522-
static unsigned int mqueue_poll_file(struct file *filp, struct poll_table_struct *poll_tab)
522+
static __poll_t mqueue_poll_file(struct file *filp, struct poll_table_struct *poll_tab)
523523
{
524524
struct mqueue_inode_info *info = MQUEUE_I(file_inode(filp));
525-
int retval = 0;
525+
__poll_t retval = 0;
526526

527527
poll_wait(filp, &info->wait_q, poll_tab);
528528

‎kernel/events/core.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4511,11 +4511,11 @@ perf_read(struct file *file, char __user *buf, size_t count, loff_t *ppos)
45114511
return ret;
45124512
}
45134513

4514-
static unsigned int perf_poll(struct file *file, poll_table *wait)
4514+
static __poll_t perf_poll(struct file *file, poll_table *wait)
45154515
{
45164516
struct perf_event *event = file->private_data;
45174517
struct ring_buffer *rb;
4518-
unsigned int events = POLLHUP;
4518+
__poll_t events = POLLHUP;
45194519

45204520
poll_wait(file, &event->waitq, wait);
45214521

‎kernel/printk/printk.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -920,10 +920,10 @@ static loff_t devkmsg_llseek(struct file *file, loff_t offset, int whence)
920920
return ret;
921921
}
922922

923-
static unsigned int devkmsg_poll(struct file *file, poll_table *wait)
923+
static __poll_t devkmsg_poll(struct file *file, poll_table *wait)
924924
{
925925
struct devkmsg_user *user = file->private_data;
926-
int ret = 0;
926+
__poll_t ret = 0;
927927

928928
if (!user)
929929
return POLLERR|POLLNVAL;

‎kernel/relay.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -919,9 +919,9 @@ static int relay_file_mmap(struct file *filp, struct vm_area_struct *vma)
919919
*
920920
* Poll implemention.
921921
*/
922-
static unsigned int relay_file_poll(struct file *filp, poll_table *wait)
922+
static __poll_t relay_file_poll(struct file *filp, poll_table *wait)
923923
{
924-
unsigned int mask = 0;
924+
__poll_t mask = 0;
925925
struct rchan_buf *buf = filp->private_data;
926926

927927
if (buf->finalized)

‎kernel/time/posix-clock.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ static ssize_t posix_clock_read(struct file *fp, char __user *buf,
6868
return err;
6969
}
7070

71-
static unsigned int posix_clock_poll(struct file *fp, poll_table *wait)
71+
static __poll_t posix_clock_poll(struct file *fp, poll_table *wait)
7272
{
7373
struct posix_clock *clk = get_posix_clock(fp);
74-
unsigned int result = 0;
74+
__poll_t result = 0;
7575

7676
if (!clk)
7777
return POLLERR;

‎kernel/trace/trace.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5632,7 +5632,7 @@ static int tracing_release_pipe(struct inode *inode, struct file *file)
56325632
return 0;
56335633
}
56345634

5635-
static unsigned int
5635+
static __poll_t
56365636
trace_poll(struct trace_iterator *iter, struct file *filp, poll_table *poll_table)
56375637
{
56385638
struct trace_array *tr = iter->tr;
@@ -5651,7 +5651,7 @@ trace_poll(struct trace_iterator *iter, struct file *filp, poll_table *poll_tabl
56515651
filp, poll_table);
56525652
}
56535653

5654-
static unsigned int
5654+
static __poll_t
56555655
tracing_poll_pipe(struct file *filp, poll_table *poll_table)
56565656
{
56575657
struct trace_iterator *iter = filp->private_data;
@@ -6605,7 +6605,7 @@ static int tracing_buffers_open(struct inode *inode, struct file *filp)
66056605
return ret;
66066606
}
66076607

6608-
static unsigned int
6608+
static __poll_t
66096609
tracing_buffers_poll(struct file *filp, poll_table *poll_table)
66106610
{
66116611
struct ftrace_buffer_info *info = filp->private_data;

‎mm/swapfile.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2697,7 +2697,7 @@ SYSCALL_DEFINE1(swapoff, const char __user *, specialfile)
26972697
}
26982698

26992699
#ifdef CONFIG_PROC_FS
2700-
static unsigned swaps_poll(struct file *file, poll_table *wait)
2700+
static __poll_t swaps_poll(struct file *file, poll_table *wait)
27012701
{
27022702
struct seq_file *seq = file->private_data;
27032703

0 commit comments

Comments
 (0)