drm/virtio: Make virtgpu_dmabuf_ops with static keyword
Subsystems (4)
PATCH 1/1 drm/virtio: Make virtgpu_dmabuf_ops with static keyword
Fix the following sparse warning:
./virtgpu_prime.c:46:33: warning: symbol 'virtgpu_dmabuf_ops' was not declared. Should it be static?
Signed-off-by Zou Wei <[email protected]>
--- drivers/gpu/drm/virtio/virtgpu_prime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/virtio/virtgpu_prime.c +1 -1
@@ -43,7 +43,7 @@ static int virtgpu_virtio_get_uuid(struct dma_buf *buf,return 0 ; } -const struct virtio_dma_buf_ops virtgpu_dmabuf_ops = { +static const struct virtio_dma_buf_ops virtgpu_dmabuf_ops = { .ops = { .cache_sgt_mapping = true, .attach = virtio_dma_buf_attach,
Signature · 1 line
2.6.2
Quoted 3 lines · Zou Wei
Fix the following sparse warning:
./virtgpu_prime.c:46:33: warning: symbol '
virtgpu_dmabuf_ops' was not declared. Should it be static?
Pushed to drm-misc-next.
thanks,
Gerd
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel