[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[qemu-s390x] [PULL 6/9] vfio: pci: make "vfio-pci-nohotplug" as MACRO
From: |
Laurent Vivier |
Subject: |
[qemu-s390x] [PULL 6/9] vfio: pci: make "vfio-pci-nohotplug" as MACRO |
Date: |
Wed, 22 May 2019 18:07:20 +0200 |
From: Li Qiang <address@hidden>
The QOMConventions recommends we should use TYPE_FOO
for a TypeInfo's name. Though "vfio-pci-nohotplug" is not
used in other parts, for consistency we should make this change.
CC: address@hidden
Signed-off-by: Li Qiang <address@hidden>
Message-Id: <address@hidden>
Acked-by: Alex Williamson <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Reviewed-by: Eric Auger <address@hidden>
Signed-off-by: Laurent Vivier <address@hidden>
---
hw/vfio/pci.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c
index 8cecb53d5cf6..08729e5875a9 100644
--- a/hw/vfio/pci.c
+++ b/hw/vfio/pci.c
@@ -40,6 +40,8 @@
#define TYPE_VFIO_PCI "vfio-pci"
#define PCI_VFIO(obj) OBJECT_CHECK(VFIOPCIDevice, obj, TYPE_VFIO_PCI)
+#define TYPE_VIFO_PCI_NOHOTPLUG "vfio-pci-nohotplug"
+
static void vfio_disable_interrupts(VFIOPCIDevice *vdev);
static void vfio_mmap_set_enabled(VFIOPCIDevice *vdev, bool enabled);
@@ -3304,8 +3306,8 @@ static void vfio_pci_nohotplug_dev_class_init(ObjectClass
*klass, void *data)
}
static const TypeInfo vfio_pci_nohotplug_dev_info = {
- .name = "vfio-pci-nohotplug",
- .parent = "vfio-pci",
+ .name = TYPE_VIFO_PCI_NOHOTPLUG,
+ .parent = TYPE_VFIO_PCI,
.instance_size = sizeof(VFIOPCIDevice),
.class_init = vfio_pci_nohotplug_dev_class_init,
};
--
2.20.1
- [qemu-s390x] [PULL 0/9] Trivial branch patches, Laurent Vivier, 2019/05/22
- [qemu-s390x] [PULL 4/9] migration: Fix typo in migrate_add_blocker() error message, Laurent Vivier, 2019/05/22
- [qemu-s390x] [PULL 5/9] configure: Fix spelling of sdl-image in --help, Laurent Vivier, 2019/05/22
- [qemu-s390x] [PULL 2/9] roms: Correct the EDK2_BASETOOLS_OPTFLAGS variable description, Laurent Vivier, 2019/05/22
- [qemu-s390x] [PULL 3/9] roms: List and describe the Makefile 'clean' rule, Laurent Vivier, 2019/05/22
- [qemu-s390x] [PULL 6/9] vfio: pci: make "vfio-pci-nohotplug" as MACRO,
Laurent Vivier <=
- [qemu-s390x] [PULL 1/9] hw/virtio/virtio-mmio: Convert DPRINTF to trace and log, Laurent Vivier, 2019/05/22
- [qemu-s390x] [PULL 9/9] pci: msix: move 'MSIX_CAP_LENGTH' to header file, Laurent Vivier, 2019/05/22
- [qemu-s390x] [PULL 8/9] vfio: platform: fix a typo, Laurent Vivier, 2019/05/22
- [qemu-s390x] [PULL 7/9] hw: vfio: drop TYPE_FOO MACRO in VMStateDescription, Laurent Vivier, 2019/05/22
- Re: [qemu-s390x] [Qemu-devel] [PULL 0/9] Trivial branch patches, Peter Maydell, 2019/05/23