]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
util: virpcivpd: Unexport 'virPCIVPDReadVPDBytes'
authorPeter Krempa <pkrempa@redhat.com>
Wed, 24 Jan 2024 13:58:52 +0000 (14:58 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 31 Jan 2024 16:24:07 +0000 (17:24 +0100)
The function is no longer used outside of virpcivpd.c

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 fc261090297746ffaa2c6eb058bc13a0338a92c8..dbc4e26d79f9a37db851ae4e4a4daa7591a9ca37 100644 (file)
@@ -3702,7 +3702,6 @@ virVHBAPathExists;
 virPCIVPDParse;
 virPCIVPDParseVPDLargeResourceFields;
 virPCIVPDParseVPDLargeResourceString;
-virPCIVPDReadVPDBytes;
 virPCIVPDResourceCustomCompareIndex;
 virPCIVPDResourceCustomFree;
 virPCIVPDResourceCustomUpsertValue;
index 81c7c317b3439f12cc91dc1accc30aa00e9adc21..373321a836004b5707244b27a611c847234dc11a 100644 (file)
@@ -401,7 +401,7 @@ virPCIVPDResourceUpdateKeyword(virPCIVPDResource *res, const bool readOnly,
  * descriptor, it is reported and -1 is returned to the caller. If EOF is occurred, 0 is returned
  * to the caller.
  */
-size_t
+static size_t
 virPCIVPDReadVPDBytes(int vpdFileFd, uint8_t *buf, size_t count, off_t offset, uint8_t *csum)
 {
     ssize_t numRead = pread(vpdFileFd, buf, count, offset);
@@ -732,18 +732,6 @@ virPCIVPDParse(int vpdFileFd)
 
 #else /* ! __linux__ */
 
-size_t
-virPCIVPDReadVPDBytes(int vpdFileFd G_GNUC_UNUSED,
-                      uint8_t *buf G_GNUC_UNUSED,
-                      size_t count G_GNUC_UNUSED,
-                      off_t offset G_GNUC_UNUSED,
-                      uint8_t *csum G_GNUC_UNUSED)
-{
-    virReportError(VIR_ERR_NO_SUPPORT, "%s",
-                   _("PCI VPD reporting not available on this platform"));
-    return 0;
-}
-
 bool
 virPCIVPDParseVPDLargeResourceString(int vpdFileFd G_GNUC_UNUSED,
                                      uint16_t resPos G_GNUC_UNUSED,
index 0f565f81ae0f35bbc56313b28eae2940efda5e15..17e6e14ab7ed18a2395ea2b4821b4b27aefe874f 100644 (file)
@@ -69,9 +69,6 @@ virPCIVPDResourceCustomCompareIndex(virPCIVPDResourceCustom *a, virPCIVPDResourc
 bool
 virPCIVPDResourceCustomUpsertValue(GPtrArray *arr, char index, const char *const value);
 
-size_t
-virPCIVPDReadVPDBytes(int vpdFileFd, uint8_t *buf, size_t count, off_t offset, uint8_t *csum);
-
 bool virPCIVPDParseVPDLargeResourceFields(int vpdFileFd, uint16_t resPos, uint16_t resDataLen,
                                           bool readOnly, uint8_t *csum, virPCIVPDResource *res);