dpaa: Fix warnings in dtsec(4) found by clang
These are all trivial warnings that have no real functional change.
This commit is contained in:
parent
51e79affa3
commit
aef13f050c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=351322
@ -658,7 +658,7 @@ t_Error FmHcPcdKgSetClsPlan(t_Handle h_FmHc, t_FmPcdKgInterModuleClsPlanSet *p_S
|
||||
p_HcFrame->extraReg = HC_HCOR_KG_SCHEME_REGS_MASK;
|
||||
|
||||
idx = (uint8_t)(i - p_Set->baseEntry);
|
||||
memcpy(&p_HcFrame->hcSpecificData.clsPlanEntries, &p_Set->vectors[idx], CLS_PLAN_NUM_PER_GRP*sizeof(uint32_t));
|
||||
memcpy(__DEVOLATILE(uint32_t *, &p_HcFrame->hcSpecificData.clsPlanEntries), &p_Set->vectors[idx], CLS_PLAN_NUM_PER_GRP*sizeof(uint32_t));
|
||||
p_HcFrame->commandSequence = seqNum;
|
||||
|
||||
BUILD_FD(sizeof(t_HcFrame));
|
||||
|
@ -895,7 +895,7 @@ static t_Handle BuildNewAd(
|
||||
|
||||
XX_Free(p_FmPcdCcNodeTmp);
|
||||
|
||||
return E_OK;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static t_Error DynamicChangeHc(
|
||||
|
@ -1478,7 +1478,6 @@ static t_Error CalcWredCurve(t_QmCgWredCurve *p_WredCurve, uint32_t *p_CurveWor
|
||||
}
|
||||
sa = sa/pres;
|
||||
ASSERT_COND(sa<128 && sa>=64);
|
||||
sn = sn;
|
||||
ASSERT_COND(sn<64 && sn>=7);
|
||||
|
||||
*p_CurveWord = ((ma << 24) |
|
||||
|
@ -57,8 +57,12 @@
|
||||
|
||||
#include <machine/endian.h>
|
||||
|
||||
#ifndef __BYTE_ORDER__
|
||||
#define __BYTE_ORDER__ BYTE_ORDER
|
||||
#endif
|
||||
#ifndef __ORDER_BIG_ENDIAN__
|
||||
#define __ORDER_BIG_ENDIAN__ BIG_ENDIAN
|
||||
#endif
|
||||
|
||||
/**************************************************************************//**
|
||||
@Description Frame descriptor
|
||||
|
2
sys/contrib/ncsw/user/env/xx.c
vendored
2
sys/contrib/ncsw/user/env/xx.c
vendored
@ -646,7 +646,7 @@ XX_IpcInitSession(char destAddr[XX_IPC_MAX_ADDR_NAME_LENGTH],
|
||||
|
||||
/* Should not be called */
|
||||
printf("NetCommSW: Unimplemented function %s() called!\n", __func__);
|
||||
return (E_OK);
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
t_Error
|
||||
|
@ -86,10 +86,10 @@ enum dtsec_rm_pool_params {
|
||||
DTSEC_RM_POOL_FI_MAX_SIZE = 256,
|
||||
};
|
||||
|
||||
#define DTSEC_RM_FQR_RX_CHANNEL e_QM_FQ_CHANNEL_POOL1
|
||||
#define DTSEC_RM_FQR_TX_CONF_CHANNEL e_QM_FQ_CHANNEL_SWPORTAL0
|
||||
enum dtsec_rm_fqr_params {
|
||||
DTSEC_RM_FQR_RX_CHANNEL = e_QM_FQ_CHANNEL_POOL1,
|
||||
DTSEC_RM_FQR_RX_WQ = 1,
|
||||
DTSEC_RM_FQR_TX_CONF_CHANNEL = e_QM_FQ_CHANNEL_SWPORTAL0,
|
||||
DTSEC_RM_FQR_TX_WQ = 1,
|
||||
DTSEC_RM_FQR_TX_CONF_WQ = 1
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user