Skip to content

Commit e37d5cc

Browse files
committed
Fix for error: unused function 'IntelQaFreeFlatBuffer'.
1 parent 6323ee5 commit e37d5cc

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

wolfcrypt/src/port/intel/quickassist.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ static WC_INLINE int IntelQaAllocFlatBuffer(CpaFlatBuffer* buf, int size, void*
207207
buf->dataLenInBytes = size;
208208
return 0;
209209
}
210+
#ifdef WOLFSSL_KEY_GEN
210211
static WC_INLINE void IntelQaFreeFlatBuffer(CpaFlatBuffer* buf, void* heap)
211212
{
212213
if (buf && buf->pData) {
@@ -215,6 +216,7 @@ static WC_INLINE void IntelQaFreeFlatBuffer(CpaFlatBuffer* buf, void* heap)
215216
buf->dataLenInBytes = 0;
216217
}
217218
}
219+
#endif
218220
static WC_INLINE int IntelQaBigIntToFlatBuffer(WC_BIGINT* src, CpaFlatBuffer* dst)
219221
{
220222
if (src == NULL || src->buf == NULL || dst == NULL) {
@@ -558,6 +560,10 @@ int IntelQaOpen(WC_ASYNC_DEV* dev, int devId)
558560
dev->qat.devId = devId;
559561
dev->qat.handle = g_cyInstances[devId];
560562

563+
#ifdef QAT_DEBUG
564+
printf("IntelQaOpen %p\n", dev);
565+
#endif
566+
561567
#ifdef QAT_USE_POLLING_THREAD
562568
/* start polling thread */
563569
IntelQaStartPollingThread(dev);

0 commit comments

Comments
 (0)