aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2018-01-01 19:04:56 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2018-02-06 17:24:51 -0500
commitb46dc8ae17a427c50c00241898832807576fd28a (patch)
tree58982d6e07e5af2a1a6e5dbb15c3646e90ddf11f
parent68c5735eaa5e680e701c9a2d1e3c7880bdf5ab66 (diff)
media: videobuf2: fix up for "media: annotate ->poll() instances"
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--drivers/media/dvb-core/dvb_vb2.c4
-rw-r--r--include/media/dvb_vb2.h10
2 files changed, 7 insertions, 7 deletions
diff --git a/drivers/media/dvb-core/dvb_vb2.c b/drivers/media/dvb-core/dvb_vb2.c
index 889abf9becd8..763145d74e83 100644
--- a/drivers/media/dvb-core/dvb_vb2.c
+++ b/drivers/media/dvb-core/dvb_vb2.c
@@ -421,8 +421,8 @@ int dvb_vb2_mmap(struct dvb_vb2_ctx *ctx, struct vm_area_struct *vma)
421 return 0; 421 return 0;
422} 422}
423 423
424unsigned int dvb_vb2_poll(struct dvb_vb2_ctx *ctx, struct file *file, 424__poll_t dvb_vb2_poll(struct dvb_vb2_ctx *ctx, struct file *file,
425 poll_table *wait) 425 poll_table *wait)
426{ 426{
427 dprintk(3, "[%s]\n", ctx->name); 427 dprintk(3, "[%s]\n", ctx->name);
428 return vb2_core_poll(&ctx->vb_q, file, wait); 428 return vb2_core_poll(&ctx->vb_q, file, wait);
diff --git a/include/media/dvb_vb2.h b/include/media/dvb_vb2.h
index dda61af7c4cd..01d1202d1a55 100644
--- a/include/media/dvb_vb2.h
+++ b/include/media/dvb_vb2.h
@@ -116,9 +116,9 @@ static inline int dvb_vb2_release(struct dvb_vb2_ctx *ctx)
116#define dvb_vb2_is_streaming(ctx) (0) 116#define dvb_vb2_is_streaming(ctx) (0)
117#define dvb_vb2_fill_buffer(ctx, file, wait) (0) 117#define dvb_vb2_fill_buffer(ctx, file, wait) (0)
118 118
119static inline unsigned int dvb_vb2_poll(struct dvb_vb2_ctx *ctx, 119static inline __poll_t dvb_vb2_poll(struct dvb_vb2_ctx *ctx,
120 struct file *file, 120 struct file *file,
121 poll_table *wait) 121 poll_table *wait)
122{ 122{
123 return 0; 123 return 0;
124} 124}
@@ -169,8 +169,8 @@ int dvb_vb2_fill_buffer(struct dvb_vb2_ctx *ctx,
169 * 169 *
170 * Implements poll syscall() logic. 170 * Implements poll syscall() logic.
171 */ 171 */
172unsigned int dvb_vb2_poll(struct dvb_vb2_ctx *ctx, struct file *file, 172__poll_t dvb_vb2_poll(struct dvb_vb2_ctx *ctx, struct file *file,
173 poll_table *wait); 173 poll_table *wait);
174#endif 174#endif
175 175
176/** 176/**