linux/drivers/staging/vboxvideo
Alexander Kapshuk 21c0885fd1 vboxvideo: Fix incorrect type in assignment sparse warning
Sparse emitted the following warning:
../drivers/staging/vboxvideo/vbox_fb.c:173:27: warning: incorrect type in assignment (different address spaces)
../drivers/staging/vboxvideo/vbox_fb.c:173:27:    expected char [noderef] <asn:2>*screen_base
../drivers/staging/vboxvideo/vbox_fb.c:173:27:    got void *virtual

The vbox_bo buffer object kernel mapping is handled by a call
to ttm_bo_kmap() prior to the assignment of bo->kmap.virtual to
info->screen_base of type char __iomem*.
Casting bo->kmap.virtual to char __iomem* in this assignment fixes
the warning.

vboxvideo: Fix address space of expression removal sparse warning

Sparse emitted the following warning:
../drivers/staging/vboxvideo/vbox_main.c:64:25: warning: cast removes address space of expression

vbox->vbva_buffers iomapping is handled by calling vbox_accel_init()
from vbox_hw_init().
__force attribute is used in assignment to vbva to fix the warning.

Signed-off-by: Alexander Kapshuk <alexander.kapshuk@gmail.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-01-08 16:03:45 +01:00
..
hgsmi_base.c
hgsmi_ch_setup.h
hgsmi_channels.h
hgsmi_defs.h
Kconfig staging: vboxvideo: select DRM_TTM 2017-08-18 15:57:15 -07:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
modesetting.c
TODO staging: vboxvideo: Add dri-devel to lists of email-addresses to send patches to 2017-08-18 15:57:15 -07:00
vbox_drv.c Staging/IIO driver updates for 4.14-rc1 2017-09-05 10:36:26 -07:00
vbox_drv.h staging: vboxvideo: Fix reporting invalid suggested-offset-properties 2017-10-18 16:44:00 +02:00
vbox_err.h
vbox_fb.c vboxvideo: Fix incorrect type in assignment sparse warning 2018-01-08 16:03:45 +01:00
vbox_hgsmi.c
vbox_irq.c staging: vboxvideo: Fix reporting invalid suggested-offset-properties 2017-10-18 16:44:00 +02:00
vbox_main.c vboxvideo: Fix incorrect type in assignment sparse warning 2018-01-08 16:03:45 +01:00
vbox_mode.c main drm pull request for v4.15 2017-11-15 20:42:10 -08:00
vbox_prime.c
vbox_ttm.c staging: vboxvideo: make a couple of symbols static 2017-07-28 17:05:40 -07:00
vboxvideo_guest.h
vboxvideo_vbe.h
vboxvideo.h
vbva_base.c