diff options
author | Li Qiang | 2019-05-21 17:15:43 +0200 |
---|---|---|
committer | Laurent Vivier | 2019-05-22 17:35:27 +0200 |
commit | 2d9574bdbed69b374116c59259f6bd14f7dfad7f (patch) | |
tree | 18a697f161d254605a98fb33c3a11c50ffda18eb /hw/vfio/pci.c | |
parent | vfio: platform: fix a typo (diff) | |
download | qemu-2d9574bdbed69b374116c59259f6bd14f7dfad7f.tar.gz qemu-2d9574bdbed69b374116c59259f6bd14f7dfad7f.tar.xz qemu-2d9574bdbed69b374116c59259f6bd14f7dfad7f.zip |
pci: msix: move 'MSIX_CAP_LENGTH' to header file
'MSIX_CAP_LENGTH' is defined in two .c file. Move it
to hw/pci/msix.h file to reduce duplicated code.
CC: qemu-trivial@nongnu.org
Signed-off-by: Li Qiang <liq3ea@163.com>
Message-Id: <20190521151543.92274-5-liq3ea@163.com>
Acked-by: Alex Williamson <alex.williamson@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'hw/vfio/pci.c')
-rw-r--r-- | hw/vfio/pci.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c index 08729e5875..8e555db12e 100644 --- a/hw/vfio/pci.c +++ b/hw/vfio/pci.c @@ -35,8 +35,6 @@ #include "trace.h" #include "qapi/error.h" -#define MSIX_CAP_LENGTH 12 - #define TYPE_VFIO_PCI "vfio-pci" #define PCI_VFIO(obj) OBJECT_CHECK(VFIOPCIDevice, obj, TYPE_VFIO_PCI) |