[xlnx:xlnx_rebase_v5.4 458/1762] drivers/media/platform/xilinx/xilinx-multi-scaler.c:361:18: warning: passing argument 1 of 'ioread32' discards 'const' qualifier from pointer target type
kernel test robot
lkp at intel.com
Tue Jun 15 12:31:38 PDT 2021
tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.4
head: d128303e4c53bcf7775c46771bf64c71596f3303
commit: 31ff947476b863c4f59eb26baa654631e7b05a7b [458/1762] v4l: xilinx-multi-scaler: Remove volatile
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/Xilinx/linux-xlnx/commit/31ff947476b863c4f59eb26baa654631e7b05a7b
git remote add xlnx https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xlnx xlnx_rebase_v5.4
git checkout 31ff947476b863c4f59eb26baa654631e7b05a7b
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>
All warnings (new ones prefixed by >>):
drivers/media/platform/xilinx/xilinx-multi-scaler.c: In function 'xm2msc_readreg':
>> drivers/media/platform/xilinx/xilinx-multi-scaler.c:361:18: warning: passing argument 1 of 'ioread32' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
361 | return ioread32(addr);
| ^~~~
In file included from arch/x86/include/asm/io.h:229,
from arch/x86/include/asm/realmode.h:15,
from arch/x86/include/asm/acpi.h:16,
from arch/x86/include/asm/fixmap.h:29,
from arch/x86/include/asm/apic.h:11,
from arch/x86/include/asm/smp.h:13,
from include/linux/smp.h:68,
from include/linux/percpu.h:7,
from include/linux/arch_topology.h:9,
from include/linux/topology.h:30,
from include/linux/gfp.h:9,
from include/linux/xarray.h:14,
from include/linux/radix-tree.h:18,
from include/linux/fs.h:15,
from drivers/media/platform/xilinx/xilinx-multi-scaler.c:16:
include/asm-generic/iomap.h:32:30: note: expected 'void *' but argument is of type 'const void *'
32 | extern unsigned int ioread32(void __iomem *);
| ^~~~~~~~~~~~~~
In file included from include/linux/printk.h:332,
from include/linux/kernel.h:15,
from include/linux/delay.h:22,
from drivers/media/platform/xilinx/xilinx-multi-scaler.c:15:
drivers/media/platform/xilinx/xilinx-multi-scaler.c: In function 'xm2msc_parse_of':
drivers/media/platform/xilinx/xilinx-multi-scaler.c:1782:15: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 4 has type 'resource_size_t' {aka 'unsigned int'} [-Wformat=]
1782 | dev_dbg(dev, "IO Mem 0x%llx mapped at %p\n", res->start, xm2msc->regs);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:125:15: note: in definition of macro '__dynamic_func_call'
125 | func(&id, ##__VA_ARGS__); \
| ^~~~~~~~~~~
include/linux/dynamic_debug.h:157:2: note: in expansion of macro '_dynamic_func_call'
157 | _dynamic_func_call(fmt,__dynamic_dev_dbg, \
| ^~~~~~~~~~~~~~~~~~
include/linux/device.h:1751:2: note: in expansion of macro 'dynamic_dev_dbg'
1751 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~
include/linux/device.h:1751:23: note: in expansion of macro 'dev_fmt'
1751 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~
drivers/media/platform/xilinx/xilinx-multi-scaler.c:1782:2: note: in expansion of macro 'dev_dbg'
1782 | dev_dbg(dev, "IO Mem 0x%llx mapped at %p\n", res->start, xm2msc->regs);
| ^~~~~~~
drivers/media/platform/xilinx/xilinx-multi-scaler.c:1782:28: note: format string is defined here
1782 | dev_dbg(dev, "IO Mem 0x%llx mapped at %p\n", res->start, xm2msc->regs);
| ~~~^
| |
| long long unsigned int
| %x
vim +361 drivers/media/platform/xilinx/xilinx-multi-scaler.c
f5d1fac4b3ef01 Suresh Gupta 2018-09-17 358
31ff947476b863 Suresh Gupta 2018-10-12 359 static inline u32 xm2msc_readreg(const void __iomem *addr)
f5d1fac4b3ef01 Suresh Gupta 2018-09-17 360 {
f5d1fac4b3ef01 Suresh Gupta 2018-09-17 @361 return ioread32(addr);
f5d1fac4b3ef01 Suresh Gupta 2018-09-17 362 }
f5d1fac4b3ef01 Suresh Gupta 2018-09-17 363
:::::: The code at line 361 was first introduced by commit
:::::: f5d1fac4b3ef01a4f9a489e9be9a65964a5baf57 platform: xilinx: Add mem to mem Multi-Scaler driver (XM2MSC)
:::::: TO: Suresh Gupta <suresh.gupta at xilinx.com>
:::::: CC: Michal Simek <michal.simek at xilinx.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 60543 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20210616/149a8caf/attachment-0001.gz>
More information about the linux-arm-kernel
mailing list