[linux-next:master 540/1897] drivers/vdpa/virtio_pci/vp_vdpa.c:168 vp_vdpa_request_irq() warn: inconsistent indenting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   f5427c2460ebc11b1a66c1742d41077ae5b99796
commit: 7075992ba8873c7beb5a84d7e07dbc54abdb2696 [540/1897] vdpa: introduce virtio pci driver
config: ia64-randconfig-m031-20210304 (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

smatch warnings:
drivers/vdpa/virtio_pci/vp_vdpa.c:168 vp_vdpa_request_irq() warn: inconsistent indenting

vim +168 drivers/vdpa/virtio_pci/vp_vdpa.c

   124	
   125	static int vp_vdpa_request_irq(struct vp_vdpa *vp_vdpa)
   126	{
   127		struct virtio_pci_modern_device *mdev = &vp_vdpa->mdev;
   128		struct pci_dev *pdev = mdev->pci_dev;
   129		int i, ret, irq;
   130		int queues = vp_vdpa->queues;
   131		int vectors = queues + 1;
   132	
   133		ret = pci_alloc_irq_vectors(pdev, vectors, vectors, PCI_IRQ_MSIX);
   134		if (ret != vectors) {
   135			dev_err(&pdev->dev,
   136				"vp_vdpa: fail to allocate irq vectors want %d but %d\n",
   137				vectors, ret);
   138			return ret;
   139		}
   140	
   141		vp_vdpa->vectors = vectors;
   142	
   143		for (i = 0; i < queues; i++) {
   144			snprintf(vp_vdpa->vring[i].msix_name, VP_VDPA_NAME_SIZE,
   145				"vp-vdpa[%s]-%d\n", pci_name(pdev), i);
   146			irq = pci_irq_vector(pdev, i);
   147			ret = devm_request_irq(&pdev->dev, irq,
   148					       vp_vdpa_vq_handler,
   149					       0, vp_vdpa->vring[i].msix_name,
   150					       &vp_vdpa->vring[i]);
   151			if (ret) {
   152				dev_err(&pdev->dev,
   153					"vp_vdpa: fail to request irq for vq %d\n", i);
   154				goto err;
   155			}
   156			vp_modern_queue_vector(mdev, i, i);
   157			vp_vdpa->vring[i].irq = irq;
   158		}
   159	
   160		snprintf(vp_vdpa->msix_name, VP_VDPA_NAME_SIZE, "vp-vdpa[%s]-config\n",
   161			 pci_name(pdev));
   162		irq = pci_irq_vector(pdev, queues);
   163		ret = devm_request_irq(&pdev->dev, irq,	vp_vdpa_config_handler, 0,
   164				       vp_vdpa->msix_name, vp_vdpa);
   165		if (ret) {
   166			dev_err(&pdev->dev,
   167				"vp_vdpa: fail to request irq for vq %d\n", i);
 > 168				goto err;
   169		}
   170		vp_modern_config_vector(mdev, queues);
   171		vp_vdpa->config_irq = irq;
   172	
   173		return 0;
   174	err:
   175		vp_vdpa_free_irq(vp_vdpa);
   176		return ret;
   177	}
   178	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux