[microchip-ung-linux-upstream:v5.10-webstax 61/88] drivers/mfd/microchip_sparx5_pci.c:491:11: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 7 has type 'resource_size_t' {aka 'unsigned int'}
by kernel test robot
tree: https://github.com/microchip-ung/linux-upstream.git v5.10-webstax
head: 0c603c93d534e71ceee9485bfe1b0b75561efb0e
commit: 5b4a9de85b60edf37f6322a88a2c37970c81b875 [61/88] mfd: Add sparx5 and jaguar2 PCIe mfd drivers
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-linux-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/5b4a9de85b60edf37f...
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 5b4a9de85b60edf37f6322a88a2c37970c81b875
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=xtensa
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from include/linux/kernel.h:16,
from drivers/mfd/microchip_sparx5_pci.c:7:
drivers/mfd/microchip_sparx5_pci.c: In function 'microchip_sparx5_mfd_probe':
>> drivers/mfd/microchip_sparx5_pci.c:491:11: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 7 has type 'resource_size_t' {aka 'unsigned int'} [-Wformat=]
491 | pr_debug("%s:%d %s: Region: %d, size: %lluMB, %llx-%llx => %px\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/printk.h:301:21: note: in definition of macro 'pr_fmt'
301 | #define pr_fmt(fmt) fmt
| ^~~
include/linux/dynamic_debug.h:147:2: note: in expansion of macro '__dynamic_func_call'
147 | __dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:157:2: note: in expansion of macro '_dynamic_func_call'
157 | _dynamic_func_call(fmt, __dynamic_pr_debug, \
| ^~~~~~~~~~~~~~~~~~
include/linux/printk.h:424:2: note: in expansion of macro 'dynamic_pr_debug'
424 | dynamic_pr_debug(fmt, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~
drivers/mfd/microchip_sparx5_pci.c:491:2: note: in expansion of macro 'pr_debug'
491 | pr_debug("%s:%d %s: Region: %d, size: %lluMB, %llx-%llx => %px\n",
| ^~~~~~~~
drivers/mfd/microchip_sparx5_pci.c:491:43: note: format string is defined here
491 | pr_debug("%s:%d %s: Region: %d, size: %lluMB, %llx-%llx => %px\n",
| ~~~^
| |
| long long unsigned int
| %u
In file included from include/linux/kernel.h:16,
from drivers/mfd/microchip_sparx5_pci.c:7:
>> drivers/mfd/microchip_sparx5_pci.c:491:11: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 8 has type 'phys_addr_t' {aka 'unsigned int'} [-Wformat=]
491 | pr_debug("%s:%d %s: Region: %d, size: %lluMB, %llx-%llx => %px\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/printk.h:301:21: note: in definition of macro 'pr_fmt'
301 | #define pr_fmt(fmt) fmt
| ^~~
include/linux/dynamic_debug.h:147:2: note: in expansion of macro '__dynamic_func_call'
147 | __dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:157:2: note: in expansion of macro '_dynamic_func_call'
157 | _dynamic_func_call(fmt, __dynamic_pr_debug, \
| ^~~~~~~~~~~~~~~~~~
include/linux/printk.h:424:2: note: in expansion of macro 'dynamic_pr_debug'
424 | dynamic_pr_debug(fmt, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~
drivers/mfd/microchip_sparx5_pci.c:491:2: note: in expansion of macro 'pr_debug'
491 | pr_debug("%s:%d %s: Region: %d, size: %lluMB, %llx-%llx => %px\n",
| ^~~~~~~~
drivers/mfd/microchip_sparx5_pci.c:491:51: note: format string is defined here
491 | pr_debug("%s:%d %s: Region: %d, size: %lluMB, %llx-%llx => %px\n",
| ~~~^
| |
| long long unsigned int
| %x
In file included from include/linux/kernel.h:16,
from drivers/mfd/microchip_sparx5_pci.c:7:
drivers/mfd/microchip_sparx5_pci.c:491:11: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 9 has type 'phys_addr_t' {aka 'unsigned int'} [-Wformat=]
491 | pr_debug("%s:%d %s: Region: %d, size: %lluMB, %llx-%llx => %px\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/printk.h:301:21: note: in definition of macro 'pr_fmt'
301 | #define pr_fmt(fmt) fmt
| ^~~
include/linux/dynamic_debug.h:147:2: note: in expansion of macro '__dynamic_func_call'
147 | __dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:157:2: note: in expansion of macro '_dynamic_func_call'
157 | _dynamic_func_call(fmt, __dynamic_pr_debug, \
| ^~~~~~~~~~~~~~~~~~
include/linux/printk.h:424:2: note: in expansion of macro 'dynamic_pr_debug'
424 | dynamic_pr_debug(fmt, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~
drivers/mfd/microchip_sparx5_pci.c:491:2: note: in expansion of macro 'pr_debug'
491 | pr_debug("%s:%d %s: Region: %d, size: %lluMB, %llx-%llx => %px\n",
| ^~~~~~~~
drivers/mfd/microchip_sparx5_pci.c:491:56: note: format string is defined here
491 | pr_debug("%s:%d %s: Region: %d, size: %lluMB, %llx-%llx => %px\n",
| ~~~^
| |
| long long unsigned int
| %x
In file included from include/linux/kernel.h:16,
from drivers/mfd/microchip_sparx5_pci.c:7:
drivers/mfd/microchip_sparx5_pci.c:498:11: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 7 has type 'resource_size_t' {aka 'unsigned int'} [-Wformat=]
498 | pr_debug("%s:%d %s: Region: %d, size: %lluMB, %llx-%llx => %px\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/printk.h:301:21: note: in definition of macro 'pr_fmt'
301 | #define pr_fmt(fmt) fmt
| ^~~
include/linux/dynamic_debug.h:147:2: note: in expansion of macro '__dynamic_func_call'
147 | __dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:157:2: note: in expansion of macro '_dynamic_func_call'
157 | _dynamic_func_call(fmt, __dynamic_pr_debug, \
| ^~~~~~~~~~~~~~~~~~
include/linux/printk.h:424:2: note: in expansion of macro 'dynamic_pr_debug'
424 | dynamic_pr_debug(fmt, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~
drivers/mfd/microchip_sparx5_pci.c:498:2: note: in expansion of macro 'pr_debug'
498 | pr_debug("%s:%d %s: Region: %d, size: %lluMB, %llx-%llx => %px\n",
| ^~~~~~~~
drivers/mfd/microchip_sparx5_pci.c:498:43: note: format string is defined here
498 | pr_debug("%s:%d %s: Region: %d, size: %lluMB, %llx-%llx => %px\n",
| ~~~^
| |
| long long unsigned int
| %u
In file included from include/linux/kernel.h:16,
from drivers/mfd/microchip_sparx5_pci.c:7:
drivers/mfd/microchip_sparx5_pci.c:498:11: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 8 has type 'phys_addr_t' {aka 'unsigned int'} [-Wformat=]
498 | pr_debug("%s:%d %s: Region: %d, size: %lluMB, %llx-%llx => %px\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/printk.h:301:21: note: in definition of macro 'pr_fmt'
301 | #define pr_fmt(fmt) fmt
| ^~~
include/linux/dynamic_debug.h:147:2: note: in expansion of macro '__dynamic_func_call'
147 | __dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:157:2: note: in expansion of macro '_dynamic_func_call'
157 | _dynamic_func_call(fmt, __dynamic_pr_debug, \
| ^~~~~~~~~~~~~~~~~~
include/linux/printk.h:424:2: note: in expansion of macro 'dynamic_pr_debug'
424 | dynamic_pr_debug(fmt, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~
drivers/mfd/microchip_sparx5_pci.c:498:2: note: in expansion of macro 'pr_debug'
498 | pr_debug("%s:%d %s: Region: %d, size: %lluMB, %llx-%llx => %px\n",
| ^~~~~~~~
drivers/mfd/microchip_sparx5_pci.c:498:51: note: format string is defined here
498 | pr_debug("%s:%d %s: Region: %d, size: %lluMB, %llx-%llx => %px\n",
| ~~~^
| |
| long long unsigned int
vim +491 drivers/mfd/microchip_sparx5_pci.c
404
405 static int microchip_sparx5_mfd_probe(struct pci_dev *dev,
406 const struct pci_device_id *id)
407 {
408 struct microchip_sparx5_uio *priv;
409 struct uio_info *info;
410 u32 chip_id;
411 int ret = -ENODEV;
412
413 if (!dev->dev.of_node) {
414 dev_warn(&dev->dev, "No platform device nodes in PCIe device\n");
415 return -ENODEV;
416 }
417 if (dev->devfn > 0) {
418 dev_warn(&dev->dev, "Not accepting function 1 or higher\n");
419 return -ENOENT;
420 }
421 priv = devm_kzalloc(&dev->dev, sizeof(*priv), GFP_KERNEL);
422 if (!priv) {
423 dev_err(&dev->dev, "No memory\n");
424 return -ENOMEM;
425 }
426 spin_lock_init(&priv->lock);
427 priv->flags = 0; /* interrupt is enabled to begin with */
428 priv->pdev = dev;
429
430 ret = pcim_enable_device(dev);
431 if (ret) {
432 dev_err(&dev->dev, "Could not enable PCI device\n");
433 return ret;
434 }
435 pci_set_master(dev);
436 dev_info(&dev->dev, "Device is master\n");
437
438 info = &priv->uio;
439 info->priv = priv;
440
441 info->mem[0].name = "switch_regs"; /* Used by MESA */
442 info->mem[0].addr = pci_resource_start(dev, SPARX5_SWITCH_BAR);
443 info->mem[0].size = pci_resource_len(dev, SPARX5_SWITCH_BAR);
444 info->mem[0].memtype = UIO_MEM_PHYS;
445 if (!info->mem[0].addr) {
446 dev_err(&dev->dev, "Could not map region: %d\n",
447 SPARX5_SWITCH_BAR);
448 ret = -ENXIO;
449 goto out_disable;
450 }
451 info->mem[0].internal_addr = ioremap(info->mem[0].addr,
452 info->mem[0].size);
453
454 info->mem[1].name = "cpu_regs"; /* Used by MESA */
455 info->mem[1].addr = pci_resource_start(dev, SPARX5_CPU_BAR);
456 info->mem[1].size = pci_resource_len(dev, SPARX5_CPU_BAR);
457 info->mem[1].memtype = UIO_MEM_PHYS;
458 if (!info->mem[1].addr) {
459 dev_err(&dev->dev, "Could not map region: %d\n",
460 SPARX5_CPU_BAR);
461 ret = -ENXIO;
462 goto out_disable;
463 }
464 info->mem[1].internal_addr = ioremap(info->mem[1].addr,
465 info->mem[1].size);
466
467 pci_set_drvdata(dev, info);
468 info->name = UIO_NAME;
469 info->version = UIO_VERSION;
470 /* info->irq = dev->irq; */
471 info->irq = UIO_IRQ_CUSTOM;
472 info->irqcontrol = microchip_sparx5_mfd_irqcontrol;
473 ret = uio_register_device(&dev->dev, info);
474 if (ret) {
475 if (ret == -EPROBE_DEFER) {
476 dev_info(&dev->dev, "Defer UIO registration\n");
477 } else {
478 dev_warn(&dev->dev, "Could not register UIO driver: %d\n", ret);
479 }
480 goto out_disable;
481 }
482
483 ret = microchip_sparx5_mfd_irq_common_init(priv, dev->dev.of_node);
484 if (ret) {
485 dev_err(&dev->dev, "Could not configure irqs: %d\n", ret);
486 goto out_unregister;
487 }
488 chip_id = microchip_sparx5_mfd_readl(priv, DEVCPU_GCB_CHIP_REGS_ID_OFF);
489 dev_info(&dev->dev, "Found %s, UIO device, IRQ %ld, chip id 0x%08x\n",
490 info->name, info->irq, chip_id);
> 491 pr_debug("%s:%d %s: Region: %d, size: %lluMB, %llx-%llx => %px\n",
492 __FILE__, __LINE__, __func__,
493 0,
494 info->mem[0].size >> 20,
495 info->mem[0].addr,
496 info->mem[0].addr + info->mem[0].size - 1,
497 info->mem[0].internal_addr);
498 pr_debug("%s:%d %s: Region: %d, size: %lluMB, %llx-%llx => %px\n",
499 __FILE__, __LINE__, __func__,
500 1,
501 info->mem[1].size >> 20,
502 info->mem[1].addr,
503 info->mem[1].addr + info->mem[1].size - 1,
504 info->mem[1].internal_addr);
505
506 /* Update PCIe PF0 BAR2 mask */
507 {
508 u32 dbi_access, orig;
509 dbi_access = orig = microchip_sparx5_mfd_readl(priv, CPU_PCIE_CFG_OFF);
510 dbi_access &= ~CPU_PCIE_CFG_DBI_ACCESS_ENA_M;
511 dbi_access |= CPU_PCIE_CFG_DBI_ACCESS_ENA(3);
512 microchip_sparx5_mfd_writel(priv, CPU_PCIE_PCIEMST_PF0_BAR2_MASK_LOW_OFF, 0xff000000);
513 microchip_sparx5_mfd_writel(priv, CPU_PCIE_PCIEMST_PF0_BAR2_MASK_HIGH_OFF, 0xf);
514 microchip_sparx5_mfd_writel(priv, CPU_PCIE_CFG_OFF, orig);
515 pr_debug("%s:%d %s: Update PF0 BAR2 mask\n",
516 __FILE__, __LINE__, __func__);
517 }
518 return of_platform_default_populate(dev->dev.of_node, NULL, &dev->dev);
519
520 out_unregister:
521 uio_unregister_device(info);
522 out_disable:
523 pci_disable_device(dev);
524 return ret;
525 }
526
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 9 months
Re: [Intel-gfx] [PATCH 63/69] drm/i915/gt: Infrastructure for ring scheduling
by kernel test robot
Hi Chris,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on drm-tip/drm-tip]
[cannot apply to drm-intel/for-linux-next v5.10 next-20201211]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Chris-Wilson/drm-i915-Use-cmpxch...
base: git://anongit.freedesktop.org/drm/drm-tip drm-tip
config: x86_64-randconfig-a002-20201214 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project d38205144febf4dc42c9270c6aa3d978f1ef65e1)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://github.com/0day-ci/linux/commit/38f938d4eb11b84c9bf70078037a64f18...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Chris-Wilson/drm-i915-Use-cmpxchg64-for-32b-compatilibity/20201214-181222
git checkout 38f938d4eb11b84c9bf70078037a64f189e57de2
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/gpu/drm/i915/gt/intel_ring_scheduler.c:43:19: warning: unused function 'queue_deadline' [-Wunused-function]
static inline u64 queue_deadline(struct rb_node *rb)
^
>> drivers/gpu/drm/i915/gt/intel_ring_scheduler.c:48:20: warning: function 'reset_in_progress' is not needed and will not be emitted [-Wunneeded-internal-declaration]
static inline bool reset_in_progress(const struct intel_engine_cs *engine)
^
drivers/gpu/drm/i915/gt/intel_ring_scheduler.c:145:20: warning: unused function 'ring_map_dw' [-Wunused-function]
static inline u32 *ring_map_dw(struct intel_ring *ring, u32 len)
^
3 warnings generated.
vim +/reset_in_progress +48 drivers/gpu/drm/i915/gt/intel_ring_scheduler.c
47
> 48 static inline bool reset_in_progress(const struct intel_engine_cs *engine)
49 {
50 return unlikely(!__tasklet_is_enabled(&engine->active.tasklet));
51 }
52
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 9 months
[microchip-ung-linux-upstream:v5.10-webstax 65/88] drivers/uio/uio_sparx5_irqmux.c:247:3: warning: 'strncpy' specified bound 16 equals destination size
by kernel test robot
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: riscv-allyesconfig (attached as .config)
compiler: riscv64-linux-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/b3739b5edd2763486c...
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=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In function 'uio_sparx5_irqmux_request_irqs',
inlined from 'uio_sparx5_irqmux_probe' at drivers/uio/uio_sparx5_irqmux.c:293:8:
>> drivers/uio/uio_sparx5_irqmux.c:247:3: warning: 'strncpy' specified bound 16 equals destination size [-Wstringop-truncation]
247 | strncpy(priv->sirq[num].name, r->name, MAXNAMELEN);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/strncpy +247 drivers/uio/uio_sparx5_irqmux.c
223
224 static int uio_sparx5_irqmux_request_irqs(struct irqmux_platdata *priv)
225 {
226 struct platform_device *pdev = priv->pdev;
227 struct device *dev = &pdev->dev;
228 int irq, num, max;
229
230 priv->n_sirq = platform_irq_count(pdev);
231 priv->sirq = devm_kzalloc(dev,
232 sizeof(struct slave_irq_data)*priv->n_sirq,
233 GFP_KERNEL);
234 if (!priv->sirq)
235 return -ENOMEM;
236
237 for (num = 0, max = priv->n_sirq; num < max; num++) {
238 struct resource *r;
239
240 r = platform_get_resource(pdev, IORESOURCE_IRQ, num);
241 if (!r)
242 return -ENXIO;
243 irq = platform_get_irq(pdev, num);
244 priv->sirq[num].index = num;
245 priv->sirq[num].irq = irq;
246 priv->sirq[num].priv = priv;
> 247 strncpy(priv->sirq[num].name, r->name, MAXNAMELEN);
248 if (irq <= 0) {
249 dev_err(dev, "failed to get IRQ %d\n", num);
250 return irq;
251 }
252 if (num == 0) {
253 priv->info.irq = irq;
254 if (strcmp(r->name, "master")) {
255 dev_err(dev, "First irq must be 'master'\n");
256 return -ENXIO;
257 }
258 } else {
259 int ret = request_irq(irq, slave_irq, 0, r->name,
260 (void *) &priv->sirq[num]);
261 if (ret < 0) {
262 dev_err(dev, "can not get IRQ %d\n", irq);
263 return -ENXIO;
264 }
265 }
266 }
267
268 dev_info(dev, "Mapped %d irqs\n", priv->n_sirq);
269 return 0;
270 }
271
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 9 months
[microchip-ung-linux-upstream:v5.10-webstax 58/88] drivers/mtd/nand/raw/vcoreiii_nand.c:71:16: warning: cast from pointer to integer of different size
by kernel test robot
tree: https://github.com/microchip-ung/linux-upstream.git v5.10-webstax
head: 0c603c93d534e71ceee9485bfe1b0b75561efb0e
commit: bc840aa16f4e573a1eeba3d53b23ceeb61c0575b [58/88] mtd: rawnand: ocelot: Add vcoreiii parallel interface NAND driver
config: s390-allyesconfig (attached as .config)
compiler: s390-linux-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/bc840aa16f4e573a1e...
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 bc840aa16f4e573a1eeba3d53b23ceeb61c0575b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=s390
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/mtd/nand/raw/vcoreiii_nand.c: In function 'vcoreiii_nand_cmd_ctrl':
>> drivers/mtd/nand/raw/vcoreiii_nand.c:71:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
71 | u32 ioaddr = (u32) this->legacy.IO_ADDR_R;
| ^
>> drivers/mtd/nand/raw/vcoreiii_nand.c:77:28: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
77 | this->legacy.IO_ADDR_W = (void __iomem *)ioaddr;
| ^
vim +71 drivers/mtd/nand/raw/vcoreiii_nand.c
63
64 /* hardware specific access to control-lines */
65 static void vcoreiii_nand_cmd_ctrl(struct nand_chip *this, int cmd,
66 unsigned int ctrl)
67 {
68 struct mtd_info *mtd = nand_to_mtd(this);
69 if (ctrl & NAND_CTRL_CHANGE) {
70 struct mscc_nand_data *host = mtd_to_mscc(mtd);
> 71 u32 ioaddr = (u32) this->legacy.IO_ADDR_R;
72 if(ctrl & NAND_CLE) {
73 ioaddr |= host->props->cle_mask;
74 } else if(ctrl & NAND_ALE) {
75 ioaddr |= host->props->ale_mask;
76 }
> 77 this->legacy.IO_ADDR_W = (void __iomem *)ioaddr;
78 }
79 if (cmd != NAND_CMD_NONE) {
80 __raw_writeb(cmd, this->legacy.IO_ADDR_W);
81 wmb();
82 }
83 }
84
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 9 months
Re: [PATCH v2 1/3] gpio: gpio-hisi: Add HiSilicon GPIO support
by kernel test robot
Hi Luo,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on gpio/for-next]
[also build test WARNING on arm64/for-next/core linus/master v5.10 next-20201211]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Luo-Jiaxing/gpio-gpio-hisi-Add-H...
base: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git for-next
config: ia64-allyesconfig (attached as .config)
compiler: ia64-linux-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/0day-ci/linux/commit/a5a4b0b963f551e72877f5a6ed97657eb...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Luo-Jiaxing/gpio-gpio-hisi-Add-HiSilicon-GPIO-support/20201214-163229
git checkout a5a4b0b963f551e72877f5a6ed97657ebf074449
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/gpio/gpio-hisi.c: In function 'hisi_gpio_probe':
>> drivers/gpio/gpio-hisi.c:257:28: warning: variable 'clr' set but not used [-Wunused-but-set-variable]
257 | void __iomem *dat, *set, *clr;
| ^~~
>> drivers/gpio/gpio-hisi.c:257:22: warning: variable 'set' set but not used [-Wunused-but-set-variable]
257 | void __iomem *dat, *set, *clr;
| ^~~
>> drivers/gpio/gpio-hisi.c:257:16: warning: variable 'dat' set but not used [-Wunused-but-set-variable]
257 | void __iomem *dat, *set, *clr;
| ^~~
vim +/clr +257 drivers/gpio/gpio-hisi.c
253
254 static int hisi_gpio_probe(struct platform_device *pdev)
255 {
256 struct device *dev = &pdev->dev;
> 257 void __iomem *dat, *set, *clr;
258 struct hisi_gpio *hisi_gpio;
259 int port_num;
260 int ret;
261
262 /*
263 * One GPIO controller own one port currently,
264 * if we get more from ACPI table, return error.
265 */
266 port_num = device_get_child_node_count(dev);
267 if (WARN_ON(port_num != 1))
268 return -ENODEV;
269
270 hisi_gpio = devm_kzalloc(dev, sizeof(*hisi_gpio), GFP_KERNEL);
271 if (!hisi_gpio)
272 return -ENOMEM;
273
274 hisi_gpio->reg_base = devm_platform_ioremap_resource(pdev, 0);
275 if (IS_ERR(hisi_gpio->reg_base))
276 return PTR_ERR(hisi_gpio->reg_base);
277
278 hisi_gpio_get_pdata(dev, hisi_gpio);
279
280 hisi_gpio->dev = dev;
281
282 dat = hisi_gpio->reg_base + HISI_GPIO_EXT_PORT_WX;
283 set = hisi_gpio->reg_base + HISI_GPIO_SWPORT_DR_SET_WX;
284 clr = hisi_gpio->reg_base + HISI_GPIO_SWPORT_DR_CLR_WX;
285
286 ret = bgpio_init(&hisi_gpio->chip, hisi_gpio->dev, 0x4,
287 hisi_gpio->reg_base + HISI_GPIO_EXT_PORT_WX,
288 hisi_gpio->reg_base + HISI_GPIO_SWPORT_DR_SET_WX,
289 hisi_gpio->reg_base + HISI_GPIO_SWPORT_DR_CLR_WX,
290 hisi_gpio->reg_base + HISI_GPIO_SWPORT_DDR_SET_WX,
291 hisi_gpio->reg_base + HISI_GPIO_SWPORT_DDR_CLR_WX,
292 BGPIOF_NO_SET_ON_INPUT);
293 if (ret) {
294 dev_err(dev, "failed to init, ret = %d\n", ret);
295 return ret;
296 }
297
298 hisi_gpio->chip.set_config = hisi_gpio_set_config;
299 hisi_gpio->chip.ngpio = hisi_gpio->line_num;
300 hisi_gpio->chip.bgpio_dir_unreadable = 1;
301 hisi_gpio->chip.base = -1;
302
303 if (hisi_gpio->irq > 0)
304 hisi_gpio_init_irq(hisi_gpio);
305
306 ret = devm_gpiochip_add_data(dev, &hisi_gpio->chip, hisi_gpio);
307 if (ret) {
308 dev_err(dev, "failed to register gpiochip, ret = %d\n", ret);
309 return ret;
310 }
311
312 return 0;
313 }
314
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 9 months
Re: [Intel-gfx] [PATCH] drm/i915: Try to guess PCH type even without ISA bridge
by kernel test robot
Hi Xiong,
I love your patch! Perhaps something to improve:
[auto build test WARNING on drm-intel/for-linux-next]
[also build test WARNING on drm-tip/drm-tip v5.10 next-20201211]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Xiong-Zhang/drm-i915-Try-to-gues...
base: git://anongit.freedesktop.org/drm-intel for-linux-next
config: x86_64-randconfig-a002-20201214 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project d38205144febf4dc42c9270c6aa3d978f1ef65e1)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://github.com/0day-ci/linux/commit/718272991fa5c06a48629bce020ecfbde...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Xiong-Zhang/drm-i915-Try-to-guess-PCH-type-even-without-ISA-bridge/20201214-150157
git checkout 718272991fa5c06a48629bce020ecfbdea006f96
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/gpu/drm/i915/intel_pch.c:187:6: warning: no previous prototype for function 'intel_detect_pch_virt' [-Wmissing-prototypes]
void intel_detect_pch_virt(struct drm_i915_private *dev_priv)
^
drivers/gpu/drm/i915/intel_pch.c:187:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void intel_detect_pch_virt(struct drm_i915_private *dev_priv)
^
static
1 warning generated.
vim +/intel_detect_pch_virt +187 drivers/gpu/drm/i915/intel_pch.c
186
> 187 void intel_detect_pch_virt(struct drm_i915_private *dev_priv)
188 {
189 unsigned short id;
190 enum intel_pch pch_type;
191
192 id = intel_virt_detect_pch(dev_priv);
193 pch_type = intel_pch_type(dev_priv, id);
194
195 /* Sanity check virtual PCH id */
196 if (drm_WARN_ON(&dev_priv->drm,
197 id && pch_type == PCH_NONE))
198 id = 0;
199
200 dev_priv->pch_type = pch_type;
201 dev_priv->pch_id = id;
202 }
203
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 9 months
[jirislaby:devel 12/38] drivers/tty/vt/keyboard.c:379:13: error: static declaration of 'set_leds' follows non-static declaration
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git devel
head: e7d0e5ab8defcc13370bceaa63622a601323be35
commit: 3d202e5b1165df431f23a1144fc44f96f1c6fc80 [12/38] vt: keyboard, make keyboard_tasklet local
config: s390-randconfig-r003-20201214 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project d38205144febf4dc42c9270c6aa3d978f1ef65e1)
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
# install s390 cross compiling tool for clang build
# apt-get install binutils-s390x-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git/commi...
git remote add jirislaby https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git
git fetch --no-tags jirislaby devel
git checkout 3d202e5b1165df431f23a1144fc44f96f1c6fc80
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=s390
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/tty/vt/keyboard.c:379:13: error: static declaration of 'set_leds' follows non-static declaration
static void set_leds(void)
^
include/linux/kbd_kern.h:64:6: note: previous declaration is here
void set_leds(void);
^
>> drivers/tty/vt/keyboard.c:1016:37: error: redefinition of 'keyboard_tasklet'
static DECLARE_TASKLET_DISABLED_OLD(keyboard_tasklet, kbd_bh);
^
drivers/tty/vt/keyboard.c:135:37: note: previous definition is here
static DECLARE_TASKLET_DISABLED_OLD(keyboard_tasklet, kbd_bh);
^
2 errors generated.
vim +/set_leds +379 drivers/tty/vt/keyboard.c
^1da177e4c3f415 drivers/char/keyboard.c Linus Torvalds 2005-04-16 377
0c0385ce7f3ceff drivers/tty/vt/keyboard.c Jiri Slaby 2020-11-25 378 /* FIXME: review locking for vt.c callers */
0c0385ce7f3ceff drivers/tty/vt/keyboard.c Jiri Slaby 2020-11-25 @379 static void set_leds(void)
0c0385ce7f3ceff drivers/tty/vt/keyboard.c Jiri Slaby 2020-11-25 380 {
0c0385ce7f3ceff drivers/tty/vt/keyboard.c Jiri Slaby 2020-11-25 381 tasklet_schedule(&keyboard_tasklet);
0c0385ce7f3ceff drivers/tty/vt/keyboard.c Jiri Slaby 2020-11-25 382 }
0c0385ce7f3ceff drivers/tty/vt/keyboard.c Jiri Slaby 2020-11-25 383
:::::: The code at line 379 was first introduced by commit
:::::: 0c0385ce7f3ceffc0f31ae76297d768c6b936094 vt: move set_leds to keyboard.c
:::::: TO: Jiri Slaby <jslaby(a)suse.cz>
:::::: CC: Jiri Slaby <jslaby(a)suse.cz>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 9 months
Re: [Intel-gfx] [PATCH 69/69] drm/i915/gt: Support virtual engine queues
by kernel test robot
Hi Chris,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on drm-tip/drm-tip]
[cannot apply to drm-intel/for-linux-next v5.10 next-20201214]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Chris-Wilson/drm-i915-Use-cmpxch...
base: git://anongit.freedesktop.org/drm/drm-tip drm-tip
config: i386-randconfig-s002-20201214 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-184-g1b896707-dirty
# https://github.com/0day-ci/linux/commit/44f806e9c54f1723714820d49dda7bedd...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Chris-Wilson/drm-i915-Use-cmpxchg64-for-32b-compatilibity/20201214-181222
git checkout 44f806e9c54f1723714820d49dda7beddc38aa1e
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
"sparse warnings: (new ones prefixed by >>)"
>> drivers/gpu/drm/i915/gt/intel_execlists_submission.c:1401:37: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct intel_timeline *tl @@ got struct intel_timeline [noderef] __rcu * @@
drivers/gpu/drm/i915/gt/intel_execlists_submission.c:1401:37: sparse: expected struct intel_timeline *tl
drivers/gpu/drm/i915/gt/intel_execlists_submission.c:1401:37: sparse: got struct intel_timeline [noderef] __rcu *
vim +1401 drivers/gpu/drm/i915/gt/intel_execlists_submission.c
1396
1397 static void
1398 resubmit_virtual_request(struct i915_request *rq, struct virtual_engine *ve)
1399 {
1400 struct intel_engine_cs *engine = rq->engine;
> 1401 struct intel_timeline *tl = READ_ONCE(rq->timeline);
1402 struct i915_request *pos = rq;
1403
1404 spin_lock_irq(&engine->active.lock);
1405
1406 /* Rewind back to the start of this virtual engine queue */
1407 list_for_each_entry_continue_reverse(rq, &tl->requests, link) {
1408 if (i915_request_completed(rq))
1409 break;
1410
1411 pos = rq;
1412 }
1413
1414 /* Resubmit the queue in execution order */
1415 spin_lock(&ve->base.active.lock);
1416 list_for_each_entry_from(pos, &tl->requests, link) {
1417 if (pos->engine != engine)
1418 break;
1419
1420 __resubmit_virtual_request(pos, engine, ve);
1421 }
1422 spin_unlock(&ve->base.active.lock);
1423
1424 spin_unlock_irq(&engine->active.lock);
1425 }
1426
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 9 months
[microchip-ung-linux-upstream:v5.10-webstax 62/88] drivers/net/ethernet/vitesse/vtss_if_mux_netlink.c:240:43: sparse: sparse: Using plain integer as NULL pointer
by kernel test robot
tree: https://github.com/microchip-ung/linux-upstream.git v5.10-webstax
head: 0c603c93d534e71ceee9485bfe1b0b75561efb0e
commit: 2e15507762cfc0c74bc1e597263005f2ad075881 [62/88] net: ethernet: Add MSCC/VTSS drivers
config: i386-randconfig-s001-20201214 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-184-g1b896707-dirty
# https://github.com/microchip-ung/linux-upstream/commit/2e15507762cfc0c74b...
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 2e15507762cfc0c74bc1e597263005f2ad075881
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
"sparse warnings: (new ones prefixed by >>)"
>> drivers/net/ethernet/vitesse/vtss_if_mux_netlink.c:240:43: sparse: sparse: Using plain integer as NULL pointer
drivers/net/ethernet/vitesse/vtss_if_mux_netlink.c:246:43: sparse: sparse: Using plain integer as NULL pointer
>> drivers/net/ethernet/vitesse/vtss_if_mux_netlink.c:254:22: sparse: sparse: symbol 'vtss_if_mux_link_ops' was not declared. Should it be static?
--
>> drivers/net/ethernet/vitesse/vtss_if_mux_main.c:176:62: sparse: sparse: Using plain integer as NULL pointer
drivers/net/ethernet/vitesse/vtss_if_mux_main.c:187:30: sparse: sparse: Using plain integer as NULL pointer
>> drivers/net/ethernet/vitesse/vtss_if_mux_main.c:338:55: sparse: sparse: cast to restricted __be16
>> drivers/net/ethernet/vitesse/vtss_if_mux_main.c:338:55: sparse: sparse: cast to restricted __be16
>> drivers/net/ethernet/vitesse/vtss_if_mux_main.c:338:55: sparse: sparse: cast to restricted __be16
>> drivers/net/ethernet/vitesse/vtss_if_mux_main.c:338:55: sparse: sparse: cast to restricted __be16
drivers/net/ethernet/vitesse/vtss_if_mux_main.c:338:77: sparse: sparse: cast to restricted __be16
drivers/net/ethernet/vitesse/vtss_if_mux_main.c:338:77: sparse: sparse: cast to restricted __be16
drivers/net/ethernet/vitesse/vtss_if_mux_main.c:338:77: sparse: sparse: cast to restricted __be16
drivers/net/ethernet/vitesse/vtss_if_mux_main.c:338:77: sparse: sparse: cast to restricted __be16
drivers/net/ethernet/vitesse/vtss_if_mux_main.c:343:13: sparse: sparse: cast to restricted __be16
drivers/net/ethernet/vitesse/vtss_if_mux_main.c:343:13: sparse: sparse: cast to restricted __be16
drivers/net/ethernet/vitesse/vtss_if_mux_main.c:343:13: sparse: sparse: cast to restricted __be16
drivers/net/ethernet/vitesse/vtss_if_mux_main.c:343:13: sparse: sparse: cast to restricted __be16
drivers/net/ethernet/vitesse/vtss_if_mux_main.c:444:42: sparse: sparse: Using plain integer as NULL pointer
drivers/net/ethernet/vitesse/vtss_if_mux_main.c:461:30: sparse: sparse: Using plain integer as NULL pointer
drivers/net/ethernet/vitesse/vtss_if_mux_main.c:466:39: sparse: sparse: Using plain integer as NULL pointer
drivers/net/ethernet/vitesse/vtss_if_mux_main.c:469:39: sparse: sparse: Using plain integer as NULL pointer
drivers/net/ethernet/vitesse/vtss_if_mux_main.c:533:43: sparse: sparse: Using plain integer as NULL pointer
drivers/net/ethernet/vitesse/vtss_if_mux_main.c:543:43: sparse: sparse: Using plain integer as NULL pointer
drivers/net/ethernet/vitesse/vtss_if_mux_main.c:554:34: sparse: sparse: Using plain integer as NULL pointer
--
>> drivers/net/ethernet/vitesse/vtss_if_mux_dev.c:34:47: sparse: sparse: Using plain integer as NULL pointer
drivers/net/ethernet/vitesse/vtss_if_mux_dev.c:249:30: sparse: sparse: Using plain integer as NULL pointer
--
>> drivers/net/ethernet/vitesse/vtss_if_mux_genetlink.c:208:43: sparse: sparse: Using plain integer as NULL pointer
drivers/net/ethernet/vitesse/vtss_if_mux_genetlink.c:209:53: sparse: sparse: Using plain integer as NULL pointer
>> drivers/net/ethernet/vitesse/vtss_if_mux_genetlink.c:1302:13: sparse: sparse: incompatible types in comparison expression (different address spaces):
>> drivers/net/ethernet/vitesse/vtss_if_mux_genetlink.c:1302:13: sparse: struct port_conf [noderef] __rcu *
>> drivers/net/ethernet/vitesse/vtss_if_mux_genetlink.c:1302:13: sparse: struct port_conf *
drivers/net/ethernet/vitesse/vtss_if_mux_genetlink.c:1415:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
drivers/net/ethernet/vitesse/vtss_if_mux_genetlink.c:1415:9: sparse: struct port_conf [noderef] __rcu *
drivers/net/ethernet/vitesse/vtss_if_mux_genetlink.c:1415:9: sparse: struct port_conf *
drivers/net/ethernet/vitesse/vtss_if_mux_genetlink.c:1426:13: sparse: sparse: incompatible types in comparison expression (different address spaces):
drivers/net/ethernet/vitesse/vtss_if_mux_genetlink.c:1426:13: sparse: struct port_conf [noderef] __rcu *
drivers/net/ethernet/vitesse/vtss_if_mux_genetlink.c:1426:13: sparse: struct port_conf *
drivers/net/ethernet/vitesse/vtss_if_mux_genetlink.c:1686:13: sparse: sparse: incompatible types in comparison expression (different address spaces):
drivers/net/ethernet/vitesse/vtss_if_mux_genetlink.c:1686:13: sparse: struct port_conf [noderef] __rcu *
drivers/net/ethernet/vitesse/vtss_if_mux_genetlink.c:1686:13: sparse: struct port_conf *
drivers/net/ethernet/vitesse/vtss_if_mux_genetlink.c:1815:13: sparse: sparse: incompatible types in comparison expression (different address spaces):
drivers/net/ethernet/vitesse/vtss_if_mux_genetlink.c:1815:13: sparse: struct port_conf [noderef] __rcu *
drivers/net/ethernet/vitesse/vtss_if_mux_genetlink.c:1815:13: sparse: struct port_conf *
Please review and possibly fold the followup patch.
vim +240 drivers/net/ethernet/vitesse/vtss_if_mux_netlink.c
234
235 static void vtss_if_mux_dellink(struct net_device *dev, struct list_head *head) {
236 int i;
237
238 for (i = 0; i < VTSS_IF_MUX_PORT_CNT; ++i) {
239 if (vtss_if_mux_port_net_dev[i] == dev) {
> 240 vtss_if_mux_port_net_dev[i] = 0;
241 }
242 }
243
244 for (i = 0; i < VLAN_N_VID; ++i) {
245 if (vtss_if_mux_vlan_net_dev[i] == dev) {
246 vtss_if_mux_vlan_net_dev[i] = 0;
247 }
248 }
249
250 pr_info("unregister_vlan_dev\n");
251 unregister_netdevice_queue(dev, head);
252 }
253
> 254 struct rtnl_link_ops vtss_if_mux_link_ops __read_mostly = {
255 .kind = "vtss_if_mux",
256 .maxtype = IFLA_VLAN_MAX,
257 .policy = vtss_if_mux_policy,
258 .priv_size = sizeof(struct vtss_if_mux_dev_priv),
259 .setup = vtss_if_mux_setup,
260 .validate = vtss_if_mux_validate,
261 .newlink = vtss_if_mux_newlink,
262 .changelink = vtss_if_mux_changelink,
263 .dellink = vtss_if_mux_dellink,
264 .get_size = vtss_if_mux_get_size,
265 //.fill_info = vtss_if_mux_fill_info,
266 };
267
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 9 months
[ath6kl:ath11k-qca6390-bringup 11/27] drivers/net/wireless/ath/ath11k/qmi.c:1680:46: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 4 has type 'dma_addr_t' {aka 'unsigned int'}
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git ath11k-qca6390-bringup
head: 60fad49a69e7b2f896ce7b1ade4ed532227b8e22
commit: 7d4892f101fc6bcd3cecbdfc7419a4a2bf6bb58b [11/27] ath11k: qmi: print allocated memory segment addresses and sizes
config: nios2-allyesconfig (attached as .config)
compiler: nios2-linux-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://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/commit/?id=...
git remote add ath6kl https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
git fetch --no-tags ath6kl ath11k-qca6390-bringup
git checkout 7d4892f101fc6bcd3cecbdfc7419a4a2bf6bb58b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nios2
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/net/wireless/ath/ath11k/qmi.c: In function 'ath11k_qmi_respond_fw_mem_request':
>> drivers/net/wireless/ath/ath11k/qmi.c:1680:46: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 4 has type 'dma_addr_t' {aka 'unsigned int'} [-Wformat=]
1680 | ath11k_info(ab, "qmi req mem_seg[%d] 0x%llx %u %u\n", i,
| ~~~^
| |
| long long unsigned int
| %x
1681 | ab->qmi.target_mem[i].paddr,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| dma_addr_t {aka unsigned int}
vim +1680 drivers/net/wireless/ath/ath11k/qmi.c
1648
1649 static int ath11k_qmi_respond_fw_mem_request(struct ath11k_base *ab)
1650 {
1651 struct qmi_wlanfw_respond_mem_req_msg_v01 *req;
1652 struct qmi_wlanfw_respond_mem_resp_msg_v01 resp;
1653 struct qmi_txn txn = {};
1654 int ret = 0, i;
1655 bool delayed = false;
1656
1657 req = kzalloc(sizeof(*req), GFP_KERNEL);
1658 if (!req)
1659 return -ENOMEM;
1660
1661 memset(&resp, 0, sizeof(resp));
1662
1663 /* For QCA6390 by default FW requests a block of ~4M contiguous
1664 * DMA memory, it's hard to allocate from OS. So host returns
1665 * failure to FW and FW will then request mulitple blocks of small
1666 * chunk size memory.
1667 */
1668 if (!ab->bus_params.fixed_mem_region && ab->qmi.target_mem_delayed) {
1669 delayed = true;
1670 ath11k_dbg(ab, ATH11K_DBG_QMI, "qmi delays mem_request %d\n",
1671 ab->qmi.mem_seg_count);
1672 memset(req, 0, sizeof(*req));
1673 } else {
1674 req->mem_seg_len = ab->qmi.mem_seg_count;
1675
1676 for (i = 0; i < req->mem_seg_len ; i++) {
1677 req->mem_seg[i].addr = ab->qmi.target_mem[i].paddr;
1678 req->mem_seg[i].size = ab->qmi.target_mem[i].size;
1679 req->mem_seg[i].type = ab->qmi.target_mem[i].type;
> 1680 ath11k_info(ab, "qmi req mem_seg[%d] 0x%llx %u %u\n", i,
1681 ab->qmi.target_mem[i].paddr,
1682 ab->qmi.target_mem[i].size,
1683 ab->qmi.target_mem[i].type);
1684 }
1685 }
1686
1687 ret = qmi_txn_init(&ab->qmi.handle, &txn,
1688 qmi_wlanfw_respond_mem_resp_msg_v01_ei, &resp);
1689 if (ret < 0)
1690 goto out;
1691
1692 ret = qmi_send_request(&ab->qmi.handle, NULL, &txn,
1693 QMI_WLANFW_RESPOND_MEM_REQ_V01,
1694 QMI_WLANFW_RESPOND_MEM_REQ_MSG_V01_MAX_LEN,
1695 qmi_wlanfw_respond_mem_req_msg_v01_ei, req);
1696 if (ret < 0) {
1697 ath11k_warn(ab, "qmi failed to respond memory request, err = %d\n",
1698 ret);
1699 goto out;
1700 }
1701
1702 ret = qmi_txn_wait(&txn, msecs_to_jiffies(ATH11K_QMI_WLANFW_TIMEOUT_MS));
1703 if (ret < 0) {
1704 ath11k_warn(ab, "qmi failed memory request, err = %d\n", ret);
1705 goto out;
1706 }
1707
1708 if (resp.resp.result != QMI_RESULT_SUCCESS_V01) {
1709 /* the error response is expected when
1710 * target_mem_delayed is true.
1711 */
1712 if (delayed && resp.resp.error == 0)
1713 goto out;
1714
1715 ath11k_warn(ab, "Respond mem req failed, result: %d, err: %d\n",
1716 resp.resp.result, resp.resp.error);
1717 ret = -EINVAL;
1718 }
1719 out:
1720 kfree(req);
1721 return ret;
1722 }
1723
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 9 months