The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* drivers/video/fbdev/pvr2fb.c:730:27: sparse: sparse: incorrect type in initializer (incompatible argument 2 (different address spaces))
@ 2026-07-13  5:20 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-07-13  5:20 UTC (permalink / raw)
  To: Florian Fuchs
  Cc: oe-kbuild-all, linux-kernel, Helge Deller,
	John Paul Adrian Glaubitz

Hi Florian,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   44696aa3a489d2baf58efa61b37833f100072bee
commit: 5f566c0ac51cd2474e47da68dbe719d3acf7d999 fbdev: pvr2fb: Fix leftover reference to ONCHIP_NR_DMA_CHANNELS
date:   9 months ago
config: sh-randconfig-r111-20260713 (https://download.01.org/0day-ci/archive/20260713/202607131247.fpQ6eTc7-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 10.5.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260713/202607131247.fpQ6eTc7-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Fixes: 5f566c0ac51c ("fbdev: pvr2fb: Fix leftover reference to ONCHIP_NR_DMA_CHANNELS")
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202607131247.fpQ6eTc7-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> drivers/video/fbdev/pvr2fb.c:730:27: sparse: sparse: incorrect type in initializer (incompatible argument 2 (different address spaces)) @@     expected int ( *fb_write )( ... ) @@     got int ( * )( ... ) @@
   drivers/video/fbdev/pvr2fb.c:730:27: sparse:     expected int ( *fb_write )( ... )
   drivers/video/fbdev/pvr2fb.c:730:27: sparse:     got int ( * )( ... )
   drivers/video/fbdev/pvr2fb.c:1081:11: sparse: sparse: Using plain integer as NULL pointer

vim +730 drivers/video/fbdev/pvr2fb.c

^1da177e4c3f415 drivers/video/pvr2fb.c       Linus Torvalds            2005-04-16  725  
8a48ac339398f21 drivers/video/fbdev/pvr2fb.c Jani Nikula               2019-12-03  726  static const struct fb_ops pvr2fb_ops = {
db7f2cb965cb792 drivers/video/fbdev/pvr2fb.c Bartlomiej Zolnierkiewicz 2019-06-07  727  	.owner		= THIS_MODULE,
423273970906070 drivers/video/fbdev/pvr2fb.c Thomas Zimmermann         2023-09-27  728  #ifdef CONFIG_PVR2_DMA
423273970906070 drivers/video/fbdev/pvr2fb.c Thomas Zimmermann         2023-09-27  729  	.fb_read	= fb_io_read,
423273970906070 drivers/video/fbdev/pvr2fb.c Thomas Zimmermann         2023-09-27 @730  	.fb_write	= pvr2fb_write,
423273970906070 drivers/video/fbdev/pvr2fb.c Thomas Zimmermann         2023-09-27  731  #else
423273970906070 drivers/video/fbdev/pvr2fb.c Thomas Zimmermann         2023-09-27  732  	__FB_DEFAULT_IOMEM_OPS_RDWR,
423273970906070 drivers/video/fbdev/pvr2fb.c Thomas Zimmermann         2023-09-27  733  #endif
db7f2cb965cb792 drivers/video/fbdev/pvr2fb.c Bartlomiej Zolnierkiewicz 2019-06-07  734  	.fb_setcolreg	= pvr2fb_setcolreg,
db7f2cb965cb792 drivers/video/fbdev/pvr2fb.c Bartlomiej Zolnierkiewicz 2019-06-07  735  	.fb_blank	= pvr2fb_blank,
423273970906070 drivers/video/fbdev/pvr2fb.c Thomas Zimmermann         2023-09-27  736  	__FB_DEFAULT_IOMEM_OPS_DRAW,
db7f2cb965cb792 drivers/video/fbdev/pvr2fb.c Bartlomiej Zolnierkiewicz 2019-06-07  737  	.fb_check_var	= pvr2fb_check_var,
db7f2cb965cb792 drivers/video/fbdev/pvr2fb.c Bartlomiej Zolnierkiewicz 2019-06-07  738  	.fb_set_par	= pvr2fb_set_par,
423273970906070 drivers/video/fbdev/pvr2fb.c Thomas Zimmermann         2023-09-27  739  	__FB_DEFAULT_IOMEM_OPS_MMAP,
db7f2cb965cb792 drivers/video/fbdev/pvr2fb.c Bartlomiej Zolnierkiewicz 2019-06-07  740  };
db7f2cb965cb792 drivers/video/fbdev/pvr2fb.c Bartlomiej Zolnierkiewicz 2019-06-07  741  

:::::: The code at line 730 was first introduced by commit
:::::: 4232739709060703e9dd6f5d6839c37e008d389d fbdev/pvr2fb: Initialize fb_ops to fbdev I/O-memory helpers

:::::: TO: Thomas Zimmermann <tzimmermann@suse.de>
:::::: CC: Thomas Zimmermann <tzimmermann@suse.de>

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-13  5:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-13  5:20 drivers/video/fbdev/pvr2fb.c:730:27: sparse: sparse: incorrect type in initializer (incompatible argument 2 (different address spaces)) kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox