* [microchip-ung-linux-upstream:v5.10-webstax 65/88] drivers/uio/uio_vcfw.c:65:38: warning: cast to pointer from integer of different size
@ 2020-12-14 14:20 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-12-14 14:20 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 4272 bytes --]
tree: https://github.com/microchip-ung/linux-upstream.git v5.10-webstax
head: 0c603c93d534e71ceee9485bfe1b0b75561efb0e
commit: b3739b5edd2763486c9791e8f25ba40b1f8b3423 [65/88] uio: vcoreiii: Add MSCC vcoreiii UIO drivers
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/microchip-ung/linux-upstream/commit/b3739b5edd2763486c9791e8f25ba40b1f8b3423
git remote add microchip-ung-linux-upstream https://github.com/microchip-ung/linux-upstream.git
git fetch --no-tags microchip-ung-linux-upstream v5.10-webstax
git checkout b3739b5edd2763486c9791e8f25ba40b1f8b3423
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
drivers/uio/uio_vcfw.c:26:34: error: array type has incomplete element type 'struct of_device_id'
26 | static const struct of_device_id vcfw_match[] = {
| ^~~~~~~~~~
drivers/uio/uio_vcfw.c:27:4: error: field name not in record or union initializer
27 | { .compatible = "mscc,vcfw_uio", },
| ^
drivers/uio/uio_vcfw.c:27:4: note: (near initialization for 'vcfw_match')
drivers/uio/uio_vcfw.c: In function 'vcfw_probe':
>> drivers/uio/uio_vcfw.c:65:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
65 | info->mem[0].internal_addr = (void *)regs_vcfwio->start;
| ^
drivers/uio/uio_vcfw.c:66:42: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
66 | info->mem[0].addr = virt_to_phys((void *)regs_vcfwio->start);
| ^
drivers/uio/uio_vcfw.c: At top level:
drivers/uio/uio_vcfw.c:100:25: error: implicit declaration of function 'of_match_ptr' [-Werror=implicit-function-declaration]
100 | .of_match_table = of_match_ptr(vcfw_match),
| ^~~~~~~~~~~~
drivers/uio/uio_vcfw.c:26:34: warning: 'vcfw_match' defined but not used [-Wunused-variable]
26 | static const struct of_device_id vcfw_match[] = {
| ^~~~~~~~~~
cc1: some warnings being treated as errors
vim +65 drivers/uio/uio_vcfw.c
43
44 static int vcfw_probe(struct platform_device *dev)
45 {
46 struct uio_info *info;
47 struct resource *regs_vcfwio;
48 int ret = -ENODEV;
49
50 info = kzalloc(sizeof(struct uio_info), GFP_KERNEL);
51 if (!info)
52 return -ENOMEM;
53
54 regs_vcfwio = platform_get_resource(dev, IORESOURCE_MEM, 0);
55 if (!regs_vcfwio) {
56 dev_info(&dev->dev, "No firmware I/O resource specified, not registering\n");
57 goto out_free;
58 }
59
60 if (!regs_vcfwio->start) {
61 dev_info(&dev->dev, "Null memory resource, not registering\n");
62 goto out_free;
63 }
64
> 65 info->mem[0].internal_addr = (void *)regs_vcfwio->start;
66 info->mem[0].addr = virt_to_phys((void *)regs_vcfwio->start);
67 info->mem[0].size = resource_size(regs_vcfwio);
68 info->mem[0].memtype = UIO_MEM_PHYS;
69
70 info->name = DRV_NAME;
71 info->version = DRV_VERSION;
72
73 ret = uio_register_device(&dev->dev, info);
74 if (ret < 0)
75 goto out_free;
76
77 platform_set_drvdata(dev, info);
78 dev_info(&dev->dev, "UIO map: %pR\n", regs_vcfwio);
79 return 0;
80
81 out_free:
82 vcfw_cleanup(dev, info);
83 return ret;
84 }
85
---
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: 66682 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-12-14 14:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-14 14:20 [microchip-ung-linux-upstream:v5.10-webstax 65/88] drivers/uio/uio_vcfw.c:65:38: warning: cast to pointer from integer of different size kernel 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.