mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-10 07:20:02 +00:00
util: virpcivpd: Unexport 'virPCIVPDReadVPDBytes'
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>
This commit is contained in:
parent
1a994a9dc6
commit
4d229ef440
@ -3702,7 +3702,6 @@ virVHBAPathExists;
|
||||
virPCIVPDParse;
|
||||
virPCIVPDParseVPDLargeResourceFields;
|
||||
virPCIVPDParseVPDLargeResourceString;
|
||||
virPCIVPDReadVPDBytes;
|
||||
virPCIVPDResourceCustomCompareIndex;
|
||||
virPCIVPDResourceCustomFree;
|
||||
virPCIVPDResourceCustomUpsertValue;
|
||||
|
@ -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,
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user