mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 09:17:52 +03:00
util: remove unused function virPCIGetSysfsFile()
Signed-off-by: Laine Stump <laine@redhat.com> Reviewed-by: Erik Skultety <eskultet@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
4dc39a204a
commit
25cb07498e
@ -2849,7 +2849,6 @@ virPCIGetHeaderType;
|
||||
virPCIGetMdevTypes;
|
||||
virPCIGetNetName;
|
||||
virPCIGetPhysicalFunction;
|
||||
virPCIGetSysfsFile;
|
||||
virPCIGetVirtualFunctionIndex;
|
||||
virPCIGetVirtualFunctionInfo;
|
||||
virPCIGetVirtualFunctions;
|
||||
|
@ -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,
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user