Skip to content

Commit 680ef72

Browse files
author
Al Viro
committed
sound: annotate ->poll() instances
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 0d9b87f commit 680ef72

25 files changed

Lines changed: 49 additions & 49 deletions

‎sound/core/compress_offload.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -396,20 +396,20 @@ static int snd_compr_mmap(struct file *f, struct vm_area_struct *vma)
396396
return -ENXIO;
397397
}
398398

399-
static inline int snd_compr_get_poll(struct snd_compr_stream *stream)
399+
static __poll_t snd_compr_get_poll(struct snd_compr_stream *stream)
400400
{
401401
if (stream->direction == SND_COMPRESS_PLAYBACK)
402402
return POLLOUT | POLLWRNORM;
403403
else
404404
return POLLIN | POLLRDNORM;
405405
}
406406

407-
static unsigned int snd_compr_poll(struct file *f, poll_table *wait)
407+
static __poll_t snd_compr_poll(struct file *f, poll_table *wait)
408408
{
409409
struct snd_compr_file *data = f->private_data;
410410
struct snd_compr_stream *stream;
411411
size_t avail;
412-
int retval = 0;
412+
__poll_t retval = 0;
413413

414414
if (snd_BUG_ON(!data))
415415
return POLLERR;

‎sound/core/control.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1666,9 +1666,9 @@ static ssize_t snd_ctl_read(struct file *file, char __user *buffer,
16661666
return result > 0 ? result : err;
16671667
}
16681668

1669-
static unsigned int snd_ctl_poll(struct file *file, poll_table * wait)
1669+
static __poll_t snd_ctl_poll(struct file *file, poll_table * wait)
16701670
{
1671-
unsigned int mask;
1671+
__poll_t mask;
16721672
struct snd_ctl_file *ctl;
16731673

16741674
ctl = file->private_data;

‎sound/core/hwdep.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ static int snd_hwdep_release(struct inode *inode, struct file * file)
177177
return err;
178178
}
179179

180-
static unsigned int snd_hwdep_poll(struct file * file, poll_table * wait)
180+
static __poll_t snd_hwdep_poll(struct file * file, poll_table * wait)
181181
{
182182
struct snd_hwdep *hw = file->private_data;
183183
if (hw->ops.poll)

‎sound/core/info.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,11 +203,11 @@ static ssize_t snd_info_entry_write(struct file *file, const char __user *buffer
203203
return size;
204204
}
205205

206-
static unsigned int snd_info_entry_poll(struct file *file, poll_table *wait)
206+
static __poll_t snd_info_entry_poll(struct file *file, poll_table *wait)
207207
{
208208
struct snd_info_private_data *data = file->private_data;
209209
struct snd_info_entry *entry = data->entry;
210-
unsigned int mask = 0;
210+
__poll_t mask = 0;
211211

212212
if (entry->c.ops->poll)
213213
return entry->c.ops->poll(entry,

‎sound/core/init.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ static int snd_disconnect_release(struct inode *inode, struct file *file)
344344
panic("%s(%p, %p) failed!", __func__, inode, file);
345345
}
346346

347-
static unsigned int snd_disconnect_poll(struct file * file, poll_table * wait)
347+
static __poll_t snd_disconnect_poll(struct file * file, poll_table * wait)
348348
{
349349
return POLLERR | POLLNVAL;
350350
}

‎sound/core/oss/pcm_oss.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2673,10 +2673,10 @@ static int snd_pcm_oss_capture_ready(struct snd_pcm_substream *substream)
26732673
runtime->oss.period_frames;
26742674
}
26752675

2676-
static unsigned int snd_pcm_oss_poll(struct file *file, poll_table * wait)
2676+
static __poll_t snd_pcm_oss_poll(struct file *file, poll_table * wait)
26772677
{
26782678
struct snd_pcm_oss_file *pcm_oss_file;
2679-
unsigned int mask;
2679+
__poll_t mask;
26802680
struct snd_pcm_substream *psubstream = NULL, *csubstream = NULL;
26812681

26822682
pcm_oss_file = file->private_data;

‎sound/core/pcm_native.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3130,12 +3130,12 @@ static ssize_t snd_pcm_writev(struct kiocb *iocb, struct iov_iter *from)
31303130
return result;
31313131
}
31323132

3133-
static unsigned int snd_pcm_playback_poll(struct file *file, poll_table * wait)
3133+
static __poll_t snd_pcm_playback_poll(struct file *file, poll_table * wait)
31343134
{
31353135
struct snd_pcm_file *pcm_file;
31363136
struct snd_pcm_substream *substream;
31373137
struct snd_pcm_runtime *runtime;
3138-
unsigned int mask;
3138+
__poll_t mask;
31393139
snd_pcm_uframes_t avail;
31403140

31413141
pcm_file = file->private_data;
@@ -3169,12 +3169,12 @@ static unsigned int snd_pcm_playback_poll(struct file *file, poll_table * wait)
31693169
return mask;
31703170
}
31713171

3172-
static unsigned int snd_pcm_capture_poll(struct file *file, poll_table * wait)
3172+
static __poll_t snd_pcm_capture_poll(struct file *file, poll_table * wait)
31733173
{
31743174
struct snd_pcm_file *pcm_file;
31753175
struct snd_pcm_substream *substream;
31763176
struct snd_pcm_runtime *runtime;
3177-
unsigned int mask;
3177+
__poll_t mask;
31783178
snd_pcm_uframes_t avail;
31793179

31803180
pcm_file = file->private_data;

‎sound/core/rawmidi.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1357,11 +1357,11 @@ static ssize_t snd_rawmidi_write(struct file *file, const char __user *buf,
13571357
return result;
13581358
}
13591359

1360-
static unsigned int snd_rawmidi_poll(struct file *file, poll_table * wait)
1360+
static __poll_t snd_rawmidi_poll(struct file *file, poll_table * wait)
13611361
{
13621362
struct snd_rawmidi_file *rfile;
13631363
struct snd_rawmidi_runtime *runtime;
1364-
unsigned int mask;
1364+
__poll_t mask;
13651365

13661366
rfile = file->private_data;
13671367
if (rfile->input != NULL) {

‎sound/core/seq/oss/seq_oss.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ static int odev_release(struct inode *inode, struct file *file);
5959
static ssize_t odev_read(struct file *file, char __user *buf, size_t count, loff_t *offset);
6060
static ssize_t odev_write(struct file *file, const char __user *buf, size_t count, loff_t *offset);
6161
static long odev_ioctl(struct file *file, unsigned int cmd, unsigned long arg);
62-
static unsigned int odev_poll(struct file *file, poll_table * wait);
62+
static __poll_t odev_poll(struct file *file, poll_table * wait);
6363

6464

6565
/*
@@ -197,7 +197,7 @@ static long odev_ioctl_compat(struct file *file, unsigned int cmd,
197197
#define odev_ioctl_compat NULL
198198
#endif
199199

200-
static unsigned int
200+
static __poll_t
201201
odev_poll(struct file *file, poll_table * wait)
202202
{
203203
struct seq_oss_devinfo *dp;

‎sound/core/seq/oss/seq_oss_device.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ void snd_seq_oss_release(struct seq_oss_devinfo *dp);
124124
int snd_seq_oss_ioctl(struct seq_oss_devinfo *dp, unsigned int cmd, unsigned long arg);
125125
int snd_seq_oss_read(struct seq_oss_devinfo *dev, char __user *buf, int count);
126126
int snd_seq_oss_write(struct seq_oss_devinfo *dp, const char __user *buf, int count, struct file *opt);
127-
unsigned int snd_seq_oss_poll(struct seq_oss_devinfo *dp, struct file *file, poll_table * wait);
127+
__poll_t snd_seq_oss_poll(struct seq_oss_devinfo *dp, struct file *file, poll_table * wait);
128128

129129
void snd_seq_oss_reset(struct seq_oss_devinfo *dp);
130130

0 commit comments

Comments
 (0)