All of lore.kernel.org
 help / color / mirror / Atom feed
* drivers/video/fbdev/aty/atyfb_base.c:3715:37: sparse: sparse: incorrect type in argument 1 (different address spaces)
@ 2020-07-17  3:58 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2020-07-17  3:58 UTC (permalink / raw)
  To: Luc Van Oostenryck; +Cc: kbuild-all, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 6557 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   07a56bb875afbe39dabbf6ba7b83783d166863db
commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces
date:   4 weeks ago
config: arc-randconfig-s032-20200717 (attached as .config)
compiler: arc-elf-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.2-49-g707c5017-dirty
        git checkout 670d0a4b10704667765f7d18f7592993d02783aa
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=arc 

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


sparse warnings: (new ones prefixed by >>)

>> drivers/video/fbdev/aty/atyfb_base.c:3715:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const [noderef] __iomem *addr @@     got unsigned char [usertype] *addr @@
>> drivers/video/fbdev/aty/atyfb_base.c:3715:37: sparse:     expected void const [noderef] __iomem *addr
   drivers/video/fbdev/aty/atyfb_base.c:3715:37: sparse:     got unsigned char [usertype] *addr
--
>> sound/pci/echoaudio/echoaudio.c:1824:21: sparse: sparse: incorrect type in argument 1 (different modifiers) @@     expected void const [noderef] __iomem *addr @@     got unsigned int volatile [noderef] [usertype] __iomem *dsp_registers @@
>> sound/pci/echoaudio/echoaudio.c:1824:21: sparse:     expected void const [noderef] __iomem *addr
   sound/pci/echoaudio/echoaudio.c:1824:21: sparse:     got unsigned int volatile [noderef] [usertype] __iomem *dsp_registers

vim +3715 drivers/video/fbdev/aty/atyfb_base.c

c98959f566e0c6 drivers/video/aty/atyfb_base.c       Ville Syrjala      2006-12-08  3691  
48c68c4f1b5424 drivers/video/aty/atyfb_base.c       Greg Kroah-Hartman 2012-12-21  3692  static void atyfb_remove(struct fb_info *info)
^1da177e4c3f41 drivers/video/aty/atyfb_base.c       Linus Torvalds     2005-04-16  3693  {
^1da177e4c3f41 drivers/video/aty/atyfb_base.c       Linus Torvalds     2005-04-16  3694  	struct atyfb_par *par = (struct atyfb_par *) info->par;
^1da177e4c3f41 drivers/video/aty/atyfb_base.c       Linus Torvalds     2005-04-16  3695  
^1da177e4c3f41 drivers/video/aty/atyfb_base.c       Linus Torvalds     2005-04-16  3696  	/* restore video mode */
eafad22a05fdac drivers/video/aty/atyfb_base.c       Ville Syrjala      2009-06-30  3697  	aty_set_crtc(par, &par->saved_crtc);
eafad22a05fdac drivers/video/aty/atyfb_base.c       Ville Syrjala      2009-06-30  3698  	par->pll_ops->set_pll(info, &par->saved_pll);
^1da177e4c3f41 drivers/video/aty/atyfb_base.c       Linus Torvalds     2005-04-16  3699  
37ce69a57ff217 drivers/video/aty/atyfb_base.c       Richard Purdie     2007-02-10  3700  	unregister_framebuffer(info);
37ce69a57ff217 drivers/video/aty/atyfb_base.c       Richard Purdie     2007-02-10  3701  
5474c120aafe78 drivers/video/aty/atyfb_base.c       Michael Hanselmann 2006-06-25  3702  #ifdef CONFIG_FB_ATY_BACKLIGHT
5474c120aafe78 drivers/video/aty/atyfb_base.c       Michael Hanselmann 2006-06-25  3703  	if (M64_HAS(MOBIL_BUS))
37ce69a57ff217 drivers/video/aty/atyfb_base.c       Richard Purdie     2007-02-10  3704  		aty_bl_exit(info->bl_dev);
5474c120aafe78 drivers/video/aty/atyfb_base.c       Michael Hanselmann 2006-06-25  3705  #endif
7d89a3cb159aec drivers/video/fbdev/aty/atyfb_base.c Luis R. Rodriguez  2015-07-09  3706  	arch_phys_wc_del(par->wc_cookie);
5474c120aafe78 drivers/video/aty/atyfb_base.c       Michael Hanselmann 2006-06-25  3707  
^1da177e4c3f41 drivers/video/aty/atyfb_base.c       Linus Torvalds     2005-04-16  3708  #ifndef __sparc__
^1da177e4c3f41 drivers/video/aty/atyfb_base.c       Linus Torvalds     2005-04-16  3709  	if (par->ati_regbase)
^1da177e4c3f41 drivers/video/aty/atyfb_base.c       Linus Torvalds     2005-04-16  3710  		iounmap(par->ati_regbase);
^1da177e4c3f41 drivers/video/aty/atyfb_base.c       Linus Torvalds     2005-04-16  3711  	if (info->screen_base)
^1da177e4c3f41 drivers/video/aty/atyfb_base.c       Linus Torvalds     2005-04-16  3712  		iounmap(info->screen_base);
^1da177e4c3f41 drivers/video/aty/atyfb_base.c       Linus Torvalds     2005-04-16  3713  #ifdef __BIG_ENDIAN
^1da177e4c3f41 drivers/video/aty/atyfb_base.c       Linus Torvalds     2005-04-16  3714  	if (info->sprite.addr)
^1da177e4c3f41 drivers/video/aty/atyfb_base.c       Linus Torvalds     2005-04-16 @3715  		iounmap(info->sprite.addr);
^1da177e4c3f41 drivers/video/aty/atyfb_base.c       Linus Torvalds     2005-04-16  3716  #endif
^1da177e4c3f41 drivers/video/aty/atyfb_base.c       Linus Torvalds     2005-04-16  3717  #endif
^1da177e4c3f41 drivers/video/aty/atyfb_base.c       Linus Torvalds     2005-04-16  3718  #ifdef __sparc__
^1da177e4c3f41 drivers/video/aty/atyfb_base.c       Linus Torvalds     2005-04-16  3719  	kfree(par->mmap_map);
^1da177e4c3f41 drivers/video/aty/atyfb_base.c       Linus Torvalds     2005-04-16  3720  #endif
^1da177e4c3f41 drivers/video/aty/atyfb_base.c       Linus Torvalds     2005-04-16  3721  	if (par->aux_start)
^1da177e4c3f41 drivers/video/aty/atyfb_base.c       Linus Torvalds     2005-04-16  3722  		release_mem_region(par->aux_start, par->aux_size);
^1da177e4c3f41 drivers/video/aty/atyfb_base.c       Linus Torvalds     2005-04-16  3723  
^1da177e4c3f41 drivers/video/aty/atyfb_base.c       Linus Torvalds     2005-04-16  3724  	if (par->res_start)
^1da177e4c3f41 drivers/video/aty/atyfb_base.c       Linus Torvalds     2005-04-16  3725  		release_mem_region(par->res_start, par->res_size);
^1da177e4c3f41 drivers/video/aty/atyfb_base.c       Linus Torvalds     2005-04-16  3726  
^1da177e4c3f41 drivers/video/aty/atyfb_base.c       Linus Torvalds     2005-04-16  3727  	framebuffer_release(info);
^1da177e4c3f41 drivers/video/aty/atyfb_base.c       Linus Torvalds     2005-04-16  3728  }
^1da177e4c3f41 drivers/video/aty/atyfb_base.c       Linus Torvalds     2005-04-16  3729  

