]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
util: virpcivpd: Unexport 'virPCIVPDParseVPDLargeResourceString'
authorPeter Krempa <pkrempa@redhat.com>
Mon, 29 Jan 2024 16:58:17 +0000 (17:58 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 31 Jan 2024 16:24:07 +0000 (17:24 +0100)
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 89b0d01de6624de9f63d1f9a663aac7bd7514f0f..035f8c7b5d65e9191d227fb706a74f689af172eb 100644 (file)
@@ -3700,7 +3700,6 @@ virVHBAPathExists;
 # util/virpcivpd.h
 
 virPCIVPDParse;
-virPCIVPDParseVPDLargeResourceString;
 virPCIVPDResourceCustomCompareIndex;
 virPCIVPDResourceCustomFree;
 virPCIVPDResourceCustomUpsertValue;
index 510be65cb6cae03898cd3ce3eff7a8782eaa1775..b303e161ae350a3b06ec63ad267a0934920eb3f7 100644 (file)
@@ -595,7 +595,7 @@ virPCIVPDParseVPDLargeResourceFields(int vpdFileFd, uint16_t resPos, uint16_t re
  * 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
 virPCIVPDParseVPDLargeResourceString(int vpdFileFd, uint16_t resPos,
                                      uint16_t resDataLen, uint8_t *csum, virPCIVPDResource *res)
 {
@@ -732,18 +732,6 @@ virPCIVPDParse(int vpdFileFd)
 
 #else /* ! __linux__ */
 
-bool
-virPCIVPDParseVPDLargeResourceString(int vpdFileFd G_GNUC_UNUSED,
-                                     uint16_t resPos G_GNUC_UNUSED,
-                                     uint16_t resDataLen 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 d84f1e9c8af9ef1a06660a54486e07890c5677c6..617991930b13279c139a09776e482d16ebc6f2c3 100644 (file)
@@ -68,6 +68,3 @@ virPCIVPDResourceCustomCompareIndex(virPCIVPDResourceCustom *a, virPCIVPDResourc
 
 bool
 virPCIVPDResourceCustomUpsertValue(GPtrArray *arr, char index, const char *const value);
-
-bool virPCIVPDParseVPDLargeResourceString(int vpdFileFd, uint16_t resPos, uint16_t resDataLen,
-                                          uint8_t *csum, virPCIVPDResource *res);