tree: git://git.armlinux.org.uk/~rmk/linux-arm clearfog
head: 4060d4e64576eb1b91635d9debf08c0b1d1ae32f
commit: 86b0b0bf00ce1d899bbadf4f5f70bf07fd477161 [10/11] mvebu/clearfog pcie updates
config: i386-randconfig-m021-20200818 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
New smatch warnings:
drivers/pci/pcie/portdrv_core.c:328 pcie_port_device_register() warn: inconsistent
indenting
Old smatch warnings:
drivers/pci/pcie/portdrv_core.c:341 pcie_port_device_register() warn: inconsistent
indenting
git remote add linux-arm git://git.armlinux.org.uk/~rmk/linux-arm
git fetch --no-tags linux-arm clearfog
git checkout 86b0b0bf00ce1d899bbadf4f5f70bf07fd477161
vim +328 drivers/pci/pcie/portdrv_core.c
308
309 /**
310 * pcie_port_device_register - register PCI Express port
311 * @dev: PCI Express port to register
312 *
313 * Allocate the port extension structure and register services associated with
314 * the port.
315 */
316 int pcie_port_device_register(struct pci_dev *dev)
317 {
318 int status, capabilities, i, nr_service;
319 int irqs[PCIE_PORT_DEVICE_MAXSERVICES];
320
321 /* Enable PCI Express port device */
322 status = pci_enable_device(dev);
323 if (status)
324 return status;
325
326 /* Get and check PCI Express port services */
327 capabilities = get_port_device_capability(dev);
328 dev_info(&dev->dev, "PCIe capabilities: 0x%x\n",
capabilities);
329 if (!capabilities)
330 return 0;
331
332 pci_set_master(dev);
333 /*
334 * Initialize service irqs. Don't use service devices that
335 * require interrupts if there is no way to generate them.
336 * However, some drivers may have a polling mode (e.g. pciehp_poll_mode)
337 * that can be used in the absence of irqs. Allow them to determine
338 * if that is to be used.
339 */
340 status = pcie_init_service_irqs(dev, irqs, capabilities);
341 dev_info(&dev->dev, "init_service_irqs: %d\n", status);
342 if (status) {
343 capabilities &= PCIE_PORT_SERVICE_HP;
344 if (!capabilities)
345 goto error_disable;
346 }
347
348 /* Allocate child services if any */
349 status = -ENODEV;
350 nr_service = 0;
351 for (i = 0; i < PCIE_PORT_DEVICE_MAXSERVICES; i++) {
352 int service = 1 << i;
353 if (!(capabilities & service))
354 continue;
355 if (!pcie_device_init(dev, service, irqs[i]))
356 nr_service++;
357 }
358 if (!nr_service)
359 goto error_cleanup_irqs;
360
361 return 0;
362
363 error_cleanup_irqs:
364 pci_free_irq_vectors(dev);
365 error_disable:
366 pci_disable_device(dev);
367 return status;
368 }
369
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org