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: <202008202356.LIil9WWn%lkp@intel.com>
Date:   Thu, 20 Aug 2020 23:06:05 +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: drivers/media/pci/dm1105/dm1105.c:386:17: sparse: sparse: cast
 removes address space '__iomem' of expression

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   7eac66d0456fe12a462e5c14c68e97c7460989da
commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces
date:   9 weeks ago
config: riscv-randconfig-s032-20200820 (attached as .config)
compiler: riscv32-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-191-g10164920-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=riscv 

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 >>)

>> drivers/media/pci/dm1105/dm1105.c:386:17: sparse: sparse: cast removes address space '__iomem' of expression
>> drivers/media/pci/dm1105/dm1105.c:386:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got void * @@
>> drivers/media/pci/dm1105/dm1105.c:386:17: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/media/pci/dm1105/dm1105.c:386:17: sparse:     got void *
>> drivers/media/pci/dm1105/dm1105.c:386:17: sparse: sparse: cast removes address space '__iomem' of expression
>> drivers/media/pci/dm1105/dm1105.c:386:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got void * @@
>> drivers/media/pci/dm1105/dm1105.c:386:17: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/media/pci/dm1105/dm1105.c:386:17: sparse:     got void *
   drivers/media/pci/dm1105/dm1105.c:396:17: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/media/pci/dm1105/dm1105.c:396:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got void * @@
   drivers/media/pci/dm1105/dm1105.c:396:17: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/media/pci/dm1105/dm1105.c:396:17: sparse:     got void *
   drivers/media/pci/dm1105/dm1105.c:396:17: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/media/pci/dm1105/dm1105.c:396:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got void * @@
   drivers/media/pci/dm1105/dm1105.c:396:17: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/media/pci/dm1105/dm1105.c:396:17: sparse:     got void *
   drivers/media/pci/dm1105/dm1105.c:406:17: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/media/pci/dm1105/dm1105.c:406:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got void * @@
   drivers/media/pci/dm1105/dm1105.c:406:17: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/media/pci/dm1105/dm1105.c:406:17: sparse:     got void *
   drivers/media/pci/dm1105/dm1105.c:406:17: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/media/pci/dm1105/dm1105.c:406:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got void * @@
   drivers/media/pci/dm1105/dm1105.c:406:17: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/media/pci/dm1105/dm1105.c:406:17: sparse:     got void *
   drivers/media/pci/dm1105/dm1105.c:416:24: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/media/pci/dm1105/dm1105.c:416:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got void * @@
   drivers/media/pci/dm1105/dm1105.c:416:24: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/media/pci/dm1105/dm1105.c:416:24: sparse:     got void *
   drivers/media/pci/dm1105/dm1105.c:427:17: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/media/pci/dm1105/dm1105.c:427:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got void * @@
   drivers/media/pci/dm1105/dm1105.c:427:17: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/media/pci/dm1105/dm1105.c:427:17: sparse:     got void *
   drivers/media/pci/dm1105/dm1105.c:427:17: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/media/pci/dm1105/dm1105.c:427:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got void * @@
   drivers/media/pci/dm1105/dm1105.c:427:17: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/media/pci/dm1105/dm1105.c:427:17: sparse:     got void *
   drivers/media/pci/dm1105/dm1105.c:429:17: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/media/pci/dm1105/dm1105.c:429:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got void * @@
   drivers/media/pci/dm1105/dm1105.c:429:17: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/media/pci/dm1105/dm1105.c:429:17: sparse:     got void *
   drivers/media/pci/dm1105/dm1105.c:429:17: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/media/pci/dm1105/dm1105.c:429:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got void * @@
   drivers/media/pci/dm1105/dm1105.c:429:17: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/media/pci/dm1105/dm1105.c:429:17: sparse:     got void *
   drivers/media/pci/dm1105/dm1105.c:483:17: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/media/pci/dm1105/dm1105.c:483:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got void * @@
   drivers/media/pci/dm1105/dm1105.c:483:17: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/media/pci/dm1105/dm1105.c:483:17: sparse:     got void *
   drivers/media/pci/dm1105/dm1105.c:488:25: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/media/pci/dm1105/dm1105.c:488:25: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got void * @@
   drivers/media/pci/dm1105/dm1105.c:488:25: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/media/pci/dm1105/dm1105.c:488:25: sparse:     got void *
   drivers/media/pci/dm1105/dm1105.c:490:33: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/media/pci/dm1105/dm1105.c:490:33: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got void * @@
   drivers/media/pci/dm1105/dm1105.c:490:33: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/media/pci/dm1105/dm1105.c:490:33: sparse:     got void *
   drivers/media/pci/dm1105/dm1105.c:492:25: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/media/pci/dm1105/dm1105.c:492:25: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got void * @@
   drivers/media/pci/dm1105/dm1105.c:492:25: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/media/pci/dm1105/dm1105.c:492:25: sparse:     got void *
   drivers/media/pci/dm1105/dm1105.c:495:42: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/media/pci/dm1105/dm1105.c:495:42: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got void * @@
   drivers/media/pci/dm1105/dm1105.c:495:42: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/media/pci/dm1105/dm1105.c:495:42: sparse:     got void *
   drivers/media/pci/dm1105/dm1105.c:503:38: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/media/pci/dm1105/dm1105.c:503:38: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got void * @@
   drivers/media/pci/dm1105/dm1105.c:503:38: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/media/pci/dm1105/dm1105.c:503:38: sparse:     got void *
   drivers/media/pci/dm1105/dm1105.c:514:33: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/media/pci/dm1105/dm1105.c:514:33: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got void * @@
   drivers/media/pci/dm1105/dm1105.c:514:33: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/media/pci/dm1105/dm1105.c:514:33: sparse:     got void *
   drivers/media/pci/dm1105/dm1105.c:515:33: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/media/pci/dm1105/dm1105.c:515:33: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got void * @@
   drivers/media/pci/dm1105/dm1105.c:515:33: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/media/pci/dm1105/dm1105.c:515:33: sparse:     got void *
   drivers/media/pci/dm1105/dm1105.c:518:41: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/media/pci/dm1105/dm1105.c:518:41: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got void * @@
   drivers/media/pci/dm1105/dm1105.c:518:41: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/media/pci/dm1105/dm1105.c:518:41: sparse:     got void *
   drivers/media/pci/dm1105/dm1105.c:520:33: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/media/pci/dm1105/dm1105.c:520:33: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got void * @@
   drivers/media/pci/dm1105/dm1105.c:520:33: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/media/pci/dm1105/dm1105.c:520:33: sparse:     got void *
   drivers/media/pci/dm1105/dm1105.c:523:50: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/media/pci/dm1105/dm1105.c:523:50: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got void * @@
   drivers/media/pci/dm1105/dm1105.c:523:50: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/media/pci/dm1105/dm1105.c:523:50: sparse:     got void *
   drivers/media/pci/dm1105/dm1105.c:536:25: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/media/pci/dm1105/dm1105.c:536:25: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got void * @@
   drivers/media/pci/dm1105/dm1105.c:536:25: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/media/pci/dm1105/dm1105.c:536:25: sparse:     got void *
   drivers/media/pci/dm1105/dm1105.c:539:33: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/media/pci/dm1105/dm1105.c:539:33: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got void * @@
   drivers/media/pci/dm1105/dm1105.c:539:33: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/media/pci/dm1105/dm1105.c:539:33: sparse:     got void *
   drivers/media/pci/dm1105/dm1105.c:541:25: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/media/pci/dm1105/dm1105.c:541:25: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got void * @@
   drivers/media/pci/dm1105/dm1105.c:541:25: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/media/pci/dm1105/dm1105.c:541:25: sparse:     got void *
   drivers/media/pci/dm1105/dm1105.c:544:42: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/media/pci/dm1105/dm1105.c:544:42: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got void * @@
   drivers/media/pci/dm1105/dm1105.c:544:42: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/media/pci/dm1105/dm1105.c:544:42: sparse:     got void *
   drivers/media/pci/dm1105/dm1105.c:602:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/media/pci/dm1105/dm1105.c:602:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got void * @@
   drivers/media/pci/dm1105/dm1105.c:602:9: sparse:     expected void volatile [noderef] __iomem *addr

