aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2017-07-02 22:22:01 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2017-11-27 16:19:52 -0500
commita3f8683bf7d5e6254fe68f5c5d3585e27eea8ed0 (patch)
treea4fcb5f30ea25b969f9acfc8fdf53a1f401c7e84
parent8ced390c2b18364af35e3d3f080e06f8ea96be9a (diff)
->poll() methods should return __poll_t
The most common place to find POLL... bitmaps: return values of ->poll() and its subsystem counterparts. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r--fs/proc/inode.c2
-rw-r--r--include/linux/fs.h2
-rw-r--r--include/linux/net.h2
-rw-r--r--include/linux/posix-clock.h2
-rw-r--r--include/linux/tty_ldisc.h2
-rw-r--r--include/media/media-devnode.h2
-rw-r--r--include/media/soc_camera.h2
-rw-r--r--include/media/v4l2-dev.h2
-rw-r--r--include/sound/hwdep.h2
-rw-r--r--include/sound/info.h2
10 files changed, 10 insertions, 10 deletions
diff --git a/fs/proc/inode.c b/fs/proc/inode.c
index 225f541f7078..44e37f38493b 100644
--- a/fs/proc/inode.c
+++ b/fs/proc/inode.c
@@ -238,7 +238,7 @@ static unsigned int proc_reg_poll(struct file *file, struct poll_table_struct *p
238{ 238{
239 struct proc_dir_entry *pde = PDE(file_inode(file)); 239 struct proc_dir_entry *pde = PDE(file_inode(file));
240 unsigned int rv = DEFAULT_POLLMASK; 240 unsigned int rv = DEFAULT_POLLMASK;
241 unsigned int (*poll)(struct file *, struct poll_table_struct *); 241 __poll_t (*poll)(struct file *, struct poll_table_struct *);
242 if (use_pde(pde)) { 242 if (use_pde(pde)) {
243 poll = pde->proc_fops->poll; 243 poll = pde->proc_fops->poll;
244 if (poll) 244 if (poll)
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 2995a271ec46..64695eb07992 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -1698,7 +1698,7 @@ struct file_operations {
1698 ssize_t (*write_iter) (struct kiocb *, struct iov_iter *); 1698 ssize_t (*write_iter) (struct kiocb *, struct iov_iter *);
1699 int (*iterate) (struct file *, struct dir_context *); 1699 int (*iterate) (struct file *, struct dir_context *);
1700 int (*iterate_shared) (struct file *, struct dir_context *); 1700 int (*iterate_shared) (struct file *, struct dir_context *);
1701 unsigned int (*poll) (struct file *, struct poll_table_struct *); 1701 __poll_t (*poll) (struct file *, struct poll_table_struct *);
1702 long (*unlocked_ioctl) (struct file *, unsigned int, unsigned long); 1702 long (*unlocked_ioctl) (struct file *, unsigned int, unsigned long);
1703 long (*compat_ioctl) (struct file *, unsigned int, unsigned long); 1703 long (*compat_ioctl) (struct file *, unsigned int, unsigned long);
1704 int (*mmap) (struct file *, struct vm_area_struct *); 1704 int (*mmap) (struct file *, struct vm_area_struct *);
diff --git a/include/linux/net.h b/include/linux/net.h
index caeb159abda5..c2d468cb9821 100644
--- a/include/linux/net.h
+++ b/include/linux/net.h
@@ -147,7 +147,7 @@ struct proto_ops {
147 int (*getname) (struct socket *sock, 147 int (*getname) (struct socket *sock,
148 struct sockaddr *addr, 148 struct sockaddr *addr,
149 int *sockaddr_len, int peer); 149 int *sockaddr_len, int peer);
150 unsigned int (*poll) (struct file *file, struct socket *sock, 150 __poll_t (*poll) (struct file *file, struct socket *sock,
151 struct poll_table_struct *wait); 151 struct poll_table_struct *wait);
152 int (*ioctl) (struct socket *sock, unsigned int cmd, 152 int (*ioctl) (struct socket *sock, unsigned int cmd,
153 unsigned long arg); 153 unsigned long arg);
diff --git a/include/linux/posix-clock.h b/include/linux/posix-clock.h
index 38d8225510f1..3a3bc71017d5 100644
--- a/include/linux/posix-clock.h
+++ b/include/linux/posix-clock.h
@@ -68,7 +68,7 @@ struct posix_clock_operations {
68 68
69 int (*open) (struct posix_clock *pc, fmode_t f_mode); 69 int (*open) (struct posix_clock *pc, fmode_t f_mode);
70 70
71 uint (*poll) (struct posix_clock *pc, 71 __poll_t (*poll) (struct posix_clock *pc,
72 struct file *file, poll_table *wait); 72 struct file *file, poll_table *wait);
73 73
74 int (*release) (struct posix_clock *pc); 74 int (*release) (struct posix_clock *pc);
diff --git a/include/linux/tty_ldisc.h b/include/linux/tty_ldisc.h
index 3bc5144b1c7e..1ef64d4ad887 100644
--- a/include/linux/tty_ldisc.h
+++ b/include/linux/tty_ldisc.h
@@ -187,7 +187,7 @@ struct tty_ldisc_ops {
187 long (*compat_ioctl)(struct tty_struct *tty, struct file *file, 187 long (*compat_ioctl)(struct tty_struct *tty, struct file *file,
188 unsigned int cmd, unsigned long arg); 188 unsigned int cmd, unsigned long arg);
189 void (*set_termios)(struct tty_struct *tty, struct ktermios *old); 189 void (*set_termios)(struct tty_struct *tty, struct ktermios *old);
190 unsigned int (*poll)(struct tty_struct *, struct file *, 190 __poll_t (*poll)(struct tty_struct *, struct file *,
191 struct poll_table_struct *); 191 struct poll_table_struct *);
192 int (*hangup)(struct tty_struct *tty); 192 int (*hangup)(struct tty_struct *tty);
193 193
diff --git a/include/media/media-devnode.h b/include/media/media-devnode.h
index 511615d3bf6f..dc2f64e1b08f 100644
--- a/include/media/media-devnode.h
+++ b/include/media/media-devnode.h
@@ -56,7 +56,7 @@ struct media_file_operations {
56 struct module *owner; 56 struct module *owner;
57 ssize_t (*read) (struct file *, char __user *, size_t, loff_t *); 57 ssize_t (*read) (struct file *, char __user *, size_t, loff_t *);
58 ssize_t (*write) (struct file *, const char __user *, size_t, loff_t *); 58 ssize_t (*write) (struct file *, const char __user *, size_t, loff_t *);
59 unsigned int (*poll) (struct file *, struct poll_table_struct *); 59 __poll_t (*poll) (struct file *, struct poll_table_struct *);
60 long (*ioctl) (struct file *, unsigned int, unsigned long); 60 long (*ioctl) (struct file *, unsigned int, unsigned long);
61 long (*compat_ioctl) (struct file *, unsigned int, unsigned long); 61 long (*compat_ioctl) (struct file *, unsigned int, unsigned long);
62 int (*open) (struct file *); 62 int (*open) (struct file *);
diff --git a/include/media/soc_camera.h b/include/media/soc_camera.h
index 4d8cb0796bc6..b7e42a1b0910 100644
--- a/include/media/soc_camera.h
+++ b/include/media/soc_camera.h
@@ -117,7 +117,7 @@ struct soc_camera_host_ops {
117 int (*get_parm)(struct soc_camera_device *, struct v4l2_streamparm *); 117 int (*get_parm)(struct soc_camera_device *, struct v4l2_streamparm *);
118 int (*set_parm)(struct soc_camera_device *, struct v4l2_streamparm *); 118 int (*set_parm)(struct soc_camera_device *, struct v4l2_streamparm *);
119 int (*enum_framesizes)(struct soc_camera_device *, struct v4l2_frmsizeenum *); 119 int (*enum_framesizes)(struct soc_camera_device *, struct v4l2_frmsizeenum *);
120 unsigned int (*poll)(struct file *, poll_table *); 120 __poll_t (*poll)(struct file *, poll_table *);
121}; 121};
122 122
123#define SOCAM_SENSOR_INVERT_PCLK (1 << 0) 123#define SOCAM_SENSOR_INVERT_PCLK (1 << 0)
diff --git a/include/media/v4l2-dev.h b/include/media/v4l2-dev.h
index 28a686eb7d09..fa99f6f66712 100644
--- a/include/media/v4l2-dev.h
+++ b/include/media/v4l2-dev.h
@@ -152,7 +152,7 @@ struct v4l2_file_operations {
152 struct module *owner; 152 struct module *owner;
153 ssize_t (*read) (struct file *, char __user *, size_t, loff_t *); 153 ssize_t (*read) (struct file *, char __user *, size_t, loff_t *);
154 ssize_t (*write) (struct file *, const char __user *, size_t, loff_t *); 154 ssize_t (*write) (struct file *, const char __user *, size_t, loff_t *);
155 unsigned int (*poll) (struct file *, struct poll_table_struct *); 155 __poll_t (*poll) (struct file *, struct poll_table_struct *);
156 long (*unlocked_ioctl) (struct file *, unsigned int, unsigned long); 156 long (*unlocked_ioctl) (struct file *, unsigned int, unsigned long);
157#ifdef CONFIG_COMPAT 157#ifdef CONFIG_COMPAT
158 long (*compat_ioctl32) (struct file *, unsigned int, unsigned long); 158 long (*compat_ioctl32) (struct file *, unsigned int, unsigned long);
diff --git a/include/sound/hwdep.h b/include/sound/hwdep.h
index ab9fcb2f97f0..afeca593188a 100644
--- a/include/sound/hwdep.h
+++ b/include/sound/hwdep.h
@@ -37,7 +37,7 @@ struct snd_hwdep_ops {
37 long count, loff_t *offset); 37 long count, loff_t *offset);
38 int (*open)(struct snd_hwdep *hw, struct file * file); 38 int (*open)(struct snd_hwdep *hw, struct file * file);
39 int (*release)(struct snd_hwdep *hw, struct file * file); 39 int (*release)(struct snd_hwdep *hw, struct file * file);
40 unsigned int (*poll)(struct snd_hwdep *hw, struct file *file, 40 __poll_t (*poll)(struct snd_hwdep *hw, struct file *file,
41 poll_table *wait); 41 poll_table *wait);
42 int (*ioctl)(struct snd_hwdep *hw, struct file *file, 42 int (*ioctl)(struct snd_hwdep *hw, struct file *file,
43 unsigned int cmd, unsigned long arg); 43 unsigned int cmd, unsigned long arg);
diff --git a/include/sound/info.h b/include/sound/info.h
index 67390ee846aa..becdf66d2825 100644
--- a/include/sound/info.h
+++ b/include/sound/info.h
@@ -62,7 +62,7 @@ struct snd_info_entry_ops {
62 loff_t (*llseek)(struct snd_info_entry *entry, 62 loff_t (*llseek)(struct snd_info_entry *entry,
63 void *file_private_data, struct file *file, 63 void *file_private_data, struct file *file,
64 loff_t offset, int orig); 64 loff_t offset, int orig);
65 unsigned int (*poll)(struct snd_info_entry *entry, 65 __poll_t (*poll)(struct snd_info_entry *entry,
66 void *file_private_data, struct file *file, 66 void *file_private_data, struct file *file,
67 poll_table *wait); 67 poll_table *wait);
68 int (*ioctl)(struct snd_info_entry *entry, void *file_private_data, 68 int (*ioctl)(struct snd_info_entry *entry, void *file_private_data,