]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
util: remove unused function virPCIGetSysfsFile()
authorLaine Stump <laine@redhat.com>
Mon, 12 Oct 2020 19:07:31 +0000 (15:07 -0400)
committerLaine Stump <laine@redhat.com>
Wed, 21 Oct 2020 19:19:34 +0000 (15:19 -0400)
Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/libvirt_private.syms
src/util/virpci.c
src/util/virpci.h

index ae543589f13383f0b09a79397bbfc5fc45b28e2f..b2d786409bd691d778fffdd105c01fe9f3be1213 100644 (file)
@@ -2849,7 +2849,6 @@ virPCIGetHeaderType;
 virPCIGetMdevTypes;
 virPCIGetNetName;
 virPCIGetPhysicalFunction;
-virPCIGetSysfsFile;
 virPCIGetVirtualFunctionIndex;
 virPCIGetVirtualFunctionInfo;
 virPCIGetVirtualFunctions;
index 855872031e7e8da533fb2e7aa18bf4b47d9f78e3..1f679a7b45cbbb78ef3695456f1b85e9747787a8 100644 (file)
@@ -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,
index b3322ba61bc01bc1fee1becb1d886d2fc12ba5f7..1f896ca4813b975452b7eae029259f4605ea24df 100644 (file)
@@ -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);