forked from luck/tmp_suning_uos_patched
fs: annotate ->poll() instances
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
9dd957485d
commit
076ccb76e1
|
@ -31,7 +31,7 @@ static ssize_t cachefiles_daemon_read(struct file *, char __user *, size_t,
|
|||
loff_t *);
|
||||
static ssize_t cachefiles_daemon_write(struct file *, const char __user *,
|
||||
size_t, loff_t *);
|
||||
static unsigned int cachefiles_daemon_poll(struct file *,
|
||||
static __poll_t cachefiles_daemon_poll(struct file *,
|
||||
struct poll_table_struct *);
|
||||
static int cachefiles_daemon_frun(struct cachefiles_cache *, char *);
|
||||
static int cachefiles_daemon_fcull(struct cachefiles_cache *, char *);
|
||||
|
@ -291,11 +291,11 @@ static ssize_t cachefiles_daemon_write(struct file *file,
|
|||
* poll for culling state
|
||||
* - use POLLOUT to indicate culling state
|
||||
*/
|
||||
static unsigned int cachefiles_daemon_poll(struct file *file,
|
||||
static __poll_t cachefiles_daemon_poll(struct file *file,
|
||||
struct poll_table_struct *poll)
|
||||
{
|
||||
struct cachefiles_cache *cache = file->private_data;
|
||||
unsigned int mask;
|
||||
__poll_t mask;
|
||||
|
||||
poll_wait(file, &cache->daemon_pollwq, poll);
|
||||
mask = 0;
|
||||
|
|
|
@ -61,10 +61,10 @@ static struct class *coda_psdev_class;
|
|||
* Device operations
|
||||
*/
|
||||
|
||||
static unsigned int coda_psdev_poll(struct file *file, poll_table * wait)
|
||||
static __poll_t coda_psdev_poll(struct file *file, poll_table * wait)
|
||||
{
|
||||
struct venus_comm *vcp = (struct venus_comm *) file->private_data;
|
||||
unsigned int mask = POLLOUT | POLLWRNORM;
|
||||
__poll_t mask = POLLOUT | POLLWRNORM;
|
||||
|
||||
poll_wait(file, &vcp->vc_waitq, wait);
|
||||
mutex_lock(&vcp->vc_mutex);
|
||||
|
|
|
@ -206,7 +206,7 @@ FULL_PROXY_FUNC(unlocked_ioctl, long, filp,
|
|||
PROTO(struct file *filp, unsigned int cmd, unsigned long arg),
|
||||
ARGS(filp, cmd, arg));
|
||||
|
||||
static unsigned int full_proxy_poll(struct file *filp,
|
||||
static __poll_t full_proxy_poll(struct file *filp,
|
||||
struct poll_table_struct *wait)
|
||||
{
|
||||
struct dentry *dentry = F_DENTRY(filp);
|
||||
|
|
|
@ -463,9 +463,9 @@ static ssize_t dev_write(struct file *file, const char __user *u, size_t count,
|
|||
return count;
|
||||
}
|
||||
|
||||
static unsigned int dev_poll(struct file *file, poll_table *wait)
|
||||
static __poll_t dev_poll(struct file *file, poll_table *wait)
|
||||
{
|
||||
unsigned int mask = 0;
|
||||
__poll_t mask = 0;
|
||||
|
||||
poll_wait(file, &send_wq, wait);
|
||||
|
||||
|
|
|
@ -887,7 +887,7 @@ static ssize_t device_read(struct file *file, char __user *buf, size_t count,
|
|||
return rv;
|
||||
}
|
||||
|
||||
static unsigned int device_poll(struct file *file, poll_table *wait)
|
||||
static __poll_t device_poll(struct file *file, poll_table *wait)
|
||||
{
|
||||
struct dlm_user_proc *proc = file->private_data;
|
||||
|
||||
|
|
|
@ -38,11 +38,11 @@ static atomic_t ecryptfs_num_miscdev_opens;
|
|||
*
|
||||
* Returns the poll mask
|
||||
*/
|
||||
static unsigned int
|
||||
static __poll_t
|
||||
ecryptfs_miscdev_poll(struct file *file, poll_table *pt)
|
||||
{
|
||||
struct ecryptfs_daemon *daemon = file->private_data;
|
||||
unsigned int mask = 0;
|
||||
__poll_t mask = 0;
|
||||
|
||||
mutex_lock(&daemon->mux);
|
||||
if (daemon->flags & ECRYPTFS_DAEMON_ZOMBIE) {
|
||||
|
|
|
@ -114,10 +114,10 @@ static int eventfd_release(struct inode *inode, struct file *file)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static unsigned int eventfd_poll(struct file *file, poll_table *wait)
|
||||
static __poll_t eventfd_poll(struct file *file, poll_table *wait)
|
||||
{
|
||||
struct eventfd_ctx *ctx = file->private_data;
|
||||
unsigned int events = 0;
|
||||
__poll_t events = 0;
|
||||
u64 count;
|
||||
|
||||
poll_wait(file, &ctx->wqh, wait);
|
||||
|
|
|
@ -920,7 +920,7 @@ static int ep_read_events_proc(struct eventpoll *ep, struct list_head *head,
|
|||
return 0;
|
||||
}
|
||||
|
||||
static unsigned int ep_eventpoll_poll(struct file *file, poll_table *wait)
|
||||
static __poll_t ep_eventpoll_poll(struct file *file, poll_table *wait)
|
||||
{
|
||||
struct eventpoll *ep = file->private_data;
|
||||
int depth = 0;
|
||||
|
|
|
@ -2004,9 +2004,9 @@ static ssize_t fuse_dev_splice_write(struct pipe_inode_info *pipe,
|
|||
return ret;
|
||||
}
|
||||
|
||||
static unsigned fuse_dev_poll(struct file *file, poll_table *wait)
|
||||
static __poll_t fuse_dev_poll(struct file *file, poll_table *wait)
|
||||
{
|
||||
unsigned mask = POLLOUT | POLLWRNORM;
|
||||
__poll_t mask = POLLOUT | POLLWRNORM;
|
||||
struct fuse_iqueue *fiq;
|
||||
struct fuse_dev *fud = fuse_get_dev(file);
|
||||
|
||||
|
|
|
@ -2751,7 +2751,7 @@ static void fuse_register_polled_file(struct fuse_conn *fc,
|
|||
spin_unlock(&fc->lock);
|
||||
}
|
||||
|
||||
unsigned fuse_file_poll(struct file *file, poll_table *wait)
|
||||
__poll_t fuse_file_poll(struct file *file, poll_table *wait)
|
||||
{
|
||||
struct fuse_file *ff = file->private_data;
|
||||
struct fuse_conn *fc = ff->fc;
|
||||
|
|
|
@ -951,7 +951,7 @@ long fuse_do_ioctl(struct file *file, unsigned int cmd, unsigned long arg,
|
|||
unsigned int flags);
|
||||
long fuse_ioctl_common(struct file *file, unsigned int cmd,
|
||||
unsigned long arg, unsigned int flags);
|
||||
unsigned fuse_file_poll(struct file *file, poll_table *wait);
|
||||
__poll_t fuse_file_poll(struct file *file, poll_table *wait);
|
||||
int fuse_dev_release(struct inode *inode, struct file *file);
|
||||
|
||||
bool fuse_write_update_size(struct inode *inode, loff_t pos);
|
||||
|
|
|
@ -832,7 +832,7 @@ void kernfs_drain_open_files(struct kernfs_node *kn)
|
|||
* to see if it supports poll (Neither 'poll' nor 'select' return
|
||||
* an appropriate error code). When in doubt, set a suitable timeout value.
|
||||
*/
|
||||
static unsigned int kernfs_fop_poll(struct file *filp, poll_table *wait)
|
||||
static __poll_t kernfs_fop_poll(struct file *filp, poll_table *wait)
|
||||
{
|
||||
struct kernfs_open_file *of = kernfs_of(filp);
|
||||
struct kernfs_node *kn = kernfs_dentry_node(filp->f_path.dentry);
|
||||
|
|
|
@ -239,10 +239,10 @@ static ssize_t copy_event_to_user(struct fsnotify_group *group,
|
|||
}
|
||||
|
||||
/* intofiy userspace file descriptor functions */
|
||||
static unsigned int fanotify_poll(struct file *file, poll_table *wait)
|
||||
static __poll_t fanotify_poll(struct file *file, poll_table *wait)
|
||||
{
|
||||
struct fsnotify_group *group = file->private_data;
|
||||
int ret = 0;
|
||||
__poll_t ret = 0;
|
||||
|
||||
poll_wait(file, &group->notification_waitq, wait);
|
||||
spin_lock(&group->notification_lock);
|
||||
|
|
|
@ -107,10 +107,10 @@ static inline u32 inotify_mask_to_arg(__u32 mask)
|
|||
}
|
||||
|
||||
/* intofiy userspace file descriptor functions */
|
||||
static unsigned int inotify_poll(struct file *file, poll_table *wait)
|
||||
static __poll_t inotify_poll(struct file *file, poll_table *wait)
|
||||
{
|
||||
struct fsnotify_group *group = file->private_data;
|
||||
int ret = 0;
|
||||
__poll_t ret = 0;
|
||||
|
||||
poll_wait(file, &group->notification_waitq, wait);
|
||||
spin_lock(&group->notification_lock);
|
||||
|
|
|
@ -220,9 +220,9 @@ static int dlmfs_file_setattr(struct dentry *dentry, struct iattr *attr)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static unsigned int dlmfs_file_poll(struct file *file, poll_table *wait)
|
||||
static __poll_t dlmfs_file_poll(struct file *file, poll_table *wait)
|
||||
{
|
||||
int event = 0;
|
||||
__poll_t event = 0;
|
||||
struct inode *inode = file_inode(file);
|
||||
struct dlmfs_inode_private *ip = DLMFS_I(inode);
|
||||
|
||||
|
|
|
@ -814,10 +814,10 @@ void orangefs_dev_cleanup(void)
|
|||
ORANGEFS_REQDEVICE_NAME);
|
||||
}
|
||||
|
||||
static unsigned int orangefs_devreq_poll(struct file *file,
|
||||
static __poll_t orangefs_devreq_poll(struct file *file,
|
||||
struct poll_table_struct *poll_table)
|
||||
{
|
||||
int poll_revent_mask = 0;
|
||||
__poll_t poll_revent_mask = 0;
|
||||
|
||||
poll_wait(file, &orangefs_request_list_waitq, poll_table);
|
||||
|
||||
|
|
|
@ -515,10 +515,10 @@ static long pipe_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
|
|||
}
|
||||
|
||||
/* No kernel lock held - fine */
|
||||
static unsigned int
|
||||
static __poll_t
|
||||
pipe_poll(struct file *filp, poll_table *wait)
|
||||
{
|
||||
unsigned int mask;
|
||||
__poll_t mask;
|
||||
struct pipe_inode_info *pipe = filp->private_data;
|
||||
int nrbufs;
|
||||
|
||||
|
|
|
@ -234,7 +234,7 @@ static ssize_t proc_reg_write(struct file *file, const char __user *buf, size_t
|
|||
return rv;
|
||||
}
|
||||
|
||||
static unsigned int proc_reg_poll(struct file *file, struct poll_table_struct *pts)
|
||||
static __poll_t proc_reg_poll(struct file *file, struct poll_table_struct *pts)
|
||||
{
|
||||
struct proc_dir_entry *pde = PDE(file_inode(file));
|
||||
__poll_t rv = DEFAULT_POLLMASK;
|
||||
|
|
|
@ -40,7 +40,7 @@ static ssize_t kmsg_read(struct file *file, char __user *buf,
|
|||
return do_syslog(SYSLOG_ACTION_READ, buf, count, SYSLOG_FROM_PROC);
|
||||
}
|
||||
|
||||
static unsigned int kmsg_poll(struct file *file, poll_table *wait)
|
||||
static __poll_t kmsg_poll(struct file *file, poll_table *wait)
|
||||
{
|
||||
poll_wait(file, &log_wait, wait);
|
||||
if (do_syslog(SYSLOG_ACTION_SIZE_UNREAD, NULL, 0, SYSLOG_FROM_PROC))
|
||||
|
|
|
@ -630,12 +630,12 @@ static int proc_sys_open(struct inode *inode, struct file *filp)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static unsigned int proc_sys_poll(struct file *filp, poll_table *wait)
|
||||
static __poll_t proc_sys_poll(struct file *filp, poll_table *wait)
|
||||
{
|
||||
struct inode *inode = file_inode(filp);
|
||||
struct ctl_table_header *head = grab_header(inode);
|
||||
struct ctl_table *table = PROC_I(inode)->sysctl_entry;
|
||||
unsigned int ret = DEFAULT_POLLMASK;
|
||||
__poll_t ret = DEFAULT_POLLMASK;
|
||||
unsigned long event;
|
||||
|
||||
/* sysctl was unregistered */
|
||||
|
|
|
@ -18,12 +18,12 @@
|
|||
#include "pnode.h"
|
||||
#include "internal.h"
|
||||
|
||||
static unsigned mounts_poll(struct file *file, poll_table *wait)
|
||||
static __poll_t mounts_poll(struct file *file, poll_table *wait)
|
||||
{
|
||||
struct seq_file *m = file->private_data;
|
||||
struct proc_mounts *p = m->private;
|
||||
struct mnt_namespace *ns = p->ns;
|
||||
unsigned res = POLLIN | POLLRDNORM;
|
||||
__poll_t res = POLLIN | POLLRDNORM;
|
||||
int event;
|
||||
|
||||
poll_wait(file, &p->ns->poll, wait);
|
||||
|
|
|
@ -58,10 +58,10 @@ static int signalfd_release(struct inode *inode, struct file *file)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static unsigned int signalfd_poll(struct file *file, poll_table *wait)
|
||||
static __poll_t signalfd_poll(struct file *file, poll_table *wait)
|
||||
{
|
||||
struct signalfd_ctx *ctx = file->private_data;
|
||||
unsigned int events = 0;
|
||||
__poll_t events = 0;
|
||||
|
||||
poll_wait(file, ¤t->sighand->signalfd_wqh, wait);
|
||||
|
||||
|
|
|
@ -227,10 +227,10 @@ static int timerfd_release(struct inode *inode, struct file *file)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static unsigned int timerfd_poll(struct file *file, poll_table *wait)
|
||||
static __poll_t timerfd_poll(struct file *file, poll_table *wait)
|
||||
{
|
||||
struct timerfd_ctx *ctx = file->private_data;
|
||||
unsigned int events = 0;
|
||||
__poll_t events = 0;
|
||||
unsigned long flags;
|
||||
|
||||
poll_wait(file, &ctx->wqh, wait);
|
||||
|
|
|
@ -921,10 +921,10 @@ static inline struct userfaultfd_wait_queue *find_userfault_evt(
|
|||
return find_userfault_in(&ctx->event_wqh);
|
||||
}
|
||||
|
||||
static unsigned int userfaultfd_poll(struct file *file, poll_table *wait)
|
||||
static __poll_t userfaultfd_poll(struct file *file, poll_table *wait)
|
||||
{
|
||||
struct userfaultfd_ctx *ctx = file->private_data;
|
||||
unsigned int ret;
|
||||
__poll_t ret;
|
||||
|
||||
poll_wait(file, &ctx->fd_wqh, wait);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user