[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202008051841.4F6v77Ox%lkp@intel.com>
Date: Wed, 5 Aug 2020 18:31:47 +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: sound/core/hwdep.c:265:29: sparse: sparse: incorrect type in
argument 1 (different address spaces)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 4da9f3302615f4191814f826054846bf843e24fa
commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces
date: 7 weeks ago
config: sh-randconfig-s031-20200805 (attached as .config)
compiler: sh4-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-117-g8c7aee71-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=sh
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 >>)
sound/core/hwdep.c:265:29: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user * @@
sound/core/hwdep.c:265:29: sparse: expected int const *__gu_addr
sound/core/hwdep.c:265:29: sparse: got int [noderef] __user *
>> sound/core/hwdep.c:265:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user * @@ got int const *__gu_addr @@
>> sound/core/hwdep.c:265:29: sparse: expected void const volatile [noderef] __user *
sound/core/hwdep.c:265:29: sparse: got int const *__gu_addr
sound/core/hwdep.c:294:29: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] __user * @@
sound/core/hwdep.c:294:29: sparse: expected unsigned int const *__gu_addr
sound/core/hwdep.c:294:29: sparse: got unsigned int [noderef] __user *
>> sound/core/hwdep.c:294:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user * @@ got unsigned int const *__gu_addr @@
sound/core/hwdep.c:294:29: sparse: expected void const volatile [noderef] __user *
sound/core/hwdep.c:294:29: sparse: got unsigned int const *__gu_addr
--
drivers/auxdisplay/charlcd.c:675:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected char const *__gu_addr @@ got char const [noderef] __user *tmp @@
drivers/auxdisplay/charlcd.c:675:21: sparse: expected char const *__gu_addr
drivers/auxdisplay/charlcd.c:675:21: sparse: got char const [noderef] __user *tmp
>> drivers/auxdisplay/charlcd.c:675:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user * @@ got char const *__gu_addr @@
>> drivers/auxdisplay/charlcd.c:675:21: sparse: expected void const volatile [noderef] __user *
drivers/auxdisplay/charlcd.c:675:21: sparse: got char const *__gu_addr
--
drivers/usb/core/devio.c:313:17: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned short [usertype] *p @@ got restricted __le16 * @@
drivers/usb/core/devio.c:313:17: sparse: expected unsigned short [usertype] *p
drivers/usb/core/devio.c:313:17: sparse: got restricted __le16 *
drivers/usb/core/devio.c:314:17: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned short [usertype] *p @@ got restricted __le16 * @@
drivers/usb/core/devio.c:314:17: sparse: expected unsigned short [usertype] *p
drivers/usb/core/devio.c:314:17: sparse: got restricted __le16 *
drivers/usb/core/devio.c:315:17: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned short [usertype] *p @@ got restricted __le16 * @@
drivers/usb/core/devio.c:315:17: sparse: expected unsigned short [usertype] *p
drivers/usb/core/devio.c:315:17: sparse: got restricted __le16 *
drivers/usb/core/devio.c:316:17: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned short [usertype] *p @@ got restricted __le16 * @@
drivers/usb/core/devio.c:316:17: sparse: expected unsigned short [usertype] *p
drivers/usb/core/devio.c:316:17: sparse: got restricted __le16 *
drivers/usb/core/devio.c:937:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] __user * @@
drivers/usb/core/devio.c:937:13: sparse: expected unsigned int const *__gu_addr
drivers/usb/core/devio.c:937:13: sparse: got unsigned int [noderef] __user *
>> drivers/usb/core/devio.c:937:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user * @@ got unsigned int const *__gu_addr @@
>> drivers/usb/core/devio.c:937:13: sparse: expected void const volatile [noderef] __user *
drivers/usb/core/devio.c:937:13: sparse: got unsigned int const *__gu_addr
drivers/usb/core/devio.c:938:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] __user * @@
drivers/usb/core/devio.c:938:13: sparse: expected unsigned int const *__gu_addr
drivers/usb/core/devio.c:938:13: sparse: got unsigned int [noderef] __user *
drivers/usb/core/devio.c:938:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user * @@ got unsigned int const *__gu_addr @@
drivers/usb/core/devio.c:938:13: sparse: expected void const volatile [noderef] __user *
drivers/usb/core/devio.c:938:13: sparse: got unsigned int const *__gu_addr
drivers/usb/core/devio.c:953:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned char const *__gu_addr @@ got unsigned char [noderef] __user * @@
drivers/usb/core/devio.c:953:21: sparse: expected unsigned char const *__gu_addr
drivers/usb/core/devio.c:953:21: sparse: got unsigned char [noderef] __user *
>> drivers/usb/core/devio.c:953:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user * @@ got unsigned char const *__gu_addr @@
drivers/usb/core/devio.c:953:21: sparse: expected void const volatile [noderef] __user *
drivers/usb/core/devio.c:953:21: sparse: got unsigned char const *__gu_addr
drivers/usb/core/devio.c:1276:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] __user * @@
drivers/usb/core/devio.c:1276:13: sparse: expected unsigned int const *__gu_addr
drivers/usb/core/devio.c:1276:13: sparse: got unsigned int [noderef] __user *
drivers/usb/core/devio.c:1276:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user * @@ got unsigned int const *__gu_addr @@
drivers/usb/core/devio.c:1276:13: sparse: expected void const volatile [noderef] __user *
drivers/usb/core/devio.c:1276:13: sparse: got unsigned int const *__gu_addr
drivers/usb/core/devio.c:1295:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] __user * @@
drivers/usb/core/devio.c:1295:13: sparse: expected unsigned int const *__gu_addr
drivers/usb/core/devio.c:1295:13: sparse: got unsigned int [noderef] __user *
drivers/usb/core/devio.c:1295:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user * @@ got unsigned int const *__gu_addr @@
drivers/usb/core/devio.c:1295:13: sparse: expected void const volatile [noderef] __user *
drivers/usb/core/devio.c:1295:13: sparse: got unsigned int const *__gu_addr
drivers/usb/core/devio.c:1427:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user * @@
drivers/usb/core/devio.c:1427:13: sparse: expected int const *__gu_addr
drivers/usb/core/devio.c:1427:13: sparse: got int [noderef] __user *
>> drivers/usb/core/devio.c:1427:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user * @@ got int const *__gu_addr @@
drivers/usb/core/devio.c:1427:13: sparse: expected void const volatile [noderef] __user *
drivers/usb/core/devio.c:1427:13: sparse: got int const *__gu_addr
drivers/usb/core/devio.c:2177:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] __user * @@
drivers/usb/core/devio.c:2177:13: sparse: expected unsigned int const *__gu_addr
drivers/usb/core/devio.c:2177:13: sparse: got unsigned int [noderef] __user *
drivers/usb/core/devio.c:2177:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user * @@ got unsigned int const *__gu_addr @@
drivers/usb/core/devio.c:2177:13: sparse: expected void const volatile [noderef] __user *
drivers/usb/core/devio.c:2177:13: sparse: got unsigned int const *__gu_addr
drivers/usb/core/devio.c:2187:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] __user * @@
drivers/usb/core/devio.c:2187:13: sparse: expected unsigned int const *__gu_addr
drivers/usb/core/devio.c:2187:13: sparse: got unsigned int [noderef] __user *
drivers/usb/core/devio.c:2187:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user * @@ got unsigned int const *__gu_addr @@
drivers/usb/core/devio.c:2187:13: sparse: expected void const volatile [noderef] __user *
drivers/usb/core/devio.c:2187:13: sparse: got unsigned int const *__gu_addr
drivers/usb/core/devio.c:2303:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] __user * @@
drivers/usb/core/devio.c:2303:13: sparse: expected unsigned int const *__gu_addr
drivers/usb/core/devio.c:2303:13: sparse: got unsigned int [noderef] __user *
drivers/usb/core/devio.c:2303:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user * @@ got unsigned int const *__gu_addr @@
drivers/usb/core/devio.c:2303:13: sparse: expected void const volatile [noderef] __user *
drivers/usb/core/devio.c:2303:13: sparse: got unsigned int const *__gu_addr
drivers/usb/core/devio.c:2316:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] __user * @@
drivers/usb/core/devio.c:2316:13: sparse: expected unsigned int const *__gu_addr
drivers/usb/core/devio.c:2316:13: sparse: got unsigned int [noderef] __user *
drivers/usb/core/devio.c:2316:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user * @@ got unsigned int const *__gu_addr @@
drivers/usb/core/devio.c:2316:13: sparse: expected void const volatile [noderef] __user *
drivers/usb/core/devio.c:2316:13: sparse: got unsigned int const *__gu_addr
--
>> drivers/usb/cdns3/drd.c:43:31: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem * @@ got restricted __le32 * @@
>> drivers/usb/cdns3/drd.c:43:31: sparse: expected void const volatile [noderef] __iomem *
drivers/usb/cdns3/drd.c:43:31: sparse: got restricted __le32 *
drivers/usb/cdns3/drd.c:45:25: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem * @@ got restricted __le32 * @@
drivers/usb/cdns3/drd.c:45:25: sparse: expected void const volatile [noderef] __iomem *
drivers/usb/cdns3/drd.c:45:25: sparse: got restricted __le32 *
drivers/usb/cdns3/drd.c:47:31: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem * @@ got restricted __le32 * @@
drivers/usb/cdns3/drd.c:47:31: sparse: expected void const volatile [noderef] __iomem *
drivers/usb/cdns3/drd.c:47:31: sparse: got restricted __le32 *
drivers/usb/cdns3/drd.c:49:25: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem * @@ got restricted __le32 * @@
drivers/usb/cdns3/drd.c:49:25: sparse: expected void const volatile [noderef] __iomem *
drivers/usb/cdns3/drd.c:49:25: sparse: got restricted __le32 *
drivers/usb/cdns3/drd.c:71:14: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem * @@ got restricted __le32 * @@
drivers/usb/cdns3/drd.c:71:14: sparse: expected void const volatile [noderef] __iomem *
drivers/usb/cdns3/drd.c:71:14: sparse: got restricted __le32 *
drivers/usb/cdns3/drd.c:81:19: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem * @@ got restricted __le32 * @@
drivers/usb/cdns3/drd.c:81:19: sparse: expected void const volatile [noderef] __iomem *
drivers/usb/cdns3/drd.c:81:19: sparse: got restricted __le32 *
drivers/usb/cdns3/drd.c:114:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem * @@ got restricted __le32 * @@
drivers/usb/cdns3/drd.c:114:9: sparse: expected void const volatile [noderef] __iomem *
drivers/usb/cdns3/drd.c:114:9: sparse: got restricted __le32 *
drivers/usb/cdns3/drd.c:123:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem * @@ got restricted __le32 * @@
drivers/usb/cdns3/drd.c:123:9: sparse: expected void const volatile [noderef] __iomem *
drivers/usb/cdns3/drd.c:123:9: sparse: got restricted __le32 *
drivers/usb/cdns3/drd.c:141:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem * @@ got restricted __le32 * @@
drivers/usb/cdns3/drd.c:141:17: sparse: expected void const volatile [noderef] __iomem *
drivers/usb/cdns3/drd.c:141:17: sparse: got restricted __le32 *
drivers/usb/cdns3/drd.c:144:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem * @@ got restricted __le32 * @@
drivers/usb/cdns3/drd.c:144:23: sparse: expected void const volatile [noderef] __iomem *
drivers/usb/cdns3/drd.c:144:23: sparse: got restricted __le32 *
drivers/usb/cdns3/drd.c:144:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem * @@ got restricted __le32 * @@
drivers/usb/cdns3/drd.c:144:23: sparse: expected void const volatile [noderef] __iomem *
drivers/usb/cdns3/drd.c:144:23: sparse: got restricted __le32 *
drivers/usb/cdns3/drd.c:152:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem * @@ got restricted __le32 * @@
drivers/usb/cdns3/drd.c:152:17: sparse: expected void const volatile [noderef] __iomem *
drivers/usb/cdns3/drd.c:152:17: sparse: got restricted __le32 *
drivers/usb/cdns3/drd.c:156:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem * @@ got restricted __le32 * @@
drivers/usb/cdns3/drd.c:156:17: sparse: expected void const volatile [noderef] __iomem *
drivers/usb/cdns3/drd.c:156:17: sparse: got restricted __le32 *
drivers/usb/cdns3/drd.c:156:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem * @@ got restricted __le32 * @@
drivers/usb/cdns3/drd.c:156:17: sparse: expected void const volatile [noderef] __iomem *
drivers/usb/cdns3/drd.c:156:17: sparse: got restricted __le32 *
drivers/usb/cdns3/drd.c:178:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem * @@ got restricted __le32 * @@
drivers/usb/cdns3/drd.c:178:17: sparse: expected void const volatile [noderef] __iomem *
drivers/usb/cdns3/drd.c:178:17: sparse: got restricted __le32 *
drivers/usb/cdns3/drd.c:182:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem * @@ got restricted __le32 * @@
drivers/usb/cdns3/drd.c:182:23: sparse: expected void const volatile [noderef] __iomem *
drivers/usb/cdns3/drd.c:182:23: sparse: got restricted __le32 *
drivers/usb/cdns3/drd.c:182:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem * @@ got restricted __le32 * @@
drivers/usb/cdns3/drd.c:182:23: sparse: expected void const volatile [noderef] __iomem *
drivers/usb/cdns3/drd.c:182:23: sparse: got restricted __le32 *
drivers/usb/cdns3/drd.c:195:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem * @@ got restricted __le32 * @@
drivers/usb/cdns3/drd.c:195:17: sparse: expected void const volatile [noderef] __iomem *
drivers/usb/cdns3/drd.c:195:17: sparse: got restricted __le32 *
drivers/usb/cdns3/drd.c:199:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem * @@ got restricted __le32 * @@
drivers/usb/cdns3/drd.c:199:17: sparse: expected void const volatile [noderef] __iomem *
drivers/usb/cdns3/drd.c:199:17: sparse: got restricted __le32 *
drivers/usb/cdns3/drd.c:199:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem * @@ got restricted __le32 * @@
drivers/usb/cdns3/drd.c:199:17: sparse: expected void const volatile [noderef] __iomem *
drivers/usb/cdns3/drd.c:199:17: sparse: got restricted __le32 *
drivers/usb/cdns3/drd.c:219:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem * @@ got restricted __le32 * @@
drivers/usb/cdns3/drd.c:219:9: sparse: expected void const volatile [noderef] __iomem *
drivers/usb/cdns3/drd.c:219:9: sparse: got restricted __le32 *
drivers/usb/cdns3/drd.c:284:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem * @@ got restricted __le32 * @@
drivers/usb/cdns3/drd.c:284:15: sparse: expected void const volatile [noderef] __iomem *
drivers/usb/cdns3/drd.c:284:15: sparse: got restricted __le32 *
drivers/usb/cdns3/drd.c:303:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem * @@ got restricted __le32 * @@
drivers/usb/cdns3/drd.c:303:9: sparse: expected void const volatile [noderef] __iomem *
drivers/usb/cdns3/drd.c:303:9: sparse: got restricted __le32 *
drivers/usb/cdns3/drd.c:326:27: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct cdns3_otg_legacy_regs *otg_v0_regs @@ got void [noderef] __iomem *[assigned] regs @@
drivers/usb/cdns3/drd.c:326:27: sparse: expected struct cdns3_otg_legacy_regs *otg_v0_regs
drivers/usb/cdns3/drd.c:326:27: sparse: got void [noderef] __iomem *[assigned] regs
drivers/usb/cdns3/drd.c:327:14: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem * @@ got restricted __le32 * @@
drivers/usb/cdns3/drd.c:327:14: sparse: expected void const volatile [noderef] __iomem *
drivers/usb/cdns3/drd.c:327:14: sparse: got restricted __le32 *
drivers/usb/cdns3/drd.c:330:32: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct cdns3_otg_common_regs *otg_regs @@ got void [noderef] __iomem *[assigned] regs @@
drivers/usb/cdns3/drd.c:330:32: sparse: expected struct cdns3_otg_common_regs *otg_regs
drivers/usb/cdns3/drd.c:330:32: sparse: got void [noderef] __iomem *[assigned] regs
drivers/usb/cdns3/drd.c:331:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem * @@ got restricted __le32 * @@
drivers/usb/cdns3/drd.c:331:17: sparse: expected void const volatile [noderef] __iomem *
drivers/usb/cdns3/drd.c:331:17: sparse: got restricted __le32 *
drivers/usb/cdns3/drd.c:332:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem * @@ got restricted __le32 * @@
drivers/usb/cdns3/drd.c:332:17: sparse: expected void const volatile [noderef] __iomem *
drivers/usb/cdns3/drd.c:332:17: sparse: got restricted __le32 *
drivers/usb/cdns3/drd.c:336:35: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct cdns3_otg_regs *otg_v1_regs @@ got void [noderef] __iomem *[assigned] regs @@
drivers/usb/cdns3/drd.c:336:35: sparse: expected struct cdns3_otg_regs *otg_v1_regs
drivers/usb/cdns3/drd.c:336:35: sparse: got void [noderef] __iomem *[assigned] regs
drivers/usb/cdns3/drd.c:339:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem * @@ got restricted __le32 * @@
drivers/usb/cdns3/drd.c:339:17: sparse: expected void const volatile [noderef] __iomem *
drivers/usb/cdns3/drd.c:339:17: sparse: got restricted __le32 *
drivers/usb/cdns3/drd.c:340:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem * @@ got restricted __le32 * @@
drivers/usb/cdns3/drd.c:340:17: sparse: expected void const volatile [noderef] __iomem *
drivers/usb/cdns3/drd.c:340:17: sparse: got restricted __le32 *
drivers/usb/cdns3/drd.c:340:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem * @@ got restricted __le32 * @@
drivers/usb/cdns3/drd.c:340:17: sparse: expected void const volatile [noderef] __iomem *
drivers/usb/cdns3/drd.c:340:17: sparse: got restricted __le32 *
drivers/usb/cdns3/drd.c:345:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem * @@ got restricted __le32 * @@
drivers/usb/cdns3/drd.c:345:17: sparse: expected void const volatile [noderef] __iomem *
drivers/usb/cdns3/drd.c:345:17: sparse: got restricted __le32 *
drivers/usb/cdns3/drd.c:368:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem * @@ got restricted __le32 * @@
drivers/usb/cdns3/drd.c:368:17: sparse: expected void const volatile [noderef] __iomem *
drivers/usb/cdns3/drd.c:368:17: sparse: got restricted __le32 *
--
drivers/watchdog/kempld_wdt.c:349:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *p @@
drivers/watchdog/kempld_wdt.c:349:21: sparse: expected int const *__gu_addr
drivers/watchdog/kempld_wdt.c:349:21: sparse: got int [noderef] __user *p
>> drivers/watchdog/kempld_wdt.c:349:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user * @@ got int const *__gu_addr @@
>> drivers/watchdog/kempld_wdt.c:349:21: sparse: expected void const volatile [noderef] __user *
drivers/watchdog/kempld_wdt.c:349:21: sparse: got int const *__gu_addr
--
drivers/watchdog/pcwd_usb.c:375:37: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected char const *__gu_addr @@ got char const [noderef] __user * @@
drivers/watchdog/pcwd_usb.c:375:37: sparse: expected char const *__gu_addr
drivers/watchdog/pcwd_usb.c:375:37: sparse: got char const [noderef] __user *
>> drivers/watchdog/pcwd_usb.c:375:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user * @@ got char const *__gu_addr @@
>> drivers/watchdog/pcwd_usb.c:375:37: sparse: expected void const volatile [noderef] __user *
drivers/watchdog/pcwd_usb.c:375:37: sparse: got char const *__gu_addr
drivers/watchdog/pcwd_usb.c:423:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *p @@
drivers/watchdog/pcwd_usb.c:423:21: sparse: expected int const *__gu_addr
drivers/watchdog/pcwd_usb.c:423:21: sparse: got int [noderef] __user *p
>> drivers/watchdog/pcwd_usb.c:423:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user * @@ got int const *__gu_addr @@
drivers/watchdog/pcwd_usb.c:423:21: sparse: expected void const volatile [noderef] __user *
drivers/watchdog/pcwd_usb.c:423:21: sparse: got int const *__gu_addr
drivers/watchdog/pcwd_usb.c:447:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *p @@
drivers/watchdog/pcwd_usb.c:447:21: sparse: expected int const *__gu_addr
drivers/watchdog/pcwd_usb.c:447:21: sparse: got int [noderef] __user *p
drivers/watchdog/pcwd_usb.c:447:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user * @@ got int const *__gu_addr @@
drivers/watchdog/pcwd_usb.c:447:21: sparse: expected void const volatile [noderef] __user *
drivers/watchdog/pcwd_usb.c:447:21: sparse: got int const *__gu_addr
--
drivers/usb/class/usbtmc.c:584:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] [usertype] __user *arg @@
drivers/usb/class/usbtmc.c:584:13: sparse: expected unsigned int const *__gu_addr
drivers/usb/class/usbtmc.c:584:13: sparse: got unsigned int [noderef] [usertype] __user *arg
>> drivers/usb/class/usbtmc.c:584:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user * @@ got unsigned int const *__gu_addr @@
>> drivers/usb/class/usbtmc.c:584:13: sparse: expected void const volatile [noderef] __user *
drivers/usb/class/usbtmc.c:584:13: sparse: got unsigned int const *__gu_addr
drivers/usb/class/usbtmc.c:1963:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] [usertype] __user * @@
drivers/usb/class/usbtmc.c:1963:13: sparse: expected unsigned int const *__gu_addr
drivers/usb/class/usbtmc.c:1963:13: sparse: got unsigned int [noderef] [usertype] __user *
drivers/usb/class/usbtmc.c:1963:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user * @@ got unsigned int const *__gu_addr @@
drivers/usb/class/usbtmc.c:1963:13: sparse: expected void const volatile [noderef] __user *
drivers/usb/class/usbtmc.c:1963:13: sparse: got unsigned int const *__gu_addr
drivers/usb/class/usbtmc.c:2143:26: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned char const *__gu_addr @@ got unsigned char [noderef] __user * @@
drivers/usb/class/usbtmc.c:2143:26: sparse: expected unsigned char const *__gu_addr
drivers/usb/class/usbtmc.c:2143:26: sparse: got unsigned char [noderef] __user *
>> drivers/usb/class/usbtmc.c:2143:26: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user * @@ got unsigned char const *__gu_addr @@
drivers/usb/class/usbtmc.c:2143:26: sparse: expected void const volatile [noderef] __user *
drivers/usb/class/usbtmc.c:2143:26: sparse: got unsigned char const *__gu_addr
--
drivers/usb/image/mdc800.c:806:20: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected char const *__gu_addr @@ got char const [noderef] __user * @@
drivers/usb/image/mdc800.c:806:20: sparse: expected char const *__gu_addr
drivers/usb/image/mdc800.c:806:20: sparse: got char const [noderef] __user *
>> drivers/usb/image/mdc800.c:806:20: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user * @@ got char const *__gu_addr @@
>> drivers/usb/image/mdc800.c:806:20: sparse: expected void const volatile [noderef] __user *
drivers/usb/image/mdc800.c:806:20: sparse: got char const *__gu_addr
--
drivers/usb/misc/sisusbvga/sisusb.c:542:9: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short header @@ got restricted __le16 [usertype] @@
drivers/usb/misc/sisusbvga/sisusb.c:542:9: sparse: expected unsigned short header
drivers/usb/misc/sisusbvga/sisusb.c:542:9: sparse: got restricted __le16 [usertype]
drivers/usb/misc/sisusbvga/sisusb.c:542:9: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] address @@ got restricted __le32 [usertype] @@
drivers/usb/misc/sisusbvga/sisusb.c:542:9: sparse: expected unsigned int [usertype] address
drivers/usb/misc/sisusbvga/sisusb.c:542:9: sparse: got restricted __le32 [usertype]
drivers/usb/misc/sisusbvga/sisusb.c:542:9: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] data @@ got restricted __le32 [usertype] @@
drivers/usb/misc/sisusbvga/sisusb.c:542:9: sparse: expected unsigned int [usertype] data
drivers/usb/misc/sisusbvga/sisusb.c:542:9: sparse: got restricted __le32 [usertype]
drivers/usb/misc/sisusbvga/sisusb.c:578:9: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short header @@ got restricted __le16 [usertype] @@
drivers/usb/misc/sisusbvga/sisusb.c:578:9: sparse: expected unsigned short header
drivers/usb/misc/sisusbvga/sisusb.c:578:9: sparse: got restricted __le16 [usertype]
drivers/usb/misc/sisusbvga/sisusb.c:578:9: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] address @@ got restricted __le32 [usertype] @@
drivers/usb/misc/sisusbvga/sisusb.c:578:9: sparse: expected unsigned int [usertype] address
drivers/usb/misc/sisusbvga/sisusb.c:578:9: sparse: got restricted __le32 [usertype]
drivers/usb/misc/sisusbvga/sisusb.c:578:9: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] data @@ got restricted __le32 [usertype] @@
drivers/usb/misc/sisusbvga/sisusb.c:578:9: sparse: expected unsigned int [usertype] data
drivers/usb/misc/sisusbvga/sisusb.c:578:9: sparse: got restricted __le32 [usertype]
drivers/usb/misc/sisusbvga/sisusb.c:780:37: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned char const *__gu_addr @@ got unsigned char [noderef] [usertype] __user * @@
drivers/usb/misc/sisusbvga/sisusb.c:780:37: sparse: expected unsigned char const *__gu_addr
drivers/usb/misc/sisusbvga/sisusb.c:780:37: sparse: got unsigned char [noderef] [usertype] __user *
>> drivers/usb/misc/sisusbvga/sisusb.c:780:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user * @@ got unsigned char const *__gu_addr @@
>> drivers/usb/misc/sisusbvga/sisusb.c:780:37: sparse: expected void const volatile [noderef] __user *
drivers/usb/misc/sisusbvga/sisusb.c:780:37: sparse: got unsigned char const *__gu_addr
drivers/usb/misc/sisusbvga/sisusb.c:795:37: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned short const *__gu_addr @@ got unsigned short [noderef] [usertype] __user * @@
drivers/usb/misc/sisusbvga/sisusb.c:795:37: sparse: expected unsigned short const *__gu_addr
drivers/usb/misc/sisusbvga/sisusb.c:795:37: sparse: got unsigned short [noderef] [usertype] __user *
>> drivers/usb/misc/sisusbvga/sisusb.c:795:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user * @@ got unsigned short const *__gu_addr @@
drivers/usb/misc/sisusbvga/sisusb.c:795:37: sparse: expected void const volatile [noderef] __user *
drivers/usb/misc/sisusbvga/sisusb.c:795:37: sparse: got unsigned short const *__gu_addr
drivers/usb/misc/sisusbvga/sisusb.c:842:37: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] [usertype] __user * @@
drivers/usb/misc/sisusbvga/sisusb.c:842:37: sparse: expected unsigned int const *__gu_addr
drivers/usb/misc/sisusbvga/sisusb.c:842:37: sparse: got unsigned int [noderef] [usertype] __user *
>> drivers/usb/misc/sisusbvga/sisusb.c:842:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user * @@ got unsigned int const *__gu_addr @@
drivers/usb/misc/sisusbvga/sisusb.c:842:37: sparse: expected void const volatile [noderef] __user *
drivers/usb/misc/sisusbvga/sisusb.c:842:37: sparse: got unsigned int const *__gu_addr
drivers/usb/misc/sisusbvga/sisusb.c:2653:29: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned char const *__gu_addr @@ got unsigned char [noderef] [usertype] __user * @@
drivers/usb/misc/sisusbvga/sisusb.c:2653:29: sparse: expected unsigned char const *__gu_addr
drivers/usb/misc/sisusbvga/sisusb.c:2653:29: sparse: got unsigned char [noderef] [usertype] __user *
drivers/usb/misc/sisusbvga/sisusb.c:2653:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user * @@ got unsigned char const *__gu_addr @@
drivers/usb/misc/sisusbvga/sisusb.c:2653:29: sparse: expected void const volatile [noderef] __user *
drivers/usb/misc/sisusbvga/sisusb.c:2653:29: sparse: got unsigned char const *__gu_addr
drivers/usb/misc/sisusbvga/sisusb.c:2664:29: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned short const *__gu_addr @@ got unsigned short [noderef] [usertype] __user * @@
drivers/usb/misc/sisusbvga/sisusb.c:2664:29: sparse: expected unsigned short const *__gu_addr
drivers/usb/misc/sisusbvga/sisusb.c:2664:29: sparse: got unsigned short [noderef] [usertype] __user *
drivers/usb/misc/sisusbvga/sisusb.c:2664:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user * @@ got unsigned short const *__gu_addr @@
drivers/usb/misc/sisusbvga/sisusb.c:2664:29: sparse: expected void const volatile [noderef] __user *
drivers/usb/misc/sisusbvga/sisusb.c:2664:29: sparse: got unsigned short const *__gu_addr
drivers/usb/misc/sisusbvga/sisusb.c:2675:29: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] [usertype] __user * @@
drivers/usb/misc/sisusbvga/sisusb.c:2675:29: sparse: expected unsigned int const *__gu_addr
drivers/usb/misc/sisusbvga/sisusb.c:2675:29: sparse: got unsigned int [noderef] [usertype] __user *
drivers/usb/misc/sisusbvga/sisusb.c:2675:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user * @@ got unsigned int const *__gu_addr @@
drivers/usb/misc/sisusbvga/sisusb.c:2675:29: sparse: expected void const volatile [noderef] __user *
drivers/usb/misc/sisusbvga/sisusb.c:2675:29: sparse: got unsigned int const *__gu_addr
drivers/usb/misc/sisusbvga/sisusb.c:2740:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] [usertype] __user * @@
drivers/usb/misc/sisusbvga/sisusb.c:2740:21: sparse: expected unsigned int const *__gu_addr
drivers/usb/misc/sisusbvga/sisusb.c:2740:21: sparse: got unsigned int [noderef] [usertype] __user *
drivers/usb/misc/sisusbvga/sisusb.c:2740:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user * @@ got unsigned int const *__gu_addr @@
drivers/usb/misc/sisusbvga/sisusb.c:2740:21: sparse: expected void const volatile [noderef] __user *
drivers/usb/misc/sisusbvga/sisusb.c:2740:21: sparse: got unsigned int const *__gu_addr
--
>> drivers/fpga/dfl-fme-main.c:143:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user * @@
drivers/fpga/dfl-fme-main.c:143:13: sparse: expected int const *__gu_addr
>> drivers/fpga/dfl-fme-main.c:143:13: sparse: got int [noderef] __user *
>> drivers/fpga/dfl-fme-main.c:143:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user * @@ got int const *__gu_addr @@
>> drivers/fpga/dfl-fme-main.c:143:13: sparse: expected void const volatile [noderef] __user *
drivers/fpga/dfl-fme-main.c:143:13: sparse: got int const *__gu_addr
drivers/fpga/dfl-fme-main.c:155:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user * @@
drivers/fpga/dfl-fme-main.c:155:13: sparse: expected int const *__gu_addr
drivers/fpga/dfl-fme-main.c:155:13: sparse: got int [noderef] __user *
drivers/fpga/dfl-fme-main.c:155:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user * @@ got int const *__gu_addr @@
drivers/fpga/dfl-fme-main.c:155:13: sparse: expected void const volatile [noderef] __user *
drivers/fpga/dfl-fme-main.c:155:13: sparse: got int const *__gu_addr
vim +265 sound/core/hwdep.c
^1da177e4c3f41 Linus Torvalds 2005-04-16 255
d9a98de218ce18 Takashi Iwai 2005-11-17 256 static int snd_hwdep_control_ioctl(struct snd_card *card,
d9a98de218ce18 Takashi Iwai 2005-11-17 257 struct snd_ctl_file * control,
^1da177e4c3f41 Linus Torvalds 2005-04-16 258 unsigned int cmd, unsigned long arg)
^1da177e4c3f41 Linus Torvalds 2005-04-16 259 {
^1da177e4c3f41 Linus Torvalds 2005-04-16 260 switch (cmd) {
^1da177e4c3f41 Linus Torvalds 2005-04-16 261 case SNDRV_CTL_IOCTL_HWDEP_NEXT_DEVICE:
^1da177e4c3f41 Linus Torvalds 2005-04-16 262 {
^1da177e4c3f41 Linus Torvalds 2005-04-16 263 int device;
^1da177e4c3f41 Linus Torvalds 2005-04-16 264
^1da177e4c3f41 Linus Torvalds 2005-04-16 @265 if (get_user(device, (int __user *)arg))
^1da177e4c3f41 Linus Torvalds 2005-04-16 266 return -EFAULT;
1a60d4c5a0c402 Ingo Molnar 2006-01-16 267 mutex_lock(®ister_mutex);
f7b2bb8549e352 Dan Carpenter 2011-10-28 268
f7b2bb8549e352 Dan Carpenter 2011-10-28 269 if (device < 0)
f7b2bb8549e352 Dan Carpenter 2011-10-28 270 device = 0;
f7b2bb8549e352 Dan Carpenter 2011-10-28 271 else if (device < SNDRV_MINOR_HWDEPS)
f7b2bb8549e352 Dan Carpenter 2011-10-28 272 device++;
f7b2bb8549e352 Dan Carpenter 2011-10-28 273 else
f7b2bb8549e352 Dan Carpenter 2011-10-28 274 device = SNDRV_MINOR_HWDEPS;
f7b2bb8549e352 Dan Carpenter 2011-10-28 275
^1da177e4c3f41 Linus Torvalds 2005-04-16 276 while (device < SNDRV_MINOR_HWDEPS) {
f87135f56cb266 Clemens Ladisch 2005-11-20 277 if (snd_hwdep_search(card, device))
^1da177e4c3f41 Linus Torvalds 2005-04-16 278 break;
^1da177e4c3f41 Linus Torvalds 2005-04-16 279 device++;
^1da177e4c3f41 Linus Torvalds 2005-04-16 280 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 281 if (device >= SNDRV_MINOR_HWDEPS)
^1da177e4c3f41 Linus Torvalds 2005-04-16 282 device = -1;
1a60d4c5a0c402 Ingo Molnar 2006-01-16 283 mutex_unlock(®ister_mutex);
^1da177e4c3f41 Linus Torvalds 2005-04-16 284 if (put_user(device, (int __user *)arg))
^1da177e4c3f41 Linus Torvalds 2005-04-16 285 return -EFAULT;
^1da177e4c3f41 Linus Torvalds 2005-04-16 286 return 0;
^1da177e4c3f41 Linus Torvalds 2005-04-16 287 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 288 case SNDRV_CTL_IOCTL_HWDEP_INFO:
^1da177e4c3f41 Linus Torvalds 2005-04-16 289 {
d9a98de218ce18 Takashi Iwai 2005-11-17 290 struct snd_hwdep_info __user *info = (struct snd_hwdep_info __user *)arg;
f87135f56cb266 Clemens Ladisch 2005-11-20 291 int device, err;
d9a98de218ce18 Takashi Iwai 2005-11-17 292 struct snd_hwdep *hwdep;
^1da177e4c3f41 Linus Torvalds 2005-04-16 293
^1da177e4c3f41 Linus Torvalds 2005-04-16 @294 if (get_user(device, &info->device))
^1da177e4c3f41 Linus Torvalds 2005-04-16 295 return -EFAULT;
1a60d4c5a0c402 Ingo Molnar 2006-01-16 296 mutex_lock(®ister_mutex);
f87135f56cb266 Clemens Ladisch 2005-11-20 297 hwdep = snd_hwdep_search(card, device);
f87135f56cb266 Clemens Ladisch 2005-11-20 298 if (hwdep)
f87135f56cb266 Clemens Ladisch 2005-11-20 299 err = snd_hwdep_info(hwdep, info);
f87135f56cb266 Clemens Ladisch 2005-11-20 300 else
f87135f56cb266 Clemens Ladisch 2005-11-20 301 err = -ENXIO;
1a60d4c5a0c402 Ingo Molnar 2006-01-16 302 mutex_unlock(®ister_mutex);
f87135f56cb266 Clemens Ladisch 2005-11-20 303 return err;
^1da177e4c3f41 Linus Torvalds 2005-04-16 304 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 305 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 306 return -ENOIOCTLCMD;
^1da177e4c3f41 Linus Torvalds 2005-04-16 307 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 308
:::::: The code at line 265 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <torvalds@...970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@...970.osdl.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" (28322 bytes)
Powered by blists - more mailing lists