From: kernel test robot <lkp@intel.com>
To: Jason Wang <jasowang@redhat.com>
Cc: Linux Memory Management List <linux-mm@kvack.org>,
"Michael S. Tsirkin" <mst@redhat.com>
Subject: [linux-next:master 540/1897] drivers/vdpa/virtio_pci/vp_vdpa.c:168 vp_vdpa_request_irq() warn: inconsistent indenting
Date: Thu, 4 Mar 2021 21:25:43 +0800 [thread overview]
Message-ID: <202103042140.PsZwuFzn-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2517 bytes --]
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@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
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 33015 bytes --]
reply other threads:[~2021-03-04 13:26 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202103042140.PsZwuFzn-lkp@intel.com \
--to=lkp@intel.com \
--cc=jasowang@redhat.com \
--cc=linux-mm@kvack.org \
--cc=mst@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox