bus/fslmc: change argument to const to avoid warning
qbman_get_dqrr_idx() API is required with constant dqrr entry in the eventdev driver. Also, this routine is not updating the dqrr. So, this patch updates its input argument to a const type. Signed-off-by: Nipun Gupta <nipun.gupta@nxp.com>
This commit is contained in:
parent
7223bd02ee
commit
6070ce4334
@ -349,7 +349,7 @@ void qbman_swp_dqrr_consume(struct qbman_swp *s, const struct qbman_result *dq);
|
||||
*
|
||||
* Return dqrr index.
|
||||
*/
|
||||
uint8_t qbman_get_dqrr_idx(struct qbman_result *dqrr);
|
||||
uint8_t qbman_get_dqrr_idx(const struct qbman_result *dqrr);
|
||||
|
||||
/**
|
||||
* qbman_get_dqrr_from_idx() - Use index to get the dqrr entry from the
|
||||
|
@ -1463,7 +1463,7 @@ int qbman_swp_CDAN_set_context_enable(struct qbman_swp *s, uint16_t channelid,
|
||||
1, ctx);
|
||||
}
|
||||
|
||||
uint8_t qbman_get_dqrr_idx(struct qbman_result *dqrr)
|
||||
uint8_t qbman_get_dqrr_idx(const struct qbman_result *dqrr)
|
||||
{
|
||||
return QBMAN_IDX_FROM_DQRR(dqrr);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user