[PATCH v2 06/11] conf: make virDomainPCIAddressReserveAddr() a static function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It is now only used in domain_addr.c.
---
 src/conf/domain_addr.c   | 2 +-
 src/conf/domain_addr.h   | 6 ------
 src/libvirt_private.syms | 1 -
 3 files changed, 1 insertion(+), 8 deletions(-)

diff --git a/src/conf/domain_addr.c b/src/conf/domain_addr.c
index dde4237..b1779c4 100644
--- a/src/conf/domain_addr.c
+++ b/src/conf/domain_addr.c
@@ -475,7 +475,7 @@ virDomainPCIAddressSlotInUse(virDomainPCIAddressSetPtr addrs,
  * automatically created by libvirt, so it is an internal error (not
  * XML).
  */
-int
+static int ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2)
 virDomainPCIAddressReserveAddr(virDomainPCIAddressSetPtr addrs,
                                virPCIDeviceAddressPtr addr,
                                virDomainPCIConnectFlags flags,
diff --git a/src/conf/domain_addr.h b/src/conf/domain_addr.h
index be13b1f..2412ed3 100644
--- a/src/conf/domain_addr.h
+++ b/src/conf/domain_addr.h
@@ -150,12 +150,6 @@ int virDomainPCIAddressSetGrow(virDomainPCIAddressSetPtr addrs,
                                virDomainPCIConnectFlags flags)
     ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2);
 
-int virDomainPCIAddressReserveAddr(virDomainPCIAddressSetPtr addrs,
-                                   virPCIDeviceAddressPtr addr,
-                                   virDomainPCIConnectFlags flags,
-                                   bool fromConfig)
-    ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2);
-
 int virDomainPCIAddressReserveSlot(virDomainPCIAddressSetPtr addrs,
                                    virPCIDeviceAddressPtr addr,
                                    virDomainPCIConnectFlags flags)
diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
index 9996ce7..c853f38 100644
--- a/src/libvirt_private.syms
+++ b/src/libvirt_private.syms
@@ -101,7 +101,6 @@ virDomainPCIAddressEnsureAddr;
 virDomainPCIAddressFlagsCompatible;
 virDomainPCIAddressIsMulti;
 virDomainPCIAddressReleaseSlot;
-virDomainPCIAddressReserveAddr;
 virDomainPCIAddressReserveNextAddr;
 virDomainPCIAddressReserveSlot;
 virDomainPCIAddressSetAlloc;
-- 
2.7.4

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]