summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorZou Wei <zou_wei@huawei.com>2020-11-14 08:16:13 +0100
committerGerd Hoffmann <kraxel@redhat.com>2020-11-16 08:53:23 +0100
commit7ac76dab93a78fee7bf0a1b49c319ee5febc0396 (patch)
tree9ce0b5b672340df5f548abf8467f90d55f8934b9 /drivers
parentdrm/lima: Unconditionally call dev_pm_opp_of_remove_table() (diff)
downloadlinux-7ac76dab93a78fee7bf0a1b49c319ee5febc0396.tar.xz
linux-7ac76dab93a78fee7bf0a1b49c319ee5febc0396.zip
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 <zou_wei@huawei.com> Link: http://patchwork.freedesktop.org/patch/msgid/1605338173-22100-1-git-send-email-zou_wei@huawei.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/virtio/virtgpu_prime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/virtio/virtgpu_prime.c b/drivers/gpu/drm/virtio/virtgpu_prime.c
index 1ef1e2f22633..807a27a16365 100644
--- a/drivers/gpu/drm/virtio/virtgpu_prime.c
+++ b/drivers/gpu/drm/virtio/virtgpu_prime.c
@@ -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,