Commit 7ac76dab authored by Zou Wei's avatar Zou Wei Committed by Gerd Hoffmann

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: default avatarZou Wei <zou_wei@huawei.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1605338173-22100-1-git-send-email-zou_wei@huawei.comSigned-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
parent a14d546f
...@@ -43,7 +43,7 @@ static int virtgpu_virtio_get_uuid(struct dma_buf *buf, ...@@ -43,7 +43,7 @@ static int virtgpu_virtio_get_uuid(struct dma_buf *buf,
return 0; return 0;
} }
const struct virtio_dma_buf_ops virtgpu_dmabuf_ops = { static const struct virtio_dma_buf_ops virtgpu_dmabuf_ops = {
.ops = { .ops = {
.cache_sgt_mapping = true, .cache_sgt_mapping = true,
.attach = virtio_dma_buf_attach, .attach = virtio_dma_buf_attach,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment