* drivers/mtd/devices/phram.c:85:34: sparse: sparse: incorrect type in argument 1 (different address spaces)
@ 2020-06-27 20:10 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2020-06-27 20:10 UTC (permalink / raw)
To: Luc Van Oostenryck; +Cc: kbuild-all, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 3068 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 4e99b32169e84b4ece5a1d74eb0b7e4ef07866b3
commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces
date: 9 days ago
config: parisc-randconfig-s032-20200628 (attached as .config)
compiler: hppa64-linux-gcc (GCC) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.2-dirty
git checkout 670d0a4b10704667765f7d18f7592993d02783aa
# save the attached .config to linux build tree
make W=1 C=1 ARCH=parisc CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
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/mtd/devices/phram.c:85:34: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void *priv @@
>> drivers/mtd/devices/phram.c:85:34: sparse: expected void const volatile [noderef] __iomem *addr
drivers/mtd/devices/phram.c:85:34: sparse: got void *priv
drivers/mtd/devices/phram.c:101:23: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void *priv @@ got void [noderef] __iomem * @@
drivers/mtd/devices/phram.c:101:23: sparse: expected void *priv
drivers/mtd/devices/phram.c:101:23: sparse: got void [noderef] __iomem *
drivers/mtd/devices/phram.c:131:25: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void *priv @@
drivers/mtd/devices/phram.c:131:25: sparse: expected void const volatile [noderef] __iomem *addr
drivers/mtd/devices/phram.c:131:25: sparse: got void *priv
vim +85 drivers/mtd/devices/phram.c
^1da177e4c3f41 Linus Torvalds 2005-04-16 78
^1da177e4c3f41 Linus Torvalds 2005-04-16 79 static void unregister_devices(void)
^1da177e4c3f41 Linus Torvalds 2005-04-16 80 {
d30f11d22549c5 Joern Engel 2005-02-23 81 struct phram_mtd_list *this, *safe;
^1da177e4c3f41 Linus Torvalds 2005-04-16 82
d30f11d22549c5 Joern Engel 2005-02-23 83 list_for_each_entry_safe(this, safe, &phram_list, list) {
ee0e87b174bb41 Jamie Iles 2011-05-23 84 mtd_device_unregister(&this->mtd);
^1da177e4c3f41 Linus Torvalds 2005-04-16 @85 iounmap(this->mtd.priv);
f17f12ce9dd6ec Mathias Krause 2011-01-30 86 kfree(this->mtd.name);
^1da177e4c3f41 Linus Torvalds 2005-04-16 87 kfree(this);
^1da177e4c3f41 Linus Torvalds 2005-04-16 88 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 89 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 90
:::::: The code at line 85 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: 27266 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* drivers/mtd/devices/phram.c:85:34: sparse: sparse: incorrect type in argument 1 (different address spaces)
@ 2020-06-27 20:10 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2020-06-27 20:10 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3124 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 4e99b32169e84b4ece5a1d74eb0b7e4ef07866b3
commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces
date: 9 days ago
config: parisc-randconfig-s032-20200628 (attached as .config)
compiler: hppa64-linux-gcc (GCC) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.2-dirty
git checkout 670d0a4b10704667765f7d18f7592993d02783aa
# save the attached .config to linux build tree
make W=1 C=1 ARCH=parisc CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
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/mtd/devices/phram.c:85:34: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void *priv @@
>> drivers/mtd/devices/phram.c:85:34: sparse: expected void const volatile [noderef] __iomem *addr
drivers/mtd/devices/phram.c:85:34: sparse: got void *priv
drivers/mtd/devices/phram.c:101:23: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void *priv @@ got void [noderef] __iomem * @@
drivers/mtd/devices/phram.c:101:23: sparse: expected void *priv
drivers/mtd/devices/phram.c:101:23: sparse: got void [noderef] __iomem *
drivers/mtd/devices/phram.c:131:25: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void *priv @@
drivers/mtd/devices/phram.c:131:25: sparse: expected void const volatile [noderef] __iomem *addr
drivers/mtd/devices/phram.c:131:25: sparse: got void *priv
vim +85 drivers/mtd/devices/phram.c
^1da177e4c3f41 Linus Torvalds 2005-04-16 78
^1da177e4c3f41 Linus Torvalds 2005-04-16 79 static void unregister_devices(void)
^1da177e4c3f41 Linus Torvalds 2005-04-16 80 {
d30f11d22549c5 Joern Engel 2005-02-23 81 struct phram_mtd_list *this, *safe;
^1da177e4c3f41 Linus Torvalds 2005-04-16 82
d30f11d22549c5 Joern Engel 2005-02-23 83 list_for_each_entry_safe(this, safe, &phram_list, list) {
ee0e87b174bb41 Jamie Iles 2011-05-23 84 mtd_device_unregister(&this->mtd);
^1da177e4c3f41 Linus Torvalds 2005-04-16 @85 iounmap(this->mtd.priv);
f17f12ce9dd6ec Mathias Krause 2011-01-30 86 kfree(this->mtd.name);
^1da177e4c3f41 Linus Torvalds 2005-04-16 87 kfree(this);
^1da177e4c3f41 Linus Torvalds 2005-04-16 88 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 89 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 90
:::::: The code at line 85 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: 27266 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-06-27 20:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-27 20:10 drivers/mtd/devices/phram.c:85:34: sparse: sparse: incorrect type in argument 1 (different address spaces) kernel test robot
2020-06-27 20:10 ` 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.