# 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 +/__iomem +386 drivers/media/pci/dm1105/dm1105.c

5eb3291fe84b30a drivers/media/dvb/dm1105/dm1105.c Igor M. Liplianin 2010-01-17  375  
0017505de0d2888 drivers/media/dvb/dm1105/dm1105.c Igor M. Liplianin 2011-05-05  376  /* The chip has 18 GPIOs. In HOST mode GPIO's used as 15 bit address lines,
0017505de0d2888 drivers/media/dvb/dm1105/dm1105.c Igor M. Liplianin 2011-05-05  377   so we can use only 3 GPIO's from GPIO15 to GPIO17.
0017505de0d2888 drivers/media/dvb/dm1105/dm1105.c Igor M. Liplianin 2011-05-05  378   Here I don't check whether HOST is enebled as it is not implemented yet.
0017505de0d2888 drivers/media/dvb/dm1105/dm1105.c Igor M. Liplianin 2011-05-05  379   */
0017505de0d2888 drivers/media/dvb/dm1105/dm1105.c Igor M. Liplianin 2011-05-05  380  static void dm1105_gpio_set(struct dm1105_dev *dev, u32 mask)
0017505de0d2888 drivers/media/dvb/dm1105/dm1105.c Igor M. Liplianin 2011-05-05  381  {
0017505de0d2888 drivers/media/dvb/dm1105/dm1105.c Igor M. Liplianin 2011-05-05  382  	if (mask & 0xfffc0000)
0017505de0d2888 drivers/media/dvb/dm1105/dm1105.c Igor M. Liplianin 2011-05-05  383  		printk(KERN_ERR "%s: Only 18 GPIO's are allowed\n", __func__);
0017505de0d2888 drivers/media/dvb/dm1105/dm1105.c Igor M. Liplianin 2011-05-05  384  
0017505de0d2888 drivers/media/dvb/dm1105/dm1105.c Igor M. Liplianin 2011-05-05  385  	if (mask & 0x0003ffff)
0017505de0d2888 drivers/media/dvb/dm1105/dm1105.c Igor M. Liplianin 2011-05-05 @386  		dm_setl(DM1105_GPIOVAL, mask & 0x0003ffff);
0017505de0d2888 drivers/media/dvb/dm1105/dm1105.c Igor M. Liplianin 2011-05-05  387  

:::::: The code at line 386 was first introduced by commit
:::::: 0017505de0d2888f57a9f84e8eb3963b3cd28baf [media] dm1105: GPIO handling added, I2C on GPIO added, LNB control through GPIO reworked

:::::: TO: Igor M. Liplianin <liplianin@...by>
:::::: CC: Mauro Carvalho Chehab <mchehab@...hat.com>

---
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" (29836 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