mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: arch/powerpc/platforms/86xx/mpc8610_hpcd.c:295:23: sparse: sparse: incorrect type in assignment (different address spaces)
Date: Tue, 18 Aug 2020 22:18:32 +0800	[thread overview]
Message-ID: <202008182223.lLp2hbrI%lkp@intel.com> (raw)

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

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@intel.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@freescale.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.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: 32014 bytes --]

                 reply	other threads:[~2020-08-18 14:19 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202008182223.lLp2hbrI%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luc.vanoostenryck@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®