Skip to content

Commit c9e4ee4

Browse files
kraxelgregkh
authored andcommitted
drm/virtio: fix framebuffer sparse warning
[ Upstream commit 71d3f6ef7f5af38dea2975ec5715c88bae92e92d ] virtio uses normal ram as backing storage for the framebuffer, so we should assign the address to new screen_buffer (added by commit 17a7b0b) instead of screen_base. Reported-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Sasha Levin <alexander.levin@verizon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 1e43b2d commit c9e4ee4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/virtio/virtgpu_fb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ static int virtio_gpufb_create(struct drm_fb_helper *helper,
338338
info->fbops = &virtio_gpufb_ops;
339339
info->pixmap.flags = FB_PIXMAP_SYSTEM;
340340

341-
info->screen_base = obj->vmap;
341+
info->screen_buffer = obj->vmap;
342342
info->screen_size = obj->gem_base.size;
343343
drm_fb_helper_fill_fix(info, fb->pitches[0], fb->depth);
344344
drm_fb_helper_fill_var(info, &vfbdev->helper,

0 commit comments

Comments
 (0)