From: kernel test robot <lkp@intel.com>
To: Thomas Zimmermann <tzimmermann@suse.de>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [drm-drm-misc:drm-misc-next 1/7] drivers/gpu/drm/tiny/bochs.c:104:17: sparse: sparse: cast removes address space '__iomem' of expression
Date: Mon, 5 Jul 2021 23:30:01 +0800 [thread overview]
Message-ID: <202107052353.0MdC0yLh-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 4787 bytes --]
tree: git://anongit.freedesktop.org/drm/drm-misc drm-misc-next
head: d9cc564bf3aee6fcc1c717a19f9a207114510671
commit: 796c3e35ac16776ff479c2a7d9e3036bf5ffd73f [1/7] drm/bochs: Move to tiny/
config: riscv-randconfig-s031-20210705 (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.3-341-g8af24329-dirty
git remote add drm-drm-misc git://anongit.freedesktop.org/drm/drm-misc
git fetch --no-tags drm-drm-misc drm-misc-next
git checkout 796c3e35ac16776ff479c2a7d9e3036bf5ffd73f
# 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__' O=build_dir ARCH=riscv SHELL=/bin/bash drivers/gpu/drm/tiny/
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/gpu/drm/tiny/bochs.c:104:17: sparse: sparse: cast removes address space '__iomem' of expression
>> drivers/gpu/drm/tiny/bochs.c:104:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@
drivers/gpu/drm/tiny/bochs.c:104:17: sparse: expected void volatile [noderef] __iomem *addr
drivers/gpu/drm/tiny/bochs.c:104:17: sparse: got void *
drivers/gpu/drm/tiny/bochs.c:118:24: sparse: sparse: cast removes address space '__iomem' of expression
>> drivers/gpu/drm/tiny/bochs.c:118:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@
drivers/gpu/drm/tiny/bochs.c:118:24: sparse: expected void const volatile [noderef] __iomem *addr
drivers/gpu/drm/tiny/bochs.c:118:24: sparse: got void *
drivers/gpu/drm/tiny/bochs.c:131:17: sparse: sparse: cast removes address space '__iomem' of expression
drivers/gpu/drm/tiny/bochs.c:131:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@
drivers/gpu/drm/tiny/bochs.c:131:17: sparse: expected void volatile [noderef] __iomem *addr
drivers/gpu/drm/tiny/bochs.c:131:17: sparse: got void *
drivers/gpu/drm/tiny/bochs.c:132:23: sparse: sparse: cast removes address space '__iomem' of expression
drivers/gpu/drm/tiny/bochs.c:132:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@
drivers/gpu/drm/tiny/bochs.c:132:23: sparse: expected void const volatile [noderef] __iomem *addr
drivers/gpu/drm/tiny/bochs.c:132:23: sparse: got void *
drivers/gpu/drm/tiny/bochs.c:144:17: sparse: sparse: cast removes address space '__iomem' of expression
drivers/gpu/drm/tiny/bochs.c:144:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@
drivers/gpu/drm/tiny/bochs.c:144:17: sparse: expected void volatile [noderef] __iomem *addr
drivers/gpu/drm/tiny/bochs.c:144:17: sparse: got void *
drivers/gpu/drm/tiny/bochs.c:145:17: sparse: sparse: cast removes address space '__iomem' of expression
drivers/gpu/drm/tiny/bochs.c:145:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@
drivers/gpu/drm/tiny/bochs.c:145:17: sparse: expected void volatile [noderef] __iomem *addr
drivers/gpu/drm/tiny/bochs.c:145:17: sparse: got void *
vim +/__iomem +104 drivers/gpu/drm/tiny/bochs.c
93
94 static void bochs_vga_writeb(struct bochs_device *bochs, u16 ioport, u8 val)
95 {
96 if (WARN_ON(ioport < 0x3c0 || ioport > 0x3df))
97 return;
98
99 if (bochs->mmio) {
100 int offset = ioport - 0x3c0 + 0x400;
101
102 writeb(val, bochs->mmio + offset);
103 } else {
> 104 outb(val, ioport);
105 }
106 }
107
108 static u8 bochs_vga_readb(struct bochs_device *bochs, u16 ioport)
109 {
110 if (WARN_ON(ioport < 0x3c0 || ioport > 0x3df))
111 return 0xff;
112
113 if (bochs->mmio) {
114 int offset = ioport - 0x3c0 + 0x400;
115
116 return readb(bochs->mmio + offset);
117 } else {
> 118 return inb(ioport);
119 }
120 }
121
---
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: 28056 bytes --]
reply other threads:[~2021-07-05 15:32 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=202107052353.0MdC0yLh-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tzimmermann@suse.de \
/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®