Skip to content

Commit 4c5ba7a

Browse files
btw616jmberg-intel
authored andcommitted
um: virtio_pcidev: Rename UM_PCI_STAT_WAITING
Rename it to VIRTIO_PCIDEV_STAT_WAITING to make the code slightly more consistent. It was missed when refactoring virtio_pcidev into a separate module. Signed-off-by: Tiwei Bie <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Johannes Berg <[email protected]>
1 parent d0b3b7b commit 4c5ba7a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

arch/um/drivers/virtio_pcidev.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ struct virtio_pcidev_device {
4242
void *extra_ptrs[VIRTIO_PCIDEV_WRITE_BUFS + 1];
4343
DECLARE_BITMAP(used_bufs, VIRTIO_PCIDEV_WRITE_BUFS);
4444

45-
#define UM_PCI_STAT_WAITING 0
45+
#define VIRTIO_PCIDEV_STAT_WAITING 0
4646
unsigned long status;
4747

4848
bool platform;
@@ -172,7 +172,7 @@ static int virtio_pcidev_send_cmd(struct virtio_pcidev_device *dev,
172172
}
173173

174174
/* kick and poll for getting a response on the queue */
175-
set_bit(UM_PCI_STAT_WAITING, &dev->status);
175+
set_bit(VIRTIO_PCIDEV_STAT_WAITING, &dev->status);
176176
virtqueue_kick(dev->cmd_vq);
177177
ret = 0;
178178

@@ -193,7 +193,7 @@ static int virtio_pcidev_send_cmd(struct virtio_pcidev_device *dev,
193193
}
194194
udelay(1);
195195
}
196-
clear_bit(UM_PCI_STAT_WAITING, &dev->status);
196+
clear_bit(VIRTIO_PCIDEV_STAT_WAITING, &dev->status);
197197

198198
if (bounce_out)
199199
memcpy(out, buf->data, out_size);
@@ -439,7 +439,7 @@ static void virtio_pcidev_cmd_vq_cb(struct virtqueue *vq)
439439
void *cmd;
440440
int len;
441441

442-
if (test_bit(UM_PCI_STAT_WAITING, &dev->status))
442+
if (test_bit(VIRTIO_PCIDEV_STAT_WAITING, &dev->status))
443443
return;
444444

445445
while ((cmd = virtqueue_get_buf(vq, &len)))

0 commit comments

Comments
 (0)