From 7ec4e6e3b5ac2618513ebe320dfcf5e82b88540b Mon Sep 17 00:00:00 2001 From: Michal Privoznik Date: Tue, 28 Nov 2023 16:31:00 +0100 Subject: [PATCH] vircpi: Decrease scope of VIR_PCI_DEVICE_ADDRESS_FMT macro MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The VIR_PCI_DEVICE_ADDRESS_FMT macro is used only in virpci.c and nowhere else. It's not necessary to expose it in the header file. Signed-off-by: Michal Privoznik Reviewed-by: Jonathon Jongsma Reviewed-by: Ján Tomko --- src/util/virpci.c | 1 + src/util/virpci.h | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/util/virpci.c b/src/util/virpci.c index eae698c0a0..afce7b52b7 100644 --- a/src/util/virpci.c +++ b/src/util/virpci.c @@ -42,6 +42,7 @@ VIR_LOG_INIT("util.pci"); #define PCI_SYSFS "/sys/bus/pci/" #define PCI_ID_LEN 10 /* "XXXX XXXX" */ +#define VIR_PCI_DEVICE_ADDRESS_FMT "%04x:%02x:%02x.%d" VIR_ENUM_IMPL(virPCIELinkSpeed, VIR_PCIE_LINK_SPEED_LAST, diff --git a/src/util/virpci.h b/src/util/virpci.h index e964a2685c..bc7cb2329f 100644 --- a/src/util/virpci.h +++ b/src/util/virpci.h @@ -50,8 +50,6 @@ struct _virZPCIDeviceAddress { /* Don't forget to update virPCIDeviceAddressCopy if needed. */ }; -#define VIR_PCI_DEVICE_ADDRESS_FMT "%04x:%02x:%02x.%d" - struct _virPCIDeviceAddress { unsigned int domain; unsigned int bus;