OSDN Git Service

drm/virtio: fix framebuffer sparse warning
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 28 Nov 2016 07:52:20 +0000 (08:52 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Aug 2017 16:08:58 +0000 (09:08 -0700)
commitc9e4ee445752ecd97c839ffa7e08146a614576dd
tree5a57292a60f185c001b80634b96bf45e8a107b30
parent1e43b2d064741a6f4d4c55c4f9146c1e92e1d06a
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
17a7b0b4d9749f80d365d7baff5dec2f54b0e992) 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>
drivers/gpu/drm/virtio/virtgpu_fb.c