mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* arch/mips/ralink/bootrom.c:17:22: sparse: sparse: incorrect type in argument 2 (different address spaces)
@ 2020-07-17  6:35 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-07-17  6:35 UTC (permalink / raw)
  To: Luc Van Oostenryck; +Cc: kbuild-all, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 2230 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: mips-randconfig-s031-20200717 (attached as .config)
compiler: mipsel-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-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=mips 

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/mips/ralink/bootrom.c:17:22: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void const *data @@     got void [noderef] __iomem *static [toplevel] membase @@
   arch/mips/ralink/bootrom.c:17:22: sparse:     expected void const *data
>> arch/mips/ralink/bootrom.c:17:22: sparse:     got void [noderef] __iomem *static [toplevel] membase

vim +17 arch/mips/ralink/bootrom.c

7a1a44c909fcb4 John Crispin 2013-05-21  14  
7a1a44c909fcb4 John Crispin 2013-05-21  15  static int bootrom_show(struct seq_file *s, void *unused)
7a1a44c909fcb4 John Crispin 2013-05-21  16  {
7a1a44c909fcb4 John Crispin 2013-05-21 @17  	seq_write(s, membase, BOOTROM_SIZE);
7a1a44c909fcb4 John Crispin 2013-05-21  18  
7a1a44c909fcb4 John Crispin 2013-05-21  19  	return 0;
7a1a44c909fcb4 John Crispin 2013-05-21  20  }
7a1a44c909fcb4 John Crispin 2013-05-21  21  

:::::: The code at line 17 was first introduced by commit
:::::: 7a1a44c909fcb4707b01448a28490d7be366b530 MIPS: ralink: add a bootrom dumper module

:::::: TO: John Crispin <blogic@openwrt.org>
:::::: CC: Ralf Baechle <ralf@linux-mips.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: 33684 bytes --]

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

only message in thread, other threads:[~2020-07-17  6:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-17  6:35 arch/mips/ralink/bootrom.c:17:22: sparse: sparse: incorrect type in 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

all inboxes | Powered by JetHome®