:::::: The code at line 3715 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds@ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@ppc970.osdl.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 31924 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* drivers/video/fbdev/aty/atyfb_base.c:3715:37: sparse: sparse: incorrect type in argument 1 (different address spaces)
@ 2020-07-17  3:58 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2020-07-17  3:58 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 6639 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   07a56bb875afbe39dabbf6ba7b83783d166863db
commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces
date:   4 weeks ago
config: arc-randconfig-s032-20200717 (attached as .config)
compiler: arc-elf-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.2-49-g707c5017-dirty
        git checkout 670d0a4b10704667765f7d18f7592993d02783aa
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=arc 

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


sparse warnings: (new ones prefixed by >>)

>> drivers/video/fbdev/aty/atyfb_base.c:3715:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const [noderef] __iomem *addr @@     got unsigned char [usertype] *addr @@
>> drivers/video/fbdev/aty/atyfb_base.c:3715:37: sparse:     expected void const [noderef] __iomem *addr
   drivers/video/fbdev/aty/atyfb_base.c:3715:37: sparse:     got unsigned char [usertype] *addr
--
>> sound/pci/echoaudio/echoaudio.c:1824:21: sparse: sparse: incorrect type in argument 1 (different modifiers) @@     expected void const [noderef] __iomem *addr @@     got unsigned int volatile [noderef] [usertype] __iomem *dsp_registers @@
>> sound/pci/echoaudio/echoaudio.c:1824:21: sparse:     expected void const [noderef] __iomem *addr
   sound/pci/echoaudio/echoaudio.c:1824:21: sparse:     got unsigned int volatile [noderef] [usertype] __iomem *dsp_registers

vim +3715 drivers/video/fbdev/aty/atyfb_base.c

c98959f566e0c6 drivers/video/aty/atyfb_base.c       Ville Syrjala      2006-12-08  3691  
48c68c4f1b5424 drivers/video/aty/atyfb_base.c       Greg Kroah-Hartman 2012-12-21  3692  static void atyfb_remove(struct fb_info *info)
^1da177e4c3f41 drivers/video/aty/atyfb_base.c       Linus Torvalds     2005-04-16  3693  {
^1da177e4c3f41 drivers/video/aty/atyfb_base.c       Linus Torvalds     2005-04-16  3694  	struct atyfb_par *par = (struct atyfb_par *) info->par;
^1da177e4c3f41 drivers/video/aty/atyfb_base.c       Linus Torvalds     2005-04-16  3695  
^1da177e4c3f41 drivers/video/aty/atyfb_base.c       Linus Torvalds     2005-04-16  3696  	/* restore video mode */
eafad22a05fdac drivers/video/aty/atyfb_base.c       Ville Syrjala      2009-06-30  3697  	aty_set_crtc(par, &par->saved_crtc);
eafad22a05fdac drivers/video/aty/atyfb_base.c       Ville Syrjala      2009-06-30  3698  	par->pll_ops->set_pll(info, &par->saved_pll);
^1da177e4c3f41 drivers/video/aty/atyfb_base.c       Linus Torvalds     2005-04-16  3699  
37ce69a57ff217 drivers/video/aty/atyfb_base.c       Richard Purdie     2007-02-10  3700  	unregister_framebuffer(info);
37ce69a57ff217 drivers/video/aty/atyfb_base.c       Richard Purdie     2007-02-10  3701  
5474c120aafe78 drivers/video/aty/atyfb_base.c       Michael Hanselmann 2006-06-25  3702  #ifdef CONFIG_FB_ATY_BACKLIGHT
5474c120aafe78 drivers/video/aty/atyfb_base.c       Michael Hanselmann 2006-06-25  3703  	if (M64_HAS(MOBIL_BUS))
37ce69a57ff217 drivers/video/aty/atyfb_base.c       Richard Purdie     2007-02-10  3704  		aty_bl_exit(info->bl_dev);
5474c120aafe78 drivers/video/aty/atyfb_base.c       Michael Hanselmann 2006-06-25  3705  #endif
7d89a3cb159aec drivers/video/fbdev/aty/atyfb_base.c Luis R. Rodriguez  2015-07-09  3706  	arch_phys_wc_del(par->wc_cookie);
5474c120aafe78 drivers/video/aty/atyfb_base.c       Michael Hanselmann 2006-06-25  3707  
^1da177e4c3f41 drivers/video/aty/atyfb_base.c       Linus Torvalds     2005-04-16  3708  #ifndef __sparc__
^1da177e4c3f41 drivers/video/aty/atyfb_base.c       Linus Torvalds     2005-04-16  3709  	if (par->ati_regbase)
^1da177e4c3f41 drivers/video/aty/atyfb_base.c       Linus Torvalds     2005-04-16  3710  		iounmap(par->ati_regbase);
^1da177e4c3f41 drivers/video/aty/atyfb_base.c       Linus Torvalds     2005-04-16  3711  	if (info->screen_base)
^1da177e4c3f41 drivers/video/aty/atyfb_base.c       Linus Torvalds     2005-04-16  3712  		iounmap(info->screen_base);
^1da177e4c3f41 drivers/video/aty/atyfb_base.c       Linus Torvalds     2005-04-16  3713  #ifdef __BIG_ENDIAN
^1da177e4c3f41 drivers/video/aty/atyfb_base.c       Linus Torvalds     2005-04-16  3714  	if (info->sprite.addr)
^1da177e4c3f41 drivers/video/aty/atyfb_base.c       Linus Torvalds     2005-04-16 @3715  		iounmap(info->sprite.addr);
^1da177e4c3f41 drivers/video/aty/atyfb_base.c       Linus Torvalds     2005-04-16  3716  #endif
^1da177e4c3f41 drivers/video/aty/atyfb_base.c       Linus Torvalds     2005-04-16  3717  #endif
^1da177e4c3f41 drivers/video/aty/atyfb_base.c       Linus Torvalds     2005-04-16  3718  #ifdef __sparc__
^1da177e4c3f41 drivers/video/aty/atyfb_base.c       Linus Torvalds     2005-04-16  3719  	kfree(par->mmap_map);
^1da177e4c3f41 drivers/video/aty/atyfb_base.c       Linus Torvalds     2005-04-16  3720  #endif
^1da177e4c3f41 drivers/video/aty/atyfb_base.c       Linus Torvalds     2005-04-16  3721  	if (par->aux_start)
^1da177e4c3f41 drivers/video/aty/atyfb_base.c       Linus Torvalds     2005-04-16  3722  		release_mem_region(par->aux_start, par->aux_size);
^1da177e4c3f41 drivers/video/aty/atyfb_base.c       Linus Torvalds     2005-04-16  3723  
^1da177e4c3f41 drivers/video/aty/atyfb_base.c       Linus Torvalds     2005-04-16  3724  	if (par->res_start)
^1da177e4c3f41 drivers/video/aty/atyfb_base.c       Linus Torvalds     2005-04-16  3725  		release_mem_region(par->res_start, par->res_size);
^1da177e4c3f41 drivers/video/aty/atyfb_base.c       Linus Torvalds     2005-04-16  3726  
^1da177e4c3f41 drivers/video/aty/atyfb_base.c       Linus Torvalds     2005-04-16  3727  	framebuffer_release(info);
^1da177e4c3f41 drivers/video/aty/atyfb_base.c       Linus Torvalds     2005-04-16  3728  }
^1da177e4c3f41 drivers/video/aty/atyfb_base.c       Linus Torvalds     2005-04-16  3729  

:::::: The code at line 3715 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds@ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@ppc970.osdl.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 31924 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-07-17  3:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-17  3:58 drivers/video/fbdev/aty/atyfb_base.c:3715:37: sparse: sparse: incorrect type in argument 1 (different address spaces) kernel test robot
2020-07-17  3:58 ` kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.