lkml.org 
[lkml]   [2021]   [Jun]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectdrivers/vdpa/virtio_pci/vp_vdpa.c:168 vp_vdpa_request_irq() warn: inconsistent indenting
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 0c18f29aae7ce3dadd26d8ee3505d07cc982df75
commit: 64b9f64f80a6f4b7ea51bf0510119cb15e801dc6 vdpa: introduce virtio pci driver
date: 7 weeks ago
config: microblaze-randconfig-m031-20210622 (attached as .config)
compiler: microblaze-linux-gcc (GCC) 9.3.0

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

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@lists.01.org
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2021-06-23 05:30    [W:0.028 / U:0.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site