[PATCH 5/6] drm/vmwgfx: Add basic support for SVGA3

kernel test robot lkp at intel.com
Wed May 5 08:23:07 UTC 2021


Hi Zack,

I love your patch! Perhaps something to improve:

[auto build test WARNING on drm-tip/drm-tip]
[also build test WARNING on linus/master next-20210505]
[cannot apply to drm-intel/for-linux-next drm-exynos/exynos-drm-next tegra-drm/drm/tegra/for-next drm/drm-next v5.12]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Zack-Rusin/drm-vmwgfx-SVGA-v3-and-arm64-support/20210505-120026
base:   git://anongit.freedesktop.org/drm/drm-tip drm-tip
config: x86_64-randconfig-s021-20210505 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.3-341-g8af24329-dirty
        # https://github.com/0day-ci/linux/commit/4acf63c8eca79f6073ada0994b0e2a03c8fcfb71
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Zack-Rusin/drm-vmwgfx-SVGA-v3-and-arm64-support/20210505-120026
        git checkout 4acf63c8eca79f6073ada0994b0e2a03c8fcfb71
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>


sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.c:718:28: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned int [usertype] *rmmio @@     got void [noderef] __iomem * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.c:718:28: sparse:     expected unsigned int [usertype] *rmmio
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.c:718:28: sparse:     got void [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.c: note: in included file:
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     expected void const [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     expected void const [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     expected void const [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     expected void const [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     expected void const [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     expected void const [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     expected void [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     expected void [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     expected void [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     expected void const [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     expected void [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     expected void const [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     expected void const [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     expected void [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     expected void [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     expected void [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     expected void const [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     expected void const [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     expected void [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     expected void const [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     expected void const [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     expected void const [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     expected void const [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     expected void const [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     expected void const [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     expected void const [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     expected void const [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     expected void const [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     expected void const [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     expected void const [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     expected void const [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     expected void const [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     expected void const [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     expected void const [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     expected void const [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     expected void [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     expected void const [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     expected void [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     expected void const [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     expected void [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     expected void const [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     expected void [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     expected void const [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     expected void [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     expected void const [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     expected void [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     expected void [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     expected void [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     got unsigned int [usertype] *
--
   drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c: note: in included file:
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     expected void [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     expected void const [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     expected void [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     expected void const [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     got unsigned int [usertype] *
--
   drivers/gpu/drm/vmwgfx/vmwgfx_kms.c: note: in included file (through drivers/gpu/drm/vmwgfx/vmwgfx_kms.h):
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     expected void [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     expected void [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     expected void [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     expected void [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     expected void [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     expected void [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     expected void [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     expected void const [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     expected void const [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     expected void [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     expected void [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     expected void [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     expected void const [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     got unsigned int [usertype] *
--
   drivers/gpu/drm/vmwgfx/vmwgfx_irq.c: note: in included file:
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     expected void const [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     expected void [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     expected void const [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     expected void const [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     expected void [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     expected void [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     expected void [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     expected void const [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     expected void [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     expected void [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     expected void const [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     expected void [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     got unsigned int [usertype] *
--
>> drivers/gpu/drm/vmwgfx/vmwgfx_cmd.c:105:24: sparse: sparse: Using plain integer as NULL pointer
   drivers/gpu/drm/vmwgfx/vmwgfx_cmd.c:674:33: sparse: sparse: Using plain integer as NULL pointer
   drivers/gpu/drm/vmwgfx/vmwgfx_cmd.c: note: in included file:
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     expected void [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     expected void const [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     expected void const [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     expected void [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     expected void [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     got unsigned int [usertype] *
--
   drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c: note: in included file (through drivers/gpu/drm/vmwgfx/vmwgfx_kms.h):
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     expected void [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     expected void [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     expected void [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     expected void [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     expected void [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     expected void [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     expected void [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     got unsigned int [usertype] *
--
   drivers/gpu/drm/vmwgfx/vmwgfx_fence.c: note: in included file:
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     expected void const [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     expected void const [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     expected void const [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:683:48: sparse:     got unsigned int [usertype] *
--
   drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c: note: in included file:
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     expected void [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     got unsigned int [usertype] *
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     expected void [noderef] __iomem *
   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:668:50: sparse:     got unsigned int [usertype] *

vim +718 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c

   692	
   693	static int vmw_setup_pci_resources(struct vmw_private *dev,
   694					   unsigned long pci_id)
   695	{
   696		resource_size_t rmmio_start;
   697		resource_size_t rmmio_size;
   698		resource_size_t fifo_start;
   699		resource_size_t fifo_size;
   700		int ret;
   701		struct pci_dev *pdev = to_pci_dev(dev->drm.dev);
   702	
   703		pci_set_master(pdev);
   704	
   705		ret = pci_request_regions(pdev, "vmwgfx probe");
   706		if (ret)
   707			return ret;
   708	
   709		dev->pci_id = pci_id;
   710		if (pci_id == VMWGFX_PCI_ID_SVGA3) {
   711			rmmio_start = pci_resource_start(pdev, 0);
   712			rmmio_size = pci_resource_len(pdev, 0);
   713			dev->vram_start = pci_resource_start(pdev, 2);
   714			dev->vram_size = pci_resource_len(pdev, 2);
   715	
   716			DRM_INFO("Register MMIO at 0x%pa size is %llu kiB\n",
   717				 &rmmio_start, (uint64_t)rmmio_size / 1024);
 > 718			dev->rmmio = devm_ioremap(dev->drm.dev,
   719						  rmmio_start,
   720						  rmmio_size);
   721			if (IS_ERR(dev->rmmio)) {
   722				DRM_ERROR("Failed mapping registers mmio memory.\n");
   723				pci_release_regions(pdev);
   724				return PTR_ERR(dev->rmmio);
   725			}
   726		} else if (pci_id == VMWGFX_PCI_ID_SVGA2) {
   727			dev->io_start = pci_resource_start(pdev, 0);
   728			dev->vram_start = pci_resource_start(pdev, 1);
   729			dev->vram_size = pci_resource_len(pdev, 1);
   730			fifo_start = pci_resource_start(pdev, 2);
   731			fifo_size = pci_resource_len(pdev, 2);
   732	
   733			DRM_INFO("FIFO at %pa size is %llu kiB\n",
   734				 &fifo_start, (uint64_t)fifo_size / 1024);
   735			dev->fifo_mem = devm_memremap(dev->drm.dev,
   736						      fifo_start,
   737						      fifo_size,
   738						      MEMREMAP_WB);
   739	
   740			if (IS_ERR(dev->fifo_mem)) {
   741				DRM_ERROR("Failed mapping FIFO memory.\n");
   742				pci_release_regions(pdev);
   743				return PTR_ERR(dev->fifo_mem);
   744			}
   745		} else {
   746			pci_release_regions(pdev);
   747			return -EINVAL;
   748		}
   749	
   750		/*
   751		 * This is approximate size of the vram, the exact size will only
   752		 * be known after we read SVGA_REG_VRAM_SIZE. The PCI resource
   753		 * size will be equal to or bigger than the size reported by
   754		 * SVGA_REG_VRAM_SIZE.
   755		 */
   756		DRM_INFO("VRAM at %pa size is %llu kiB\n",
   757			 &dev->vram_start, (uint64_t)dev->vram_size / 1024);
   758	
   759		return 0;
   760	}
   761	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 35137 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20210505/81a7f865/attachment-0001.gz>


More information about the dri-devel mailing list