diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2016-11-28 08:52:20 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2017-01-10 13:58:20 +0100 |
commit | 71d3f6ef7f5af38dea2975ec5715c88bae92e92d (patch) | |
tree | 361b3d6472da7d3cf60ff5b8226e21b9c9216798 /drivers/gpu | |
parent | a121103c922847ba5010819a3f250f1f7fc84ab8 (diff) | |
download | linux-71d3f6ef7f5af38dea2975ec5715c88bae92e92d.tar.gz linux-71d3f6ef7f5af38dea2975ec5715c88bae92e92d.tar.bz2 linux-71d3f6ef7f5af38dea2975ec5715c88bae92e92d.zip |
drm/virtio: fix framebuffer sparse warning
virtio uses normal ram as backing storage for the framebuffer, so we
should assign the address to new screen_buffer (added by commit
17a7b0b4d9749f80d365d7baff5dec2f54b0e992) instead of screen_base.
Reported-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/virtio/virtgpu_fb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/virtio/virtgpu_fb.c b/drivers/gpu/drm/virtio/virtgpu_fb.c index dd21f950e129..cde9f3758106 100644 --- a/drivers/gpu/drm/virtio/virtgpu_fb.c +++ b/drivers/gpu/drm/virtio/virtgpu_fb.c @@ -331,7 +331,7 @@ static int virtio_gpufb_create(struct drm_fb_helper *helper, info->fbops = &virtio_gpufb_ops; info->pixmap.flags = FB_PIXMAP_SYSTEM; - info->screen_base = obj->vmap; + info->screen_buffer = obj->vmap; info->screen_size = obj->gem_base.size; drm_fb_helper_fill_fix(info, fb->pitches[0], fb->depth); drm_fb_helper_fill_var(info, &vfbdev->helper, |