[thomash:vmwgfx-next 4/7] drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:870:5: sparse: symbol 'vmw_kms_generic_present' was not declared. Should it be static?

kbuild test robot fengguang.wu at intel.com
Wed Mar 11 12:42:34 PDT 2015


tree:   git://people.freedesktop.org/~thomash/linux vmwgfx-next
head:   51850be6365084dc3ff6516bb9d89c6d7e3a98f1
commit: fd465bad8cb18eb6e99aa81bc1349c221250391f [4/7] drm/vmwgfx: Major KMS refactoring / cleanup in preparation of screen targets
reproduce:
  # apt-get install sparse
  git checkout fd465bad8cb18eb6e99aa81bc1349c221250391f
  make ARCH=x86_64 allmodconfig
  make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)

   drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:109:18: sparse: incorrect type in assignment (different base types)
   drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:109:18:    expected unsigned int [unsigned] [usertype] cmd
   drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:109:18:    got restricted __le32 [usertype] <noident>
   drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:110:24: sparse: incorrect type in assignment (different base types)
   drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:110:24:    expected unsigned int [unsigned] [usertype] id
   drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:110:24:    got restricted __le32 [usertype] <noident>
   drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:111:27: sparse: incorrect type in assignment (different base types)
   drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:111:27:    expected unsigned int [unsigned] [usertype] width
   drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:111:27:    got restricted __le32 [usertype] <noident>
   drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:112:28: sparse: incorrect type in assignment (different base types)
   drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:112:28:    expected unsigned int [unsigned] [usertype] height
   drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:112:28:    got restricted __le32 [usertype] <noident>
   drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:113:30: sparse: incorrect type in assignment (different base types)
   drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:113:30:    expected unsigned int [unsigned] [usertype] hotspotX
   drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:113:30:    got restricted __le32 [usertype] <noident>
   drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:114:30: sparse: incorrect type in assignment (different base types)
   drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:114:30:    expected unsigned int [unsigned] [usertype] hotspotY
   drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:114:30:    got restricted __le32 [usertype] <noident>
   drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:931:24: sparse: incorrect type in assignment (different base types)
   drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:931:24:    expected unsigned int [unsigned] [usertype] id
   drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:931:24:    got restricted __le32 [usertype] <noident>
   drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:991:34: sparse: incorrect type in assignment (different base types)
   drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:991:34:    expected unsigned int [unsigned] [usertype] size
   drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:991:34:    got restricted __le32 [usertype] <noident>
   objdump: 'drivers/gpu/drm/vmwgfx/.tmp_vmwgfx_kms.o': No such file
   mv: cannot stat 'drivers/gpu/drm/vmwgfx/.tmp_vmwgfx_kms.o': No such file or directory
--
>> drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c:479:31: sparse: incorrect type in assignment (different base types)
   drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c:479:31:    expected unsigned int [unsigned] [usertype] header
   drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c:479:31:    got restricted __le32 [usertype] <noident>
>> drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c:480:31: sparse: incorrect type in assignment (different base types)
   drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c:480:31:    expected unsigned int [unsigned] [usertype] x
   drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c:480:31:    got restricted __le32 [usertype] <noident>
>> drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c:481:31: sparse: incorrect type in assignment (different base types)
   drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c:481:31:    expected unsigned int [unsigned] [usertype] y
   drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c:481:31:    got restricted __le32 [usertype] <noident>
>> drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c:482:35: sparse: incorrect type in assignment (different base types)
   drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c:482:35:    expected unsigned int [unsigned] [usertype] width
   drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c:482:35:    got restricted __le32 [usertype] <noident>
>> drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c:483:36: sparse: incorrect type in assignment (different base types)
   drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c:483:36:    expected unsigned int [unsigned] [usertype] height
   drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c:483:36:    got restricted __le32 [usertype] <noident>
   objdump: 'drivers/gpu/drm/vmwgfx/.tmp_vmwgfx_ldu.o': No such file
   mv: cannot stat 'drivers/gpu/drm/vmwgfx/.tmp_vmwgfx_ldu.o': No such file or directory
--
>> drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c:762:24: sparse: incorrect type in assignment (different base types)
   drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c:762:24:    expected unsigned int [unsigned] [usertype] id
   drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c:762:24:    got restricted __le32 [usertype] <noident>
>> drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c:763:26: sparse: incorrect type in assignment (different base types)
   drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c:763:26:    expected unsigned int [unsigned] [usertype] size
   drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c:763:26:    got restricted __le32 [usertype] <noident>
>> drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c:811:40: sparse: incorrect type in assignment (different base types)
   drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c:811:40:    expected unsigned int [unsigned] [usertype] sid
   drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c:811:40:    got restricted __le32 [usertype] <noident>
>> drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c:827:34: sparse: incorrect type in assignment (different base types)
   drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c:827:34:    expected unsigned int [unsigned] [usertype] size
   drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c:827:34:    got restricted __le32 [usertype] <noident>
   objdump: 'drivers/gpu/drm/vmwgfx/.tmp_vmwgfx_scrn.o': No such file
   mv: cannot stat 'drivers/gpu/drm/vmwgfx/.tmp_vmwgfx_scrn.o': No such file or directory
--
   drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:109:18: sparse: incorrect type in assignment (different base types)
   drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:109:18:    expected unsigned int [unsigned] [usertype] cmd
   drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:109:18:    got restricted __le32 [usertype] <noident>
   drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:110:24: sparse: incorrect type in assignment (different base types)
   drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:110:24:    expected unsigned int [unsigned] [usertype] id
   drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:110:24:    got restricted __le32 [usertype] <noident>
   drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:111:27: sparse: incorrect type in assignment (different base types)
   drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:111:27:    expected unsigned int [unsigned] [usertype] width
   drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:111:27:    got restricted __le32 [usertype] <noident>
   drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:112:28: sparse: incorrect type in assignment (different base types)
   drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:112:28:    expected unsigned int [unsigned] [usertype] height
   drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:112:28:    got restricted __le32 [usertype] <noident>
   drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:113:30: sparse: incorrect type in assignment (different base types)
   drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:113:30:    expected unsigned int [unsigned] [usertype] hotspotX
   drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:113:30:    got restricted __le32 [usertype] <noident>
   drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:114:30: sparse: incorrect type in assignment (different base types)
   drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:114:30:    expected unsigned int [unsigned] [usertype] hotspotY
   drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:114:30:    got restricted __le32 [usertype] <noident>
   drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:931:24: sparse: incorrect type in assignment (different base types)
   drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:931:24:    expected unsigned int [unsigned] [usertype] id
   drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:931:24:    got restricted __le32 [usertype] <noident>
   drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:991:34: sparse: incorrect type in assignment (different base types)
   drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:991:34:    expected unsigned int [unsigned] [usertype] size
   drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:991:34:    got restricted __le32 [usertype] <noident>
--
>> drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c:479:31: sparse: incorrect type in assignment (different base types)
   drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c:479:31:    expected unsigned int [unsigned] [usertype] header
   drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c:479:31:    got restricted __le32 [usertype] <noident>
>> drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c:480:31: sparse: incorrect type in assignment (different base types)
   drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c:480:31:    expected unsigned int [unsigned] [usertype] x
   drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c:480:31:    got restricted __le32 [usertype] <noident>
>> drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c:481:31: sparse: incorrect type in assignment (different base types)
   drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c:481:31:    expected unsigned int [unsigned] [usertype] y
   drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c:481:31:    got restricted __le32 [usertype] <noident>
>> drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c:482:35: sparse: incorrect type in assignment (different base types)
   drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c:482:35:    expected unsigned int [unsigned] [usertype] width
   drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c:482:35:    got restricted __le32 [usertype] <noident>
>> drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c:483:36: sparse: incorrect type in assignment (different base types)
   drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c:483:36:    expected unsigned int [unsigned] [usertype] height
   drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c:483:36:    got restricted __le32 [usertype] <noident>
--
>> drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c:762:24: sparse: incorrect type in assignment (different base types)
   drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c:762:24:    expected unsigned int [unsigned] [usertype] id
   drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c:762:24:    got restricted __le32 [usertype] <noident>
>> drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c:763:26: sparse: incorrect type in assignment (different base types)
   drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c:763:26:    expected unsigned int [unsigned] [usertype] size
   drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c:763:26:    got restricted __le32 [usertype] <noident>
>> drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c:811:40: sparse: incorrect type in assignment (different base types)
   drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c:811:40:    expected unsigned int [unsigned] [usertype] sid
   drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c:811:40:    got restricted __le32 [usertype] <noident>
>> drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c:827:34: sparse: incorrect type in assignment (different base types)
   drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c:827:34:    expected unsigned int [unsigned] [usertype] size
   drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c:827:34:    got restricted __le32 [usertype] <noident>

Please review and possibly fold the followup patch.

---
0-DAY kernel test infrastructure                Open Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild                 Intel Corporation


More information about the dri-devel mailing list