ipc, kernel, mm: annotate ->poll() instances
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
ade994f4f6
commit
9dd957485d
@ -519,10 +519,10 @@ static int mqueue_flush_file(struct file *filp, fl_owner_t id)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int mqueue_poll_file(struct file *filp, struct poll_table_struct *poll_tab)
|
static __poll_t mqueue_poll_file(struct file *filp, struct poll_table_struct *poll_tab)
|
||||||
{
|
{
|
||||||
struct mqueue_inode_info *info = MQUEUE_I(file_inode(filp));
|
struct mqueue_inode_info *info = MQUEUE_I(file_inode(filp));
|
||||||
int retval = 0;
|
__poll_t retval = 0;
|
||||||
|
|
||||||
poll_wait(filp, &info->wait_q, poll_tab);
|
poll_wait(filp, &info->wait_q, poll_tab);
|
||||||
|
|
||||||
|
@ -4511,11 +4511,11 @@ perf_read(struct file *file, char __user *buf, size_t count, loff_t *ppos)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int perf_poll(struct file *file, poll_table *wait)
|
static __poll_t perf_poll(struct file *file, poll_table *wait)
|
||||||
{
|
{
|
||||||
struct perf_event *event = file->private_data;
|
struct perf_event *event = file->private_data;
|
||||||
struct ring_buffer *rb;
|
struct ring_buffer *rb;
|
||||||
unsigned int events = POLLHUP;
|
__poll_t events = POLLHUP;
|
||||||
|
|
||||||
poll_wait(file, &event->waitq, wait);
|
poll_wait(file, &event->waitq, wait);
|
||||||
|
|
||||||
|
@ -920,10 +920,10 @@ static loff_t devkmsg_llseek(struct file *file, loff_t offset, int whence)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int devkmsg_poll(struct file *file, poll_table *wait)
|
static __poll_t devkmsg_poll(struct file *file, poll_table *wait)
|
||||||
{
|
{
|
||||||
struct devkmsg_user *user = file->private_data;
|
struct devkmsg_user *user = file->private_data;
|
||||||
int ret = 0;
|
__poll_t ret = 0;
|
||||||
|
|
||||||
if (!user)
|
if (!user)
|
||||||
return POLLERR|POLLNVAL;
|
return POLLERR|POLLNVAL;
|
||||||
|
@ -919,9 +919,9 @@ static int relay_file_mmap(struct file *filp, struct vm_area_struct *vma)
|
|||||||
*
|
*
|
||||||
* Poll implemention.
|
* Poll implemention.
|
||||||
*/
|
*/
|
||||||
static unsigned int relay_file_poll(struct file *filp, poll_table *wait)
|
static __poll_t relay_file_poll(struct file *filp, poll_table *wait)
|
||||||
{
|
{
|
||||||
unsigned int mask = 0;
|
__poll_t mask = 0;
|
||||||
struct rchan_buf *buf = filp->private_data;
|
struct rchan_buf *buf = filp->private_data;
|
||||||
|
|
||||||
if (buf->finalized)
|
if (buf->finalized)
|
||||||
|
@ -68,10 +68,10 @@ static ssize_t posix_clock_read(struct file *fp, char __user *buf,
|
|||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int posix_clock_poll(struct file *fp, poll_table *wait)
|
static __poll_t posix_clock_poll(struct file *fp, poll_table *wait)
|
||||||
{
|
{
|
||||||
struct posix_clock *clk = get_posix_clock(fp);
|
struct posix_clock *clk = get_posix_clock(fp);
|
||||||
unsigned int result = 0;
|
__poll_t result = 0;
|
||||||
|
|
||||||
if (!clk)
|
if (!clk)
|
||||||
return POLLERR;
|
return POLLERR;
|
||||||
|
@ -5632,7 +5632,7 @@ static int tracing_release_pipe(struct inode *inode, struct file *file)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int
|
static __poll_t
|
||||||
trace_poll(struct trace_iterator *iter, struct file *filp, poll_table *poll_table)
|
trace_poll(struct trace_iterator *iter, struct file *filp, poll_table *poll_table)
|
||||||
{
|
{
|
||||||
struct trace_array *tr = iter->tr;
|
struct trace_array *tr = iter->tr;
|
||||||
@ -5651,7 +5651,7 @@ trace_poll(struct trace_iterator *iter, struct file *filp, poll_table *poll_tabl
|
|||||||
filp, poll_table);
|
filp, poll_table);
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int
|
static __poll_t
|
||||||
tracing_poll_pipe(struct file *filp, poll_table *poll_table)
|
tracing_poll_pipe(struct file *filp, poll_table *poll_table)
|
||||||
{
|
{
|
||||||
struct trace_iterator *iter = filp->private_data;
|
struct trace_iterator *iter = filp->private_data;
|
||||||
@ -6605,7 +6605,7 @@ static int tracing_buffers_open(struct inode *inode, struct file *filp)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int
|
static __poll_t
|
||||||
tracing_buffers_poll(struct file *filp, poll_table *poll_table)
|
tracing_buffers_poll(struct file *filp, poll_table *poll_table)
|
||||||
{
|
{
|
||||||
struct ftrace_buffer_info *info = filp->private_data;
|
struct ftrace_buffer_info *info = filp->private_data;
|
||||||
|
@ -2697,7 +2697,7 @@ out:
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_PROC_FS
|
#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;
|
struct seq_file *seq = file->private_data;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user