util: virpcivpd: Unexport 'virPCIVPDParseVPDLargeResourceString'

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Peter Krempa 2024-01-29 17:58:17 +01:00
parent 78e17cd550
commit 810a3ca980
3 changed files with 1 additions and 17 deletions

View File

@ -3700,7 +3700,6 @@ virVHBAPathExists;
# util/virpcivpd.h # util/virpcivpd.h
virPCIVPDParse; virPCIVPDParse;
virPCIVPDParseVPDLargeResourceString;
virPCIVPDResourceCustomCompareIndex; virPCIVPDResourceCustomCompareIndex;
virPCIVPDResourceCustomFree; virPCIVPDResourceCustomFree;
virPCIVPDResourceCustomUpsertValue; virPCIVPDResourceCustomUpsertValue;

View 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 * Returns: a pointer to a VPDResource which needs to be freed by the caller or
* NULL if getting it failed for some reason. * NULL if getting it failed for some reason.
*/ */
bool static bool
virPCIVPDParseVPDLargeResourceString(int vpdFileFd, uint16_t resPos, virPCIVPDParseVPDLargeResourceString(int vpdFileFd, uint16_t resPos,
uint16_t resDataLen, uint8_t *csum, virPCIVPDResource *res) uint16_t resDataLen, uint8_t *csum, virPCIVPDResource *res)
{ {
@ -732,18 +732,6 @@ virPCIVPDParse(int vpdFileFd)
#else /* ! __linux__ */ #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 * virPCIVPDResource *
virPCIVPDParse(int vpdFileFd G_GNUC_UNUSED) virPCIVPDParse(int vpdFileFd G_GNUC_UNUSED)
{ {

View File

@ -68,6 +68,3 @@ virPCIVPDResourceCustomCompareIndex(virPCIVPDResourceCustom *a, virPCIVPDResourc
bool bool
virPCIVPDResourceCustomUpsertValue(GPtrArray *arr, char index, const char *const value); virPCIVPDResourceCustomUpsertValue(GPtrArray *arr, char index, const char *const value);
bool virPCIVPDParseVPDLargeResourceString(int vpdFileFd, uint16_t resPos, uint16_t resDataLen,
uint8_t *csum, virPCIVPDResource *res);