drivers/tty/cyclades.c:3084:41: sparse: sparse: incorrect type in argument 1 (different address spaces)
From: kernel test robot
Date: Tue Aug 11 2020 - 08:02:09 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 00e4db51259a5f936fec1424b884f029479d3981
commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces
date: 8 weeks ago
config: mips-randconfig-s031-20200811 (attached as .config)
compiler: mips64-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-168-g9554805c-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@xxxxxxxxx>
sparse warnings: (new ones prefixed by >>)
drivers/tty/cyclades.c:3077:68: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct FIRM_ID *firm_id @@ got void [noderef] __iomem * @@
drivers/tty/cyclades.c:3077:68: sparse: expected struct FIRM_ID *firm_id
drivers/tty/cyclades.c:3077:68: sparse: got void [noderef] __iomem *
>> drivers/tty/cyclades.c:3084:41: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got unsigned int * @@
>> drivers/tty/cyclades.c:3084:41: sparse: expected void const volatile [noderef] __iomem *mem
drivers/tty/cyclades.c:3084:41: sparse: got unsigned int *
drivers/tty/cyclades.c:3083:34: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct ZFW_CTRL *zfw_ctrl @@ got void [noderef] __iomem * @@
drivers/tty/cyclades.c:3083:34: sparse: expected struct ZFW_CTRL *zfw_ctrl
drivers/tty/cyclades.c:3083:34: sparse: got void [noderef] __iomem *
drivers/tty/cyclades.c:3085:45: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct CH_CTRL [noderef] __iomem *ch_ctrl @@ got struct CH_CTRL * @@
drivers/tty/cyclades.c:3085:45: sparse: expected struct CH_CTRL [noderef] __iomem *ch_ctrl
drivers/tty/cyclades.c:3085:45: sparse: got struct CH_CTRL *
drivers/tty/cyclades.c:3086:46: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct BUF_CTRL [noderef] __iomem *buf_ctrl @@ got struct BUF_CTRL * @@
drivers/tty/cyclades.c:3086:46: sparse: expected struct BUF_CTRL [noderef] __iomem *buf_ctrl
drivers/tty/cyclades.c:3086:46: sparse: got struct BUF_CTRL *
drivers/tty/cyclades.c: note: in included file (through arch/mips/include/asm/mmiowb.h, include/linux/spinlock.h, include/linux/seqlock.h, ...):
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
arch/mips/include/asm/io.h:354:1: sparse: sparse: cast to restricted __le32
--
>> drivers/tty/serial/ip22zilog.c:114:22: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got unsigned char volatile * @@
>> drivers/tty/serial/ip22zilog.c:114:22: sparse: expected void volatile [noderef] __iomem *mem
drivers/tty/serial/ip22zilog.c:114:22: sparse: got unsigned char volatile *
>> drivers/tty/serial/ip22zilog.c:116:25: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got unsigned char volatile * @@
>> drivers/tty/serial/ip22zilog.c:116:25: sparse: expected void const volatile [noderef] __iomem *mem
drivers/tty/serial/ip22zilog.c:116:25: sparse: got unsigned char volatile *
drivers/tty/serial/ip22zilog.c:125:22: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got unsigned char volatile * @@
drivers/tty/serial/ip22zilog.c:125:22: sparse: expected void volatile [noderef] __iomem *mem
drivers/tty/serial/ip22zilog.c:125:22: sparse: got unsigned char volatile *
drivers/tty/serial/ip22zilog.c:127:24: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got unsigned char volatile * @@
drivers/tty/serial/ip22zilog.c:127:24: sparse: expected void volatile [noderef] __iomem *mem
drivers/tty/serial/ip22zilog.c:127:24: sparse: got unsigned char volatile *
drivers/tty/serial/ip22zilog.c:138:33: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got unsigned char volatile * @@
drivers/tty/serial/ip22zilog.c:138:33: sparse: expected void const volatile [noderef] __iomem *mem
drivers/tty/serial/ip22zilog.c:138:33: sparse: got unsigned char volatile *
drivers/tty/serial/ip22zilog.c:144:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got unsigned char volatile * @@
drivers/tty/serial/ip22zilog.c:144:24: sparse: expected void const volatile [noderef] __iomem *mem
drivers/tty/serial/ip22zilog.c:144:24: sparse: got unsigned char volatile *
drivers/tty/serial/ip22zilog.c:148:42: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got unsigned char volatile * @@
drivers/tty/serial/ip22zilog.c:148:42: sparse: expected void volatile [noderef] __iomem *mem
drivers/tty/serial/ip22zilog.c:148:42: sparse: got unsigned char volatile *
drivers/tty/serial/ip22zilog.c:170:26: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got unsigned char volatile * @@
drivers/tty/serial/ip22zilog.c:170:26: sparse: expected void volatile [noderef] __iomem *mem
drivers/tty/serial/ip22zilog.c:170:26: sparse: got unsigned char volatile *
drivers/tty/serial/ip22zilog.c:256:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got unsigned char volatile * @@
drivers/tty/serial/ip22zilog.c:256:29: sparse: expected void const volatile [noderef] __iomem *mem
drivers/tty/serial/ip22zilog.c:256:29: sparse: got unsigned char volatile *
drivers/tty/serial/ip22zilog.c:263:42: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got unsigned char volatile * @@
drivers/tty/serial/ip22zilog.c:263:42: sparse: expected void volatile [noderef] __iomem *mem
drivers/tty/serial/ip22zilog.c:263:42: sparse: got unsigned char volatile *
drivers/tty/serial/ip22zilog.c:268:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got unsigned char volatile * @@
drivers/tty/serial/ip22zilog.c:268:29: sparse: expected void const volatile [noderef] __iomem *mem
drivers/tty/serial/ip22zilog.c:268:29: sparse: got unsigned char volatile *
drivers/tty/serial/ip22zilog.c:318:25: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got unsigned char volatile * @@
drivers/tty/serial/ip22zilog.c:318:25: sparse: expected void const volatile [noderef] __iomem *mem
drivers/tty/serial/ip22zilog.c:318:25: sparse: got unsigned char volatile *
drivers/tty/serial/ip22zilog.c:321:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got unsigned char volatile * @@
drivers/tty/serial/ip22zilog.c:321:30: sparse: expected void volatile [noderef] __iomem *mem
drivers/tty/serial/ip22zilog.c:321:30: sparse: got unsigned char volatile *
drivers/tty/serial/ip22zilog.c:361:47: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got unsigned char volatile * @@
drivers/tty/serial/ip22zilog.c:361:47: sparse: expected void const volatile [noderef] __iomem *mem
drivers/tty/serial/ip22zilog.c:361:47: sparse: got unsigned char volatile *
drivers/tty/serial/ip22zilog.c:390:42: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got unsigned char volatile * @@
drivers/tty/serial/ip22zilog.c:390:42: sparse: expected void volatile [noderef] __iomem *mem
drivers/tty/serial/ip22zilog.c:390:42: sparse: got unsigned char volatile *
drivers/tty/serial/ip22zilog.c:408:40: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got unsigned char volatile * @@
drivers/tty/serial/ip22zilog.c:408:40: sparse: expected void volatile [noderef] __iomem *mem
drivers/tty/serial/ip22zilog.c:408:40: sparse: got unsigned char volatile *
drivers/tty/serial/ip22zilog.c:421:27: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got unsigned char volatile * @@
drivers/tty/serial/ip22zilog.c:421:27: sparse: expected void volatile [noderef] __iomem *mem
drivers/tty/serial/ip22zilog.c:421:27: sparse: got unsigned char volatile *
>> drivers/tty/serial/ip22zilog.c:432:27: sparse: sparse: cast removes address space '__iomem' of expression
drivers/tty/serial/ip22zilog.c:441:44: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got unsigned char volatile * @@
drivers/tty/serial/ip22zilog.c:441:44: sparse: expected void volatile [noderef] __iomem *mem
drivers/tty/serial/ip22zilog.c:441:44: sparse: got unsigned char volatile *
drivers/tty/serial/ip22zilog.c:459:27: sparse: sparse: cast removes address space '__iomem' of expression
drivers/tty/serial/ip22zilog.c:464:44: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got unsigned char volatile * @@
drivers/tty/serial/ip22zilog.c:464:44: sparse: expected void volatile [noderef] __iomem *mem
drivers/tty/serial/ip22zilog.c:464:44: sparse: got unsigned char volatile *
drivers/tty/serial/ip22zilog.c:546:41: sparse: sparse: cast removes address space '__iomem' of expression
drivers/tty/serial/ip22zilog.c:580:41: sparse: sparse: cast removes address space '__iomem' of expression
drivers/tty/serial/ip22zilog.c:586:25: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got unsigned char volatile * @@
drivers/tty/serial/ip22zilog.c:586:25: sparse: expected void const volatile [noderef] __iomem *mem
drivers/tty/serial/ip22zilog.c:586:25: sparse: got unsigned char volatile *
drivers/tty/serial/ip22zilog.c:597:39: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got unsigned char volatile * @@
drivers/tty/serial/ip22zilog.c:597:39: sparse: expected void volatile [noderef] __iomem *mem
drivers/tty/serial/ip22zilog.c:597:39: sparse: got unsigned char volatile *
drivers/tty/serial/ip22zilog.c:608:48: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got unsigned char volatile * @@
drivers/tty/serial/ip22zilog.c:608:48: sparse: expected void volatile [noderef] __iomem *mem
drivers/tty/serial/ip22zilog.c:608:48: sparse: got unsigned char volatile *
drivers/tty/serial/ip22zilog.c:629:19: sparse: sparse: cast removes address space '__iomem' of expression
drivers/tty/serial/ip22zilog.c:641:41: sparse: sparse: cast removes address space '__iomem' of expression
drivers/tty/serial/ip22zilog.c:658:41: sparse: sparse: cast removes address space '__iomem' of expression
drivers/tty/serial/ip22zilog.c:691:19: sparse: sparse: cast removes address space '__iomem' of expression
drivers/tty/serial/ip22zilog.c:701:27: sparse: sparse: cast removes address space '__iomem' of expression
drivers/tty/serial/ip22zilog.c:715:19: sparse: sparse: cast removes address space '__iomem' of expression
drivers/tty/serial/ip22zilog.c:722:34: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got unsigned char volatile * @@
drivers/tty/serial/ip22zilog.c:722:34: sparse: expected void const volatile [noderef] __iomem *mem
drivers/tty/serial/ip22zilog.c:722:34: sparse: got unsigned char volatile *
drivers/tty/serial/ip22zilog.c:782:19: sparse: sparse: cast removes address space '__iomem' of expression
drivers/tty/serial/ip22zilog.c:896:41: sparse: sparse: cast removes address space '__iomem' of expression
>> drivers/tty/serial/ip22zilog.c:1100:57: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected unsigned char [noderef] __iomem *membase @@ got char * @@
>> drivers/tty/serial/ip22zilog.c:1100:57: sparse: expected unsigned char [noderef] __iomem *membase
drivers/tty/serial/ip22zilog.c:1100:57: sparse: got char *
drivers/tty/serial/ip22zilog.c:1101:57: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected unsigned char [noderef] __iomem *membase @@ got char * @@
drivers/tty/serial/ip22zilog.c:1101:57: sparse: expected unsigned char [noderef] __iomem *membase
drivers/tty/serial/ip22zilog.c:1101:57: sparse: got char *
>> drivers/tty/serial/ip22zilog.c:1205:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@
>> drivers/tty/serial/ip22zilog.c:1205:29: sparse: expected void const volatile [noderef] __iomem *addr
drivers/tty/serial/ip22zilog.c:1205:29: sparse: got void *
drivers/tty/serial/ip22zilog.c:1209:34: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@
drivers/tty/serial/ip22zilog.c:1209:34: sparse: expected void const volatile [noderef] __iomem *addr
drivers/tty/serial/ip22zilog.c:1209:34: sparse: got void *
drivers/tty/serial/ip22zilog.c:494:19: sparse: sparse: cast removes address space '__iomem' of expression
drivers/tty/serial/ip22zilog.c:495:25: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got unsigned char volatile * @@
drivers/tty/serial/ip22zilog.c:495:25: sparse: expected void const volatile [noderef] __iomem *mem
drivers/tty/serial/ip22zilog.c:495:25: sparse: got unsigned char volatile *
drivers/tty/serial/ip22zilog.c:494:19: sparse: sparse: cast removes address space '__iomem' of expression
drivers/tty/serial/ip22zilog.c:495:25: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got unsigned char volatile * @@
drivers/tty/serial/ip22zilog.c:495:25: sparse: expected void const volatile [noderef] __iomem *mem
drivers/tty/serial/ip22zilog.c:495:25: sparse: got unsigned char volatile *
--
>> drivers/misc/mic/vop/vop_main.c:551:58: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got restricted __le64 * @@
>> drivers/misc/mic/vop/vop_main.c:551:58: sparse: expected void const volatile [noderef] __iomem *mem
drivers/misc/mic/vop/vop_main.c:551:58: sparse: got restricted __le64 *
drivers/misc/mic/vop/vop_main.c:560:49: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct mic_device_ctrl *dc @@ got struct mic_device_ctrl [noderef] __iomem *dc @@
drivers/misc/mic/vop/vop_main.c:560:49: sparse: expected struct mic_device_ctrl *dc
drivers/misc/mic/vop/vop_main.c:560:49: sparse: got struct mic_device_ctrl [noderef] __iomem *dc
drivers/misc/mic/vop/vop_main.c:579:49: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct mic_device_ctrl *dc @@ got struct mic_device_ctrl [noderef] __iomem *dc @@
drivers/misc/mic/vop/vop_main.c:579:49: sparse: expected struct mic_device_ctrl *dc
drivers/misc/mic/vop/vop_main.c:579:49: sparse: got struct mic_device_ctrl [noderef] __iomem *dc
drivers/misc/mic/vop/vop_main.c: note: in included file (through arch/mips/include/asm/mmiowb.h, include/linux/spinlock.h, include/linux/seqlock.h, ...):
arch/mips/include/asm/io.h:356:1: sparse: sparse: cast to restricted __le64
arch/mips/include/asm/io.h:356:1: sparse: sparse: cast to restricted __le64
arch/mips/include/asm/io.h:356:1: sparse: sparse: cast to restricted __le64
arch/mips/include/asm/io.h:356:1: sparse: sparse: cast to restricted __le64
arch/mips/include/asm/io.h:356:1: sparse: sparse: cast to restricted __le64
arch/mips/include/asm/io.h:356:1: sparse: sparse: cast to restricted __le64
arch/mips/include/asm/io.h:356:1: sparse: sparse: cast to restricted __le64
arch/mips/include/asm/io.h:356:1: sparse: sparse: cast to restricted __le64
arch/mips/include/asm/io.h:356:1: sparse: sparse: cast to restricted __le64
arch/mips/include/asm/io.h:356:1: sparse: sparse: cast to restricted __le64
arch/mips/include/asm/io.h:356:1: sparse: sparse: cast to restricted __le64
arch/mips/include/asm/io.h:356:1: sparse: sparse: cast to restricted __le64
arch/mips/include/asm/io.h:356:1: sparse: sparse: cast to restricted __le64
arch/mips/include/asm/io.h:356:1: sparse: sparse: cast to restricted __le64
arch/mips/include/asm/io.h:356:1: sparse: sparse: cast to restricted __le64
arch/mips/include/asm/io.h:356:1: sparse: sparse: cast to restricted __le64
arch/mips/include/asm/io.h:356:1: sparse: sparse: cast to restricted __le64
arch/mips/include/asm/io.h:356:1: sparse: sparse: cast to restricted __le64
arch/mips/include/asm/io.h:356:1: sparse: sparse: cast to restricted __le64
arch/mips/include/asm/io.h:356:1: sparse: sparse: cast to restricted __le64
arch/mips/include/asm/io.h:356:1: sparse: sparse: cast to restricted __le64
arch/mips/include/asm/io.h:356:1: sparse: sparse: cast to restricted __le64
arch/mips/include/asm/io.h:356:1: sparse: sparse: cast to restricted __le64
arch/mips/include/asm/io.h:356:1: sparse: sparse: cast to restricted __le64
arch/mips/include/asm/io.h:356:1: sparse: sparse: cast to restricted __le64
arch/mips/include/asm/io.h:356:1: sparse: sparse: cast to restricted __le64
arch/mips/include/asm/io.h:356:1: sparse: sparse: cast to restricted __le64
arch/mips/include/asm/io.h:356:1: sparse: sparse: cast to restricted __le64
arch/mips/include/asm/io.h:356:1: sparse: sparse: cast to restricted __le64
arch/mips/include/asm/io.h:356:1: sparse: sparse: cast to restricted __le64
vim +3084 drivers/tty/cyclades.c
f0737579424dd2 drivers/char/cyclades.c Jiri Slaby 2009-09-19 3040
^1da177e4c3f41 drivers/char/cyclades.c Linus Torvalds 2005-04-16 3041 /*
^1da177e4c3f41 drivers/char/cyclades.c Linus Torvalds 2005-04-16 3042 * ---------------------------------------------------------------------
^1da177e4c3f41 drivers/char/cyclades.c Linus Torvalds 2005-04-16 3043 * cy_init() and friends
^1da177e4c3f41 drivers/char/cyclades.c Linus Torvalds 2005-04-16 3044 *
^1da177e4c3f41 drivers/char/cyclades.c Linus Torvalds 2005-04-16 3045 * cy_init() is called at boot-time to initialize the serial driver.
^1da177e4c3f41 drivers/char/cyclades.c Linus Torvalds 2005-04-16 3046 * ---------------------------------------------------------------------
^1da177e4c3f41 drivers/char/cyclades.c Linus Torvalds 2005-04-16 3047 */
^1da177e4c3f41 drivers/char/cyclades.c Linus Torvalds 2005-04-16 3048
9671f09921d93e drivers/tty/cyclades.c Bill Pemberton 2012-11-19 3049 static int cy_init_card(struct cyclades_card *cinfo)
0809e2671d804f drivers/char/cyclades.c Jiri Slaby 2007-05-08 3050 {
0809e2671d804f drivers/char/cyclades.c Jiri Slaby 2007-05-08 3051 struct cyclades_port *info;
f0eefdc30e55e7 drivers/char/cyclades.c Jiri Slaby 2009-09-19 3052 unsigned int channel, port;
0809e2671d804f drivers/char/cyclades.c Jiri Slaby 2007-05-08 3053
3046d50ea58676 drivers/char/cyclades.c Jiri Slaby 2007-05-08 3054 spin_lock_init(&cinfo->card_lock);
0809e2671d804f drivers/char/cyclades.c Jiri Slaby 2007-05-08 3055 cinfo->intr_enabled = 0;
3046d50ea58676 drivers/char/cyclades.c Jiri Slaby 2007-05-08 3056
963118eef9e670 drivers/char/cyclades.c Jiri Slaby 2009-06-11 3057 cinfo->ports = kcalloc(cinfo->nports, sizeof(*cinfo->ports),
963118eef9e670 drivers/char/cyclades.c Jiri Slaby 2009-06-11 3058 GFP_KERNEL);
dd025c0c7a047b drivers/char/cyclades.c Jiri Slaby 2007-05-08 3059 if (cinfo->ports == NULL) {
dd025c0c7a047b drivers/char/cyclades.c Jiri Slaby 2007-05-08 3060 printk(KERN_ERR "Cyclades: cannot allocate ports\n");
dd025c0c7a047b drivers/char/cyclades.c Jiri Slaby 2007-05-08 3061 return -ENOMEM;
dd025c0c7a047b drivers/char/cyclades.c Jiri Slaby 2007-05-08 3062 }
dd025c0c7a047b drivers/char/cyclades.c Jiri Slaby 2007-05-08 3063
f0eefdc30e55e7 drivers/char/cyclades.c Jiri Slaby 2009-09-19 3064 for (channel = 0, port = cinfo->first_line; channel < cinfo->nports;
f0eefdc30e55e7 drivers/char/cyclades.c Jiri Slaby 2009-09-19 3065 channel++, port++) {
f0eefdc30e55e7 drivers/char/cyclades.c Jiri Slaby 2009-09-19 3066 info = &cinfo->ports[channel];
44b7d1b37f786c drivers/char/cyclades.c Alan Cox 2008-07-16 3067 tty_port_init(&info->port);
0809e2671d804f drivers/char/cyclades.c Jiri Slaby 2007-05-08 3068 info->magic = CYCLADES_MAGIC;
875b206b5f4971 drivers/char/cyclades.c Jiri Slaby 2007-05-08 3069 info->card = cinfo;
0809e2671d804f drivers/char/cyclades.c Jiri Slaby 2007-05-08 3070 info->line = port;
3046d50ea58676 drivers/char/cyclades.c Jiri Slaby 2007-05-08 3071
44b7d1b37f786c drivers/char/cyclades.c Alan Cox 2008-07-16 3072 info->port.closing_wait = CLOSING_WAIT_DELAY;
44b7d1b37f786c drivers/char/cyclades.c Alan Cox 2008-07-16 3073 info->port.close_delay = 5 * HZ / 10;
2c7fea992104b5 drivers/char/cyclades.c Jiri Slaby 2007-05-08 3074 init_completion(&info->shutdown_wait);
3046d50ea58676 drivers/char/cyclades.c Jiri Slaby 2007-05-08 3075
2693f485c22d18 drivers/char/cyclades.c Jiri Slaby 2009-06-11 3076 if (cy_is_Z(cinfo)) {
f0eefdc30e55e7 drivers/char/cyclades.c Jiri Slaby 2009-09-19 3077 struct FIRM_ID *firm_id = cinfo->base_addr + ID_ADDRESS;
f0eefdc30e55e7 drivers/char/cyclades.c Jiri Slaby 2009-09-19 3078 struct ZFW_CTRL *zfw_ctrl;
f0eefdc30e55e7 drivers/char/cyclades.c Jiri Slaby 2009-09-19 3079
f0737579424dd2 drivers/char/cyclades.c Jiri Slaby 2009-09-19 3080 info->port.ops = &cyz_port_ops;
3046d50ea58676 drivers/char/cyclades.c Jiri Slaby 2007-05-08 3081 info->type = PORT_STARTECH;
f0eefdc30e55e7 drivers/char/cyclades.c Jiri Slaby 2009-09-19 3082
f0eefdc30e55e7 drivers/char/cyclades.c Jiri Slaby 2009-09-19 3083 zfw_ctrl = cinfo->base_addr +
f0eefdc30e55e7 drivers/char/cyclades.c Jiri Slaby 2009-09-19 @3084 (readl(&firm_id->zfwctrl_addr) & 0xfffff);
f0eefdc30e55e7 drivers/char/cyclades.c Jiri Slaby 2009-09-19 3085 info->u.cyz.ch_ctrl = &zfw_ctrl->ch_ctrl[channel];
f0eefdc30e55e7 drivers/char/cyclades.c Jiri Slaby 2009-09-19 3086 info->u.cyz.buf_ctrl = &zfw_ctrl->buf_ctrl[channel];
f0eefdc30e55e7 drivers/char/cyclades.c Jiri Slaby 2009-09-19 3087
101b81590d8df0 drivers/char/cyclades.c Jiri Slaby 2009-06-11 3088 if (cinfo->hw_ver == ZO_V1)
3046d50ea58676 drivers/char/cyclades.c Jiri Slaby 2007-05-08 3089 info->xmit_fifo_size = CYZ_FIFO_SIZE;
3046d50ea58676 drivers/char/cyclades.c Jiri Slaby 2007-05-08 3090 else
3046d50ea58676 drivers/char/cyclades.c Jiri Slaby 2007-05-08 3091 info->xmit_fifo_size = 4 * CYZ_FIFO_SIZE;
0809e2671d804f drivers/char/cyclades.c Jiri Slaby 2007-05-08 3092 #ifdef CONFIG_CYZ_INTR
a8497b31fee650 drivers/tty/cyclades.c Kees Cook 2017-10-24 3093 timer_setup(&info->rx_full_timer, cyz_rx_restart, 0);
0809e2671d804f drivers/char/cyclades.c Jiri Slaby 2007-05-08 3094 #endif
3046d50ea58676 drivers/char/cyclades.c Jiri Slaby 2007-05-08 3095 } else {
f0eefdc30e55e7 drivers/char/cyclades.c Jiri Slaby 2009-09-19 3096 unsigned short chip_number;
963118eef9e670 drivers/char/cyclades.c Jiri Slaby 2009-06-11 3097 int index = cinfo->bus_index;
f0eefdc30e55e7 drivers/char/cyclades.c Jiri Slaby 2009-09-19 3098
f0737579424dd2 drivers/char/cyclades.c Jiri Slaby 2009-09-19 3099 info->port.ops = &cyy_port_ops;
0809e2671d804f drivers/char/cyclades.c Jiri Slaby 2007-05-08 3100 info->type = PORT_CIRRUS;
0809e2671d804f drivers/char/cyclades.c Jiri Slaby 2007-05-08 3101 info->xmit_fifo_size = CyMAX_CHAR_FIFO;
3046d50ea58676 drivers/char/cyclades.c Jiri Slaby 2007-05-08 3102 info->cor1 = CyPARITY_NONE | Cy_1_STOP | Cy_8_BITS;
0809e2671d804f drivers/char/cyclades.c Jiri Slaby 2007-05-08 3103 info->cor2 = CyETC;
0809e2671d804f drivers/char/cyclades.c Jiri Slaby 2007-05-08 3104 info->cor3 = 0x08; /* _very_ small rcv threshold */
3046d50ea58676 drivers/char/cyclades.c Jiri Slaby 2007-05-08 3105
f0eefdc30e55e7 drivers/char/cyclades.c Jiri Slaby 2009-09-19 3106 chip_number = channel / CyPORTS_PER_CHIP;
3aeea5b9221008 drivers/char/cyclades.c Jiri Slaby 2009-09-19 3107 info->u.cyy.base_addr = cinfo->base_addr +
3aeea5b9221008 drivers/char/cyclades.c Jiri Slaby 2009-09-19 3108 (cy_chip_offset[chip_number] << index);
3aeea5b9221008 drivers/char/cyclades.c Jiri Slaby 2009-09-19 3109 info->chip_rev = cyy_readb(info, CyGFRCR);
15ed6cc0ba6b7b drivers/char/cyclades.c Alan Cox 2008-04-30 3110
15ed6cc0ba6b7b drivers/char/cyclades.c Alan Cox 2008-04-30 3111 if (info->chip_rev >= CD1400_REV_J) {
0809e2671d804f drivers/char/cyclades.c Jiri Slaby 2007-05-08 3112 /* It is a CD1400 rev. J or later */
0809e2671d804f drivers/char/cyclades.c Jiri Slaby 2007-05-08 3113 info->tbpr = baud_bpr_60[13]; /* Tx BPR */
0809e2671d804f drivers/char/cyclades.c Jiri Slaby 2007-05-08 3114 info->tco = baud_co_60[13]; /* Tx CO */
0809e2671d804f drivers/char/cyclades.c Jiri Slaby 2007-05-08 3115 info->rbpr = baud_bpr_60[13]; /* Rx BPR */
0809e2671d804f drivers/char/cyclades.c Jiri Slaby 2007-05-08 3116 info->rco = baud_co_60[13]; /* Rx CO */
0809e2671d804f drivers/char/cyclades.c Jiri Slaby 2007-05-08 3117 info->rtsdtr_inv = 1;
0809e2671d804f drivers/char/cyclades.c Jiri Slaby 2007-05-08 3118 } else {
0809e2671d804f drivers/char/cyclades.c Jiri Slaby 2007-05-08 3119 info->tbpr = baud_bpr_25[13]; /* Tx BPR */
0809e2671d804f drivers/char/cyclades.c Jiri Slaby 2007-05-08 3120 info->tco = baud_co_25[13]; /* Tx CO */
0809e2671d804f drivers/char/cyclades.c Jiri Slaby 2007-05-08 3121 info->rbpr = baud_bpr_25[13]; /* Rx BPR */
0809e2671d804f drivers/char/cyclades.c Jiri Slaby 2007-05-08 3122 info->rco = baud_co_25[13]; /* Rx CO */
0809e2671d804f drivers/char/cyclades.c Jiri Slaby 2007-05-08 3123 info->rtsdtr_inv = 0;
0809e2671d804f drivers/char/cyclades.c Jiri Slaby 2007-05-08 3124 }
3046d50ea58676 drivers/char/cyclades.c Jiri Slaby 2007-05-08 3125 info->read_status_mask = CyTIMEOUT | CySPECHAR |
3046d50ea58676 drivers/char/cyclades.c Jiri Slaby 2007-05-08 3126 CyBREAK | CyPARITY | CyFRAME | CyOVERRUN;
0809e2671d804f drivers/char/cyclades.c Jiri Slaby 2007-05-08 3127 }
3046d50ea58676 drivers/char/cyclades.c Jiri Slaby 2007-05-08 3128
0809e2671d804f drivers/char/cyclades.c Jiri Slaby 2007-05-08 3129 }
3046d50ea58676 drivers/char/cyclades.c Jiri Slaby 2007-05-08 3130
:::::: The code at line 3084 was first introduced by commit
:::::: f0eefdc30e55e761facf645bd1be1339b21c30e6 cyclades: avoid addresses recomputation
:::::: TO: Jiri Slaby <jirislaby@xxxxxxxxx>
:::::: CC: Live-CD User <linux@xxxxxxxxxx>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip