[PATCH 9/9] util: remove unused function virPCIGetSysfsFile()

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

 



Signed-off-by: Laine Stump <laine@xxxxxxxxxx>
---
 src/libvirt_private.syms |  1 -
 src/util/virpci.c        | 15 ---------------
 src/util/virpci.h        |  4 ----
 3 files changed, 20 deletions(-)

diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
index ae543589f1..b2d786409b 100644
--- a/src/libvirt_private.syms
+++ b/src/libvirt_private.syms
@@ -2849,7 +2849,6 @@ virPCIGetHeaderType;
 virPCIGetMdevTypes;
 virPCIGetNetName;
 virPCIGetPhysicalFunction;
-virPCIGetSysfsFile;
 virPCIGetVirtualFunctionIndex;
 virPCIGetVirtualFunctionInfo;
 virPCIGetVirtualFunctions;
diff --git a/src/util/virpci.c b/src/util/virpci.c
index 855872031e..1f679a7b45 100644
--- a/src/util/virpci.c
+++ b/src/util/virpci.c
@@ -2358,14 +2358,6 @@ virPCIGetVirtualFunctionIndex(const char *pf_sysfs_device_link,
  * Returns a path to the PCI sysfs file given the BDF of the PCI function
  */
 
-int
-virPCIGetSysfsFile(char *virPCIDeviceName, char **pci_sysfs_device_link)
-{
-    *pci_sysfs_device_link = g_strdup_printf(PCI_SYSFS "devices/%s",
-                                             virPCIDeviceName);
-    return 0;
-}
-
 int
 virPCIDeviceAddressGetSysfsFile(virPCIDeviceAddressPtr addr,
                                 char **pci_sysfs_device_link)
@@ -2633,13 +2625,6 @@ virPCIGetVirtualFunctionIndex(const char *pf_sysfs_device_link G_GNUC_UNUSED,
 
 }
 
-int
-virPCIGetSysfsFile(char *virPCIDeviceName G_GNUC_UNUSED,
-                   char **pci_sysfs_device_link G_GNUC_UNUSED)
-{
-    virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _(unsupported));
-    return -1;
-}
 
 int
 virPCIDeviceAddressGetSysfsFile(virPCIDeviceAddressPtr dev G_GNUC_UNUSED,
diff --git a/src/util/virpci.h b/src/util/virpci.h
index b3322ba61b..1f896ca481 100644
--- a/src/util/virpci.h
+++ b/src/util/virpci.h
@@ -234,10 +234,6 @@ int virPCIGetNetName(const char *device_link_sysfs_path,
                      char *physPortID,
                      char **netname);
 
-int virPCIGetSysfsFile(char *virPCIDeviceName,
-                             char **pci_sysfs_device_link)
-    G_GNUC_WARN_UNUSED_RESULT;
-
 bool virPCIDeviceAddressIsValid(virPCIDeviceAddressPtr addr,
                                 bool report);
 bool virPCIDeviceAddressIsEmpty(const virPCIDeviceAddress *addr);
-- 
2.26.2




[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]

  Powered by Linux