diff options
author | Al Viro | 2017-07-03 05:27:36 +0200 |
---|---|---|
committer | Al Viro | 2017-11-27 22:20:02 +0100 |
commit | 680ef72abd84cbe0b722453d6be4e412305c9060 (patch) | |
tree | 46ea937c5ba186954e7c92a3a4ce7f3136e50482 /sound/core/compress_offload.c | |
parent | acpi: annotate ->poll() instances (diff) | |
download | kernel-qcow2-linux-680ef72abd84cbe0b722453d6be4e412305c9060.tar.gz kernel-qcow2-linux-680ef72abd84cbe0b722453d6be4e412305c9060.tar.xz kernel-qcow2-linux-680ef72abd84cbe0b722453d6be4e412305c9060.zip |
sound: annotate ->poll() instances
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'sound/core/compress_offload.c')
-rw-r--r-- | sound/core/compress_offload.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/core/compress_offload.c b/sound/core/compress_offload.c index 4490a699030b..a12b9555e910 100644 --- a/sound/core/compress_offload.c +++ b/sound/core/compress_offload.c @@ -396,7 +396,7 @@ static int snd_compr_mmap(struct file *f, struct vm_area_struct *vma) return -ENXIO; } -static inline int snd_compr_get_poll(struct snd_compr_stream *stream) +static __poll_t snd_compr_get_poll(struct snd_compr_stream *stream) { if (stream->direction == SND_COMPRESS_PLAYBACK) return POLLOUT | POLLWRNORM; @@ -404,12 +404,12 @@ static inline int snd_compr_get_poll(struct snd_compr_stream *stream) return POLLIN | POLLRDNORM; } -static unsigned int snd_compr_poll(struct file *f, poll_table *wait) +static __poll_t snd_compr_poll(struct file *f, poll_table *wait) { struct snd_compr_file *data = f->private_data; struct snd_compr_stream *stream; size_t avail; - int retval = 0; + __poll_t retval = 0; if (snd_BUG_ON(!data)) return POLLERR; |