lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202008182223.lLp2hbrI%lkp@intel.com>
Date:   Tue, 18 Aug 2020 22:18:32 +0800
From:   kernel test robot <lkp@...el.com>
To:     Luc Van Oostenryck <luc.vanoostenryck@...il.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: arch/powerpc/platforms/86xx/mpc8610_hpcd.c:295:23: sparse: sparse:
 incorrect type in assignment (different address spaces)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   06a4ec1d9dc652e17ee3ac2ceb6c7cf6c2b75cdd
commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces
date:   9 weeks ago
config: powerpc-randconfig-s032-20200818 (attached as .config)
compiler: powerpc-linux-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-180-g49f7e13a-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=powerpc 

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


sparse warnings: (new ones prefixed by >>)

>> arch/powerpc/platforms/86xx/mpc8610_hpcd.c:295:23: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned char *pixis @@     got void [noderef] __iomem * @@
   arch/powerpc/platforms/86xx/mpc8610_hpcd.c:295:23: sparse:     expected unsigned char *pixis
>> arch/powerpc/platforms/86xx/mpc8610_hpcd.c:295:23: sparse:     got void [noderef] __iomem *

# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=670d0a4b10704667765f7d18f7592993d02783aa
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 670d0a4b10704667765f7d18f7592993d02783aa
vim +295 arch/powerpc/platforms/86xx/mpc8610_hpcd.c

6f90a8bdd17e63f York Sun        2008-04-28  290  
8c68e2f7885b22f Anton Vorontsov 2009-09-16  291  	pixis_node = of_find_compatible_node(NULL, NULL, "fsl,fpga-pixis");
8c68e2f7885b22f Anton Vorontsov 2009-09-16  292  	if (pixis_node) {
8c68e2f7885b22f Anton Vorontsov 2009-09-16  293  		of_address_to_resource(pixis_node, 0, &r);
8c68e2f7885b22f Anton Vorontsov 2009-09-16  294  		of_node_put(pixis_node);
6f90a8bdd17e63f York Sun        2008-04-28 @295  		pixis = ioremap(r.start, 32);
6f90a8bdd17e63f York Sun        2008-04-28  296  		if (!pixis) {
6f90a8bdd17e63f York Sun        2008-04-28  297  			printk(KERN_ERR "Err: can't map FPGA cfg register!\n");
6f90a8bdd17e63f York Sun        2008-04-28  298  			return;
6f90a8bdd17e63f York Sun        2008-04-28  299  		}
6f90a8bdd17e63f York Sun        2008-04-28  300  		pixis_bdcfg0 = pixis + 8;
6f90a8bdd17e63f York Sun        2008-04-28  301  		pixis_arch = pixis + 1;
6f90a8bdd17e63f York Sun        2008-04-28  302  	} else
6f90a8bdd17e63f York Sun        2008-04-28  303  		printk(KERN_ERR "Err: "
6f90a8bdd17e63f York Sun        2008-04-28  304  				"can't find device node 'fsl,fpga-pixis'\n");
0e65bfe34c10005 Xianghua Xiao   2007-10-03  305  
0e65bfe34c10005 Xianghua Xiao   2007-10-03  306  	printk("MPC86xx HPCD board from Freescale Semiconductor\n");
0e65bfe34c10005 Xianghua Xiao   2007-10-03  307  }
0e65bfe34c10005 Xianghua Xiao   2007-10-03  308  

:::::: The code at line 295 was first introduced by commit
:::::: 6f90a8bdd17e63fb27b4f6d50e8a2919704ea254 powerpc: Add DIU platform code for MPC8610HPCD

:::::: TO: York Sun <yorksun@...escale.com>
:::::: CC: Linus Torvalds <torvalds@...ux-foundation.org>

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

Download attachment ".config.gz" of type "application/gzip" (32014 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