[Intel-gfx] [drm-intel:topic/drm-misc 71/71] drivers/gpu/drm/nouveau/nouveau_drm.c:961:31: sparse: incorrect type in initializer (incompatible argument 2 (different signedness))

kbuild test robot fengguang.wu at intel.com
Thu Aug 13 19:16:59 PDT 2015


tree:   git://anongit.freedesktop.org/drm-intel topic/drm-misc
head:   b90180b057f77fe5c47a033aaa13a0f6578e5a01
commit: b90180b057f77fe5c47a033aaa13a0f6578e5a01 [71/71] drm/irq: More pipe/crtc consistency cleanups
reproduce:
  # apt-get install sparse
  git checkout b90180b057f77fe5c47a033aaa13a0f6578e5a01
  make ARCH=x86_64 allmodconfig
  make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)

>> drivers/gpu/drm/nouveau/nouveau_drm.c:961:31: sparse: incorrect type in initializer (incompatible argument 2 (different signedness))
   drivers/gpu/drm/nouveau/nouveau_drm.c:961:31:    expected unsigned int ( *get_vblank_counter )( ... )
   drivers/gpu/drm/nouveau/nouveau_drm.c:961:31:    got unsigned int ( extern [toplevel] *<noident> )( ... )
   drivers/gpu/drm/nouveau/nouveau_drm.c:961:2: warning: initialization from incompatible pointer type
     .get_vblank_counter = drm_vblank_count,
     ^
   drivers/gpu/drm/nouveau/nouveau_drm.c:961:2: warning: (near initialization for 'driver_stub.get_vblank_counter')

vim +961 drivers/gpu/drm/nouveau/nouveau_drm.c

4cb4ea39 Daniel Vetter  2013-07-10  945  		DRIVER_USE_AGP |
0e975980 Peter Antoine  2015-06-23  946  		DRIVER_GEM | DRIVER_MODESET | DRIVER_PRIME | DRIVER_RENDER |
0e975980 Peter Antoine  2015-06-23  947  		DRIVER_KMS_LEGACY_CONTEXT,
77145f1c Ben Skeggs     2012-07-31  948  
77145f1c Ben Skeggs     2012-07-31  949  	.load = nouveau_drm_load,
77145f1c Ben Skeggs     2012-07-31  950  	.unload = nouveau_drm_unload,
77145f1c Ben Skeggs     2012-07-31  951  	.open = nouveau_drm_open,
77145f1c Ben Skeggs     2012-07-31  952  	.preclose = nouveau_drm_preclose,
77145f1c Ben Skeggs     2012-07-31  953  	.postclose = nouveau_drm_postclose,
77145f1c Ben Skeggs     2012-07-31  954  	.lastclose = nouveau_vga_lastclose,
77145f1c Ben Skeggs     2012-07-31  955  
33b903e8 Marcin Slusarz 2013-02-08  956  #if defined(CONFIG_DEBUG_FS)
33b903e8 Marcin Slusarz 2013-02-08  957  	.debugfs_init = nouveau_debugfs_init,
33b903e8 Marcin Slusarz 2013-02-08  958  	.debugfs_cleanup = nouveau_debugfs_takedown,
33b903e8 Marcin Slusarz 2013-02-08  959  #endif
33b903e8 Marcin Slusarz 2013-02-08  960  
77145f1c Ben Skeggs     2012-07-31 @961  	.get_vblank_counter = drm_vblank_count,
51cb4b39 Ben Skeggs     2013-10-03  962  	.enable_vblank = nouveau_display_vblank_enable,
51cb4b39 Ben Skeggs     2013-10-03  963  	.disable_vblank = nouveau_display_vblank_disable,
d83ef853 Ben Skeggs     2013-11-14  964  	.get_scanout_position = nouveau_display_scanoutpos,
d83ef853 Ben Skeggs     2013-11-14  965  	.get_vblank_timestamp = nouveau_display_vblstamp,
77145f1c Ben Skeggs     2012-07-31  966  
77145f1c Ben Skeggs     2012-07-31  967  	.ioctls = nouveau_ioctls,
baa70943 Rob Clark      2013-08-02  968  	.num_ioctls = ARRAY_SIZE(nouveau_ioctls),
77145f1c Ben Skeggs     2012-07-31  969  	.fops = &nouveau_driver_fops,

:::::: The code at line 961 was first introduced by commit
:::::: 77145f1cbdf8d28b46ff8070ca749bad821e0774 drm/nouveau: port remainder of drm code, and rip out compat layer

:::::: TO: Ben Skeggs <bskeggs at redhat.com>
:::::: CC: Ben Skeggs <bskeggs at redhat.com>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation


More information about the Intel-gfx mailing list