media: visl: make visl_qops static
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 26 Jan 2023 11:58:32 +0000 (12:58 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Wed, 8 Feb 2023 07:29:53 +0000 (08:29 +0100)
This struct can be static. This fixes a sparse warning:

visl-video.c:690:22: warning: symbol 'visl_qops' was not declared. Should it be static?

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Cc: Daniel Almeida <daniel.almeida@collabora.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/test-drivers/visl/visl-video.c

index b08664d..7cac6a6 100644 (file)
@@ -687,7 +687,7 @@ static void visl_buf_request_complete(struct vb2_buffer *vb)
        v4l2_ctrl_request_complete(vb->req_obj.req, &ctx->hdl);
 }
 
-const struct vb2_ops visl_qops = {
+static const struct vb2_ops visl_qops = {
        .queue_setup          = visl_queue_setup,
        .buf_out_validate     = visl_buf_out_validate,
        .buf_prepare          = visl_buf_prepare,