* [hch-misc:sh-dma-remap 5/10] drivers/clocksource/sh_mtu2.c:380:55: error: macro "ioremap" requires 3 arguments, but only 2 given
@ 2020-03-23 13:40 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-03-23 13:40 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 9594 bytes --]
tree: git://git.infradead.org/users/hch/misc.git sh-dma-remap
head: db4bc89a20a978a2da3b1a6febb0eaa86a9fb53b
commit: 1684e44904229abacf0d4d7ab5e0d3d0fdbe2f32 [5/10] sh: merge __ioremap_mode and ioremap_prot
config: sh-rsk7269_defconfig (attached as .config)
compiler: sh4-linux-gcc (GCC) 9.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 1684e44904229abacf0d4d7ab5e0d3d0fdbe2f32
# save the attached .config to linux build tree
GCC_VERSION=9.2.0 make.cross ARCH=sh
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
drivers/clocksource/sh_mtu2.c: In function 'sh_mtu2_map_memory':
>> drivers/clocksource/sh_mtu2.c:380:55: error: macro "ioremap" requires 3 arguments, but only 2 given
380 | mtu->mapbase = ioremap(res->start, resource_size(res));
| ^
In file included from include/linux/clocksource.h:21,
from include/linux/clockchips.h:14,
from drivers/clocksource/sh_mtu2.c:9:
arch/sh/include/asm/io.h:333: note: macro "ioremap" defined here
333 | #define ioremap(offset, size, prot) ((void __iomem *)(offset))
|
>> drivers/clocksource/sh_mtu2.c:380:17: error: 'ioremap' undeclared (first use in this function)
380 | mtu->mapbase = ioremap(res->start, resource_size(res));
| ^~~~~~~
drivers/clocksource/sh_mtu2.c:380:17: note: each undeclared identifier is reported only once for each function it appears in
--
drivers/clocksource/sh_cmt.c: In function 'sh_cmt_map_memory':
>> drivers/clocksource/sh_cmt.c:908:55: error: macro "ioremap" requires 3 arguments, but only 2 given
908 | cmt->mapbase = ioremap(mem->start, resource_size(mem));
| ^
In file included from include/linux/clocksource.h:21,
from include/linux/clockchips.h:14,
from drivers/clocksource/sh_cmt.c:9:
arch/sh/include/asm/io.h:333: note: macro "ioremap" defined here
333 | #define ioremap(offset, size, prot) ((void __iomem *)(offset))
|
>> drivers/clocksource/sh_cmt.c:908:17: error: 'ioremap' undeclared (first use in this function)
908 | cmt->mapbase = ioremap(mem->start, resource_size(mem));
| ^~~~~~~
drivers/clocksource/sh_cmt.c:908:17: note: each undeclared identifier is reported only once for each function it appears in
--
drivers/usb/host/r8a66597-hcd.c: In function 'r8a66597_probe':
>> drivers/usb/host/r8a66597-hcd.c:2432:46: error: macro "ioremap" requires 3 arguments, but only 2 given
2432 | reg = ioremap(res->start, resource_size(res));
| ^
In file included from include/linux/io.h:13,
from include/linux/irq.h:20,
from arch/sh/include/asm/hardirq.h:6,
from include/linux/hardirq.h:9,
from include/linux/interrupt.h:11,
from drivers/usb/host/r8a66597-hcd.c:20:
arch/sh/include/asm/io.h:333: note: macro "ioremap" defined here
333 | #define ioremap(offset, size, prot) ((void __iomem *)(offset))
|
>> drivers/usb/host/r8a66597-hcd.c:2432:8: error: 'ioremap' undeclared (first use in this function)
2432 | reg = ioremap(res->start, resource_size(res));
| ^~~~~~~
drivers/usb/host/r8a66597-hcd.c:2432:8: note: each undeclared identifier is reported only once for each function it appears in
--
drivers/sh/intc/core.c: In function 'register_intc_controller':
>> drivers/sh/intc/core.c:217:27: error: macro "ioremap" requires 3 arguments, but only 2 given
217 | resource_size(res));
| ^
In file included from include/linux/io.h:13,
from include/linux/irq.h:20,
from drivers/sh/intc/core.c:22:
arch/sh/include/asm/io.h:333: note: macro "ioremap" defined here
333 | #define ioremap(offset, size, prot) ((void __iomem *)(offset))
|
>> drivers/sh/intc/core.c:216:24: error: 'ioremap' undeclared (first use in this function)
216 | d->window[k].virt = ioremap(res->start,
| ^~~~~~~
drivers/sh/intc/core.c:216:24: note: each undeclared identifier is reported only once for each function it appears in
--
drivers/sh/clk/core.c: In function 'clk_establish_mapping':
>> drivers/sh/clk/core.c:371:54: error: macro "ioremap" requires 3 arguments, but only 2 given
371 | mapping->base = ioremap(mapping->phys, mapping->len);
| ^
In file included from include/linux/io.h:13,
from drivers/sh/clk/core.c:27:
arch/sh/include/asm/io.h:333: note: macro "ioremap" defined here
333 | #define ioremap(offset, size, prot) ((void __iomem *)(offset))
|
>> drivers/sh/clk/core.c:371:19: error: 'ioremap' undeclared (first use in this function)
371 | mapping->base = ioremap(mapping->phys, mapping->len);
| ^~~~~~~
drivers/sh/clk/core.c:371:19: note: each undeclared identifier is reported only once for each function it appears in
--
drivers/net/ethernet/smsc/smsc911x.c: In function 'smsc911x_drv_probe':
>> drivers/net/ethernet/smsc/smsc911x.c:2448:46: error: macro "ioremap" requires 3 arguments, but only 2 given
2448 | pdata->ioaddr = ioremap(res->start, res_size);
| ^
In file included from include/linux/scatterlist.h:9,
from include/linux/dma-mapping.h:11,
from include/linux/skbuff.h:31,
from include/linux/if_ether.h:19,
from include/linux/etherdevice.h:20,
from drivers/net/ethernet/smsc/smsc911x.c:25:
arch/sh/include/asm/io.h:333: note: macro "ioremap" defined here
333 | #define ioremap(offset, size, prot) ((void __iomem *)(offset))
|
>> drivers/net/ethernet/smsc/smsc911x.c:2448:18: error: 'ioremap' undeclared (first use in this function)
2448 | pdata->ioaddr = ioremap(res->start, res_size);
| ^~~~~~~
drivers/net/ethernet/smsc/smsc911x.c:2448:18: note: each undeclared identifier is reported only once for each function it appears in
--
drivers/tty/serial/sh-sci.c: In function 'sci_remap_port':
>> drivers/tty/serial/sh-sci.c:2679:57: error: macro "ioremap" requires 3 arguments, but only 2 given
2679 | port->membase = ioremap(port->mapbase, sport->reg_size);
| ^
In file included from include/linux/scatterlist.h:9,
from include/linux/dmaengine.h:12,
from drivers/tty/serial/sh-sci.c:25:
arch/sh/include/asm/io.h:333: note: macro "ioremap" defined here
333 | #define ioremap(offset, size, prot) ((void __iomem *)(offset))
|
>> drivers/tty/serial/sh-sci.c:2679:19: error: 'ioremap' undeclared (first use in this function)
2679 | port->membase = ioremap(port->mapbase, sport->reg_size);
| ^~~~~~~
drivers/tty/serial/sh-sci.c:2679:19: note: each undeclared identifier is reported only once for each function it appears in
drivers/tty/serial/sh-sci.c:2670:19: warning: unused variable 'sport' [-Wunused-variable]
2670 | struct sci_port *sport = to_sci_port(port);
| ^~~~~
vim +/ioremap +380 drivers/clocksource/sh_mtu2.c
2e1a53265d55000 Laurent Pinchart 2014-03-04 369
faf3f4f8c805f5f Laurent Pinchart 2014-03-04 370 static int sh_mtu2_map_memory(struct sh_mtu2_device *mtu)
d5ed4c2e5ce9f5f Magnus Damm 2009-04-30 371 {
d5ed4c2e5ce9f5f Magnus Damm 2009-04-30 372 struct resource *res;
d5ed4c2e5ce9f5f Magnus Damm 2009-04-30 373
7dad72de1b475d0 Laurent Pinchart 2014-03-04 374 res = platform_get_resource(mtu->pdev, IORESOURCE_MEM, 0);
d5ed4c2e5ce9f5f Magnus Damm 2009-04-30 375 if (!res) {
7dad72de1b475d0 Laurent Pinchart 2014-03-04 376 dev_err(&mtu->pdev->dev, "failed to get I/O memory\n");
faf3f4f8c805f5f Laurent Pinchart 2014-03-04 377 return -ENXIO;
d5ed4c2e5ce9f5f Magnus Damm 2009-04-30 378 }
d5ed4c2e5ce9f5f Magnus Damm 2009-04-30 379
4bdc0d676a64314 Christoph Hellwig 2020-01-06 @380 mtu->mapbase = ioremap(res->start, resource_size(res));
faf3f4f8c805f5f Laurent Pinchart 2014-03-04 381 if (mtu->mapbase == NULL)
faf3f4f8c805f5f Laurent Pinchart 2014-03-04 382 return -ENXIO;
faf3f4f8c805f5f Laurent Pinchart 2014-03-04 383
faf3f4f8c805f5f Laurent Pinchart 2014-03-04 384 return 0;
faf3f4f8c805f5f Laurent Pinchart 2014-03-04 385 }
faf3f4f8c805f5f Laurent Pinchart 2014-03-04 386
:::::: The code at line 380 was first introduced by commit
:::::: 4bdc0d676a643140bdf17dbf7eafedee3d496a3c remove ioremap_nocache and devm_ioremap_nocache
:::::: TO: Christoph Hellwig <hch@lst.de>
:::::: CC: Christoph Hellwig <hch@lst.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 11735 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-03-23 13:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-23 13:40 [hch-misc:sh-dma-remap 5/10] drivers/clocksource/sh_mtu2.c:380:55: error: macro "ioremap" requires 3 arguments, but only 2 given kbuild test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.