Commit 2efc5411 authored by Gerd Hoffmann's avatar Gerd Hoffmann Committed by Thadeu Lima de Souza Cascardo

drm/virtio: fix framebuffer sparse warning

BugLink: http://bugs.launchpad.net/bugs/1711526

[ Upstream commit 71d3f6ef ]

virtio uses normal ram as backing storage for the framebuffer, so we
should assign the address to new screen_buffer (added by commit
17a7b0b4) instead of screen_base.
Reported-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
Signed-off-by: default avatarSasha Levin <alexander.levin@verizon.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarStefan Bader <stefan.bader@canonical.com>
Signed-off-by: default avatarThadeu Lima de Souza Cascardo <cascardo@canonical.com>
parent a19e0524
...@@ -338,7 +338,7 @@ static int virtio_gpufb_create(struct drm_fb_helper *helper, ...@@ -338,7 +338,7 @@ static int virtio_gpufb_create(struct drm_fb_helper *helper,
info->fbops = &virtio_gpufb_ops; info->fbops = &virtio_gpufb_ops;
info->pixmap.flags = FB_PIXMAP_SYSTEM; info->pixmap.flags = FB_PIXMAP_SYSTEM;
info->screen_base = obj->vmap; info->screen_buffer = obj->vmap;
info->screen_size = obj->gem_base.size; info->screen_size = obj->gem_base.size;
drm_fb_helper_fill_fix(info, fb->pitches[0], fb->depth); drm_fb_helper_fill_fix(info, fb->pitches[0], fb->depth);
drm_fb_helper_fill_var(info, &vfbdev->helper, drm_fb_helper_fill_var(info, &vfbdev->helper,
......
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