Skip to content

Commit a3f8683

Browse files
author
Al Viro
committed
->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>
1 parent 8ced390 commit a3f8683

10 files changed

Lines changed: 10 additions & 10 deletions

File tree

‎fs/proc/inode.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ static unsigned int proc_reg_poll(struct file *file, struct poll_table_struct *p
238238
{
239239
struct proc_dir_entry *pde = PDE(file_inode(file));
240240
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 *);
242242
if (use_pde(pde)) {
243243
poll = pde->proc_fops->poll;
244244
if (poll)

‎include/linux/fs.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1698,7 +1698,7 @@ struct file_operations {
16981698
ssize_t (*write_iter) (struct kiocb *, struct iov_iter *);
16991699
int (*iterate) (struct file *, struct dir_context *);
17001700
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 *);
17021702
long (*unlocked_ioctl) (struct file *, unsigned int, unsigned long);
17031703
long (*compat_ioctl) (struct file *, unsigned int, unsigned long);
17041704
int (*mmap) (struct file *, struct vm_area_struct *);

‎include/linux/net.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ struct proto_ops {
147147
int (*getname) (struct socket *sock,
148148
struct sockaddr *addr,
149149
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,
151151
struct poll_table_struct *wait);
152152
int (*ioctl) (struct socket *sock, unsigned int cmd,
153153
unsigned long arg);

‎include/linux/posix-clock.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ struct posix_clock_operations {
6868

6969
int (*open) (struct posix_clock *pc, fmode_t f_mode);
7070

71-
uint (*poll) (struct posix_clock *pc,
71+
__poll_t (*poll) (struct posix_clock *pc,
7272
struct file *file, poll_table *wait);
7373

7474
int (*release) (struct posix_clock *pc);

‎include/linux/tty_ldisc.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ struct tty_ldisc_ops {
187187
long (*compat_ioctl)(struct tty_struct *tty, struct file *file,
188188
unsigned int cmd, unsigned long arg);
189189
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 *,
191191
struct poll_table_struct *);
192192
int (*hangup)(struct tty_struct *tty);
193193

‎include/media/media-devnode.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ struct media_file_operations {
5656
struct module *owner;
5757
ssize_t (*read) (struct file *, char __user *, size_t, loff_t *);
5858
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 *);
6060
long (*ioctl) (struct file *, unsigned int, unsigned long);
6161
long (*compat_ioctl) (struct file *, unsigned int, unsigned long);
6262
int (*open) (struct file *);

‎include/media/soc_camera.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ struct soc_camera_host_ops {
117117
int (*get_parm)(struct soc_camera_device *, struct v4l2_streamparm *);
118118
int (*set_parm)(struct soc_camera_device *, struct v4l2_streamparm *);
119119
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 *);
121121
};
122122

123123
#define SOCAM_SENSOR_INVERT_PCLK (1 << 0)

‎include/media/v4l2-dev.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ struct v4l2_file_operations {
152152
struct module *owner;
153153
ssize_t (*read) (struct file *, char __user *, size_t, loff_t *);
154154
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 *);
156156
long (*unlocked_ioctl) (struct file *, unsigned int, unsigned long);
157157
#ifdef CONFIG_COMPAT
158158
long (*compat_ioctl32) (struct file *, unsigned int, unsigned long);

‎include/sound/hwdep.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ struct snd_hwdep_ops {
3737
long count, loff_t *offset);
3838
int (*open)(struct snd_hwdep *hw, struct file * file);
3939
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,
4141
poll_table *wait);
4242
int (*ioctl)(struct snd_hwdep *hw, struct file *file,
4343
unsigned int cmd, unsigned long arg);

‎include/sound/info.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ struct snd_info_entry_ops {
6262
loff_t (*llseek)(struct snd_info_entry *entry,
6363
void *file_private_data, struct file *file,
6464
loff_t offset, int orig);
65-
unsigned int (*poll)(struct snd_info_entry *entry,
65+
__poll_t (*poll)(struct snd_info_entry *entry,
6666
void *file_private_data, struct file *file,
6767
poll_table *wait);
6868
int (*ioctl)(struct snd_info_entry *entry, void *file_private_data,

0 commit comments

Comments
 (0)