summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 533aec7)
raw | patch | inline | side by side (parent: 533aec7)
author | Aravind Batni <aravindbr@ti.com> | |
Wed, 29 Apr 2015 16:42:43 +0000 (12:42 -0400) | ||
committer | Aravind Batni <aravindbr@ti.com> | |
Wed, 29 Apr 2015 16:42:43 +0000 (12:42 -0400) |
index b84012155ab05002549e3cebf20f660fb884735f..79b4749e0d7e852d73905f55262db25569b4c976 100644 (file)
--- a/salld.h
+++ b/salld.h
void salld_form_32bits_util(uint32_t* cmdLb, uint8_t index, uint8_t offset, uint8_t* bPtr, uint8_t bSize)
{
uint32_t temp = 0;
- uint32_t bIndex = 0;
+ int bIndex = 0;
int8_t iShift = 8 *( 3 - offset);
int w32Size, bytesInlast32bWord;
diff --git a/src/auth/salldmd5.c b/src/auth/salldmd5.c
index e2000240cfb51e89e000571739015abb1ed961b4..e89d73cf34e687e1fbadfca29d74ccc0b66f40b8 100644 (file)
--- a/src/auth/salldmd5.c
+++ b/src/auth/salldmd5.c
md5Inst->Nl = l;
/* process the first partial block */
- if (j = md5Inst->num)
+ if ((j = md5Inst->num))
{
p = md5Inst->data;
i = j >> 2;
index d8e05e45deb6ccd4f6c5996b2f361c88123949db..e8b8b16ec75dc54a70e6ce6be7a4bd25d42bbe76 100644 (file)
***************************************************************************/
static uint16_t salld_ac_key_allocation_bitmap_allocate(int numBlocks, uint32_t * scratchAllocBitMap)
{
- uint32_t i = 0, j = 0;
+ int i = 0, j = 0;
uint16_t freeBlockOffsetInBytes = 0;
uint32_t allocBitMapTmp;
index 73382f863d625a5ce5025203303aa5ef15747f66..1f637d72ec6a6e7911860909a26ff73d17cce3ab 100644 (file)
Sa_AcConfigParams_t *pRxConfig = &pRxComInfo->config;
Sa_ScReqInfo_t* pScInfo;
int16_t ret = sa_ERR_OK;
- int coreNum = (int)Sa_osalGetProcId();
+ // int coreNum = (int)Sa_osalGetProcId();
/* Release all active SALLD channel and security context */
if (SALLD_TEST_STATE_TX_ON(&inst->salldInst))
index 6c53246fed122a90b1d5fc9e47030ab21898654a..2e655f298eacf17a0f1e66b4dd22be676fcd4bc3 100644 (file)
void salld_cmdLbl_util(uint32_t* cmdLb, uint8_t index, uint8_t offset, uint8_t* bPtr, uint8_t bSize)
{
uint32_t temp = 0;
- uint32_t bIndex = 0;
+ int bIndex = 0;
int8_t iShift = 8 *( 3 - offset);
int w32Size, bytesInlast32bWord;
index 27fb28f8c4cb5d9ebd2da78f516d68d752ddb77e..ed3f415e38f1bb2be3fd176897b9fa170295a03f 100644 (file)
ahHdrSize = IPSEC_AH_BASIC_SIZE_BYTES + pConfig->macSize + pConfig->ivSize;
ipVerLen = pktRead8bits_m(pktIn, IPV4_BYTE_OFFSET_VER_HLEN);
- if (f_ipV6 = ((ipVerLen & IPV4_VER_MASK) == IPV6_VER_VALUE))
+ if ((f_ipV6 = ((ipVerLen & IPV4_VER_MASK) == IPV6_VER_VALUE)))
{
/* IPV6 requires that All header to be 8-byte aligned */
ahHdrSize = SALLD_ROUND_UP(ahHdrSize, 8);
@@ -269,7 +269,7 @@ static int16_t salld_ah_receive_data_update (salldIpsecInst_t *inst, Sa_PktInfo_
ipVerLen = pktRead8bits_m(pIP, IPV4_BYTE_OFFSET_VER_HLEN);
- if (f_ipV6 = ((ipVerLen & IPV4_VER_MASK) == IPV6_VER_VALUE))
+ if ((f_ipV6 = ((ipVerLen & IPV4_VER_MASK) == IPV6_VER_VALUE)))
{
ipLen = IPV6_HDR_SIZE_BYTES;
payloadLen = pktRead16bits_m(pIP, IPV6_BYTE_OFFSET_PLEN) + IPV6_HDR_SIZE_BYTES;
diff --git a/src/salldcom.c b/src/salldcom.c
index a4425788619b3370b106c7cd634d3a158f98c8fe..905da4fb35981c39473380f78a1f9e97c4d41e18 100644 (file)
--- a/src/salldcom.c
+++ b/src/salldcom.c
espHdrSize = IPSEC_ESP_HDR_BASIC_SIZE_BYTES + info->ivSize;
ipVerLen = pktRead8bits_m(pktIn, IPV4_BYTE_OFFSET_VER_HLEN);
- if (f_ipV6 = ((ipVerLen & IPV4_VER_MASK) == IPV6_VER_VALUE))
+ if ((f_ipV6 = ((ipVerLen & IPV4_VER_MASK) == IPV6_VER_VALUE)))
{
/* IPV6 requires that All header to be 8-byte aligned */
espHdrSize = SALLD_ROUND_UP(espHdrSize, 8);
ipVerLen = pktRead8bits_m(pIP, IPV4_BYTE_OFFSET_VER_HLEN);
- if (f_ipV6 = ((ipVerLen & IPV4_VER_MASK) == IPV6_VER_VALUE))
+ if ((f_ipV6 = ((ipVerLen & IPV4_VER_MASK) == IPV6_VER_VALUE)))
{
ipLen = IPV6_HDR_SIZE_BYTES;
diff --git a/src/salldloc.h b/src/salldloc.h
index ce9a489cb807cdf6907ddf7ad0de6c44804e2ceb..241dd2dab3b6663952e6a04814ef7bd6d40930f8 100644 (file)
--- a/src/salldloc.h
+++ b/src/salldloc.h
#include <ti/drv/sa/sa_osal.h>
#include "src/salldport.h"
#include "src/salldctx.h"
+
+/*
+ * Shut off: remark #880-D: parameter "descType" was never referenced
+*
+* This is better than removing the argument since removal would break
+* backwards compatibility
+*/
+#ifdef _TMS320C6X
+#pragma diag_suppress 880
+#pragma diag_suppress 681
+#elif defined(__GNUC__)
+/* Same for GCC:
+* warning: unused parameter descType [-Wunused-parameter]
+*/
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wunused-parameter"
+#pragma GCC diagnostic ignored "-Wunused-function"
+#pragma GCC diagnostic ignored "-Wunknown-pragmas"
+#endif
#define SALLD_RTP_HEADER_SIZE_IN_BYTE (12) /* RTP Header Size without CSRC */
#define SALLD_HMAC_MAX_DIGEST_LEN_IN_TUINT (16) /* For SHA2-256 */
#define SALLD_TEST_STATE_SHARED(a) UTL_GET_BITFIELD((a)->stateBitfield, 15, 1)
uint32_t ownerInstOffset; /* offset to the owner instance */
- int protoTblIndex; /* protocal table index */
+ uint32_t protoTblIndex; /* protocal table index */
uint32_t shadowInstOffset; /* Shadow instance offset */
uint16_t updateCnt; /* Number of times that channel has been re-configured */
#define SALLD_ENG_SELECT_NA 0xFFFF