From: kernel test robot <lkp@intel.com>
To: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: drivers/tty/serial/8250/8250_fintek.c:104:9: sparse: sparse: cast removes address space '__iomem' of expression
Date: Sun, 28 Jun 2020 08:59:46 +0800 [thread overview]
Message-ID: <202006280839.maZO7VGA%lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 8556 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 42afe7d1c6ef77212250af3459e549d1a944cc8a
commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces
date: 9 days ago
config: riscv-randconfig-s031-20200628 (attached as .config)
compiler: riscv32-linux-gcc (GCC) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.2-dirty
git checkout 670d0a4b10704667765f7d18f7592993d02783aa
# save the attached .config to linux build tree
make W=1 C=1 ARCH=riscv CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/tty/serial/8250/8250_fintek.c:104:9: sparse: sparse: cast removes address space '__iomem' of expression
>> drivers/tty/serial/8250/8250_fintek.c:104:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@
>> drivers/tty/serial/8250/8250_fintek.c:104:9: sparse: expected void volatile [noderef] __iomem *addr
drivers/tty/serial/8250/8250_fintek.c:104:9: sparse: got void *
drivers/tty/serial/8250/8250_fintek.c:105:16: sparse: sparse: cast removes address space '__iomem' of expression
>> drivers/tty/serial/8250/8250_fintek.c:105:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@
>> drivers/tty/serial/8250/8250_fintek.c:105:16: sparse: expected void const volatile [noderef] __iomem *addr
drivers/tty/serial/8250/8250_fintek.c:105:16: sparse: got void *
drivers/tty/serial/8250/8250_fintek.c:110:9: sparse: sparse: cast removes address space '__iomem' of expression
drivers/tty/serial/8250/8250_fintek.c:110:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@
drivers/tty/serial/8250/8250_fintek.c:110:9: sparse: expected void volatile [noderef] __iomem *addr
drivers/tty/serial/8250/8250_fintek.c:110:9: sparse: got void *
drivers/tty/serial/8250/8250_fintek.c:111:9: sparse: sparse: cast removes address space '__iomem' of expression
drivers/tty/serial/8250/8250_fintek.c:111:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@
drivers/tty/serial/8250/8250_fintek.c:111:9: sparse: expected void volatile [noderef] __iomem *addr
drivers/tty/serial/8250/8250_fintek.c:111:9: sparse: got void *
drivers/tty/serial/8250/8250_fintek.c:129:9: sparse: sparse: cast removes address space '__iomem' of expression
drivers/tty/serial/8250/8250_fintek.c:129:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@
drivers/tty/serial/8250/8250_fintek.c:129:9: sparse: expected void volatile [noderef] __iomem *addr
drivers/tty/serial/8250/8250_fintek.c:129:9: sparse: got void *
drivers/tty/serial/8250/8250_fintek.c:131:9: sparse: sparse: cast removes address space '__iomem' of expression
drivers/tty/serial/8250/8250_fintek.c:131:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@
drivers/tty/serial/8250/8250_fintek.c:131:9: sparse: expected void volatile [noderef] __iomem *addr
drivers/tty/serial/8250/8250_fintek.c:131:9: sparse: got void *
drivers/tty/serial/8250/8250_fintek.c:132:9: sparse: sparse: cast removes address space '__iomem' of expression
drivers/tty/serial/8250/8250_fintek.c:132:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@
drivers/tty/serial/8250/8250_fintek.c:132:9: sparse: expected void volatile [noderef] __iomem *addr
drivers/tty/serial/8250/8250_fintek.c:132:9: sparse: got void *
drivers/tty/serial/8250/8250_fintek.c:139:9: sparse: sparse: cast removes address space '__iomem' of expression
drivers/tty/serial/8250/8250_fintek.c:139:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@
drivers/tty/serial/8250/8250_fintek.c:139:9: sparse: expected void volatile [noderef] __iomem *addr
drivers/tty/serial/8250/8250_fintek.c:139:9: sparse: got void *
--
>> drivers/net/can/cc770/cc770_isa.c:125:16: sparse: sparse: cast removes address space '__iomem' of expression
>> drivers/net/can/cc770/cc770_isa.c:125:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@
>> drivers/net/can/cc770/cc770_isa.c:125:16: sparse: expected void const volatile [noderef] __iomem *addr
drivers/net/can/cc770/cc770_isa.c:125:16: sparse: got void *
drivers/net/can/cc770/cc770_isa.c:131:9: sparse: sparse: cast removes address space '__iomem' of expression
>> drivers/net/can/cc770/cc770_isa.c:131:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@
>> drivers/net/can/cc770/cc770_isa.c:131:9: sparse: expected void volatile [noderef] __iomem *addr
drivers/net/can/cc770/cc770_isa.c:131:9: sparse: got void *
drivers/net/can/cc770/cc770_isa.c:142:9: sparse: sparse: cast removes address space '__iomem' of expression
drivers/net/can/cc770/cc770_isa.c:142:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@
drivers/net/can/cc770/cc770_isa.c:142:9: sparse: expected void volatile [noderef] __iomem *addr
drivers/net/can/cc770/cc770_isa.c:142:9: sparse: got void *
drivers/net/can/cc770/cc770_isa.c:143:15: sparse: sparse: cast removes address space '__iomem' of expression
drivers/net/can/cc770/cc770_isa.c:143:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@
drivers/net/can/cc770/cc770_isa.c:143:15: sparse: expected void const volatile [noderef] __iomem *addr
drivers/net/can/cc770/cc770_isa.c:143:15: sparse: got void *
drivers/net/can/cc770/cc770_isa.c:156:9: sparse: sparse: cast removes address space '__iomem' of expression
drivers/net/can/cc770/cc770_isa.c:156:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@
drivers/net/can/cc770/cc770_isa.c:156:9: sparse: expected void volatile [noderef] __iomem *addr
drivers/net/can/cc770/cc770_isa.c:156:9: sparse: got void *
drivers/net/can/cc770/cc770_isa.c:157:9: sparse: sparse: cast removes address space '__iomem' of expression
drivers/net/can/cc770/cc770_isa.c:157:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@
drivers/net/can/cc770/cc770_isa.c:157:9: sparse: expected void volatile [noderef] __iomem *addr
drivers/net/can/cc770/cc770_isa.c:157:9: sparse: got void *
vim +/__iomem +104 drivers/tty/serial/8250/8250_fintek.c
92a5f11a1a3357 Ricardo Ribalda 2015-06-16 101
f1232ac229cc07 Ji-Ze Hong (Peter Hong 2016-10-04 102) static u8 sio_read_reg(struct fintek_8250 *pdata, u8 reg)
f1232ac229cc07 Ji-Ze Hong (Peter Hong 2016-10-04 103) {
f1232ac229cc07 Ji-Ze Hong (Peter Hong 2016-10-04 @104) outb(reg, pdata->base_port + ADDR_PORT);
f1232ac229cc07 Ji-Ze Hong (Peter Hong 2016-10-04 @105) return inb(pdata->base_port + DATA_PORT);
f1232ac229cc07 Ji-Ze Hong (Peter Hong 2016-10-04 106) }
f1232ac229cc07 Ji-Ze Hong (Peter Hong 2016-10-04 107)
:::::: The code at line 104 was first introduced by commit
:::::: f1232ac229cc078206a72ca365c3526e37ea1ae5 serial: 8250_fintek: Refactoring read/write method
:::::: TO: Ji-Ze Hong (Peter Hong) <hpeter@gmail.com>
:::::: CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 26632 bytes --]
reply other threads:[~2020-06-28 1:04 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202006280839.maZO7VGA%lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luc.vanoostenryck@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®