]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
util: pcivpd: Unexport virPCIVPDParseVPDLargeResourceFields
authorPeter Krempa <pkrempa@redhat.com>
Wed, 24 Jan 2024 13:40:38 +0000 (14:40 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 31 Jan 2024 16:24:07 +0000 (17:24 +0100)
The function is not used in other files.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/libvirt_private.syms
src/util/virpcivpd.c
src/util/virpcivpdpriv.h

index dbc4e26d79f9a37db851ae4e4a4daa7591a9ca37..89b0d01de6624de9f63d1f9a663aac7bd7514f0f 100644 (file)
@@ -3700,7 +3700,6 @@ virVHBAPathExists;
 # util/virpcivpd.h
 
 virPCIVPDParse;
-virPCIVPDParseVPDLargeResourceFields;
 virPCIVPDParseVPDLargeResourceString;
 virPCIVPDResourceCustomCompareIndex;
 virPCIVPDResourceCustomFree;
index 373321a836004b5707244b27a611c847234dc11a..510be65cb6cae03898cd3ce3eff7a8782eaa1775 100644 (file)
@@ -436,7 +436,7 @@ virPCIVPDReadVPDBytes(int vpdFileFd, uint8_t *buf, size_t count, off_t offset, u
  * Returns: a pointer to a VPDResource which needs to be freed by the caller or
  * NULL if getting it failed for some reason.
  */
-bool
+static bool
 virPCIVPDParseVPDLargeResourceFields(int vpdFileFd, uint16_t resPos, uint16_t resDataLen,
                                      bool readOnly, uint8_t *csum, virPCIVPDResource *res)
 {
@@ -744,19 +744,6 @@ virPCIVPDParseVPDLargeResourceString(int vpdFileFd G_GNUC_UNUSED,
     return false;
 }
 
-bool
-virPCIVPDParseVPDLargeResourceFields(int vpdFileFd G_GNUC_UNUSED,
-                                     uint16_t resPos G_GNUC_UNUSED,
-                                     uint16_t resDataLen G_GNUC_UNUSED,
-                                     bool readOnly G_GNUC_UNUSED,
-                                     uint8_t *csum G_GNUC_UNUSED,
-                                     virPCIVPDResource *res G_GNUC_UNUSED)
-{
-    virReportError(VIR_ERR_NO_SUPPORT, "%s",
-                   _("PCI VPD reporting not available on this platform"));
-    return false;
-}
-
 virPCIVPDResource *
 virPCIVPDParse(int vpdFileFd G_GNUC_UNUSED)
 {
index 17e6e14ab7ed18a2395ea2b4821b4b27aefe874f..d84f1e9c8af9ef1a06660a54486e07890c5677c6 100644 (file)
@@ -69,8 +69,5 @@ virPCIVPDResourceCustomCompareIndex(virPCIVPDResourceCustom *a, virPCIVPDResourc
 bool
 virPCIVPDResourceCustomUpsertValue(GPtrArray *arr, char index, const char *const value);
 
-bool virPCIVPDParseVPDLargeResourceFields(int vpdFileFd, uint16_t resPos, uint16_t resDataLen,
-                                          bool readOnly, uint8_t *csum, virPCIVPDResource *res);
-
 bool virPCIVPDParseVPDLargeResourceString(int vpdFileFd, uint16_t resPos, uint16_t resDataLen,
                                           uint8_t *csum, virPCIVPDResource *res);