From: Nipun Gupta Date: Fri, 30 Jun 2017 08:54:30 +0000 (+0530) Subject: bus/fslmc: change argument to const to avoid warning X-Git-Tag: spdx-start~2628 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=6070ce43345e2e7e09bc77d8a7417f2070605362;p=dpdk.git 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 --- diff --git a/drivers/bus/fslmc/qbman/include/fsl_qbman_portal.h b/drivers/bus/fslmc/qbman/include/fsl_qbman_portal.h index 39407c8c75..06bd0636d3 100644 --- a/drivers/bus/fslmc/qbman/include/fsl_qbman_portal.h +++ b/drivers/bus/fslmc/qbman/include/fsl_qbman_portal.h @@ -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 diff --git a/drivers/bus/fslmc/qbman/qbman_portal.c b/drivers/bus/fslmc/qbman/qbman_portal.c index 137b55db47..8002690ff3 100644 --- a/drivers/bus/fslmc/qbman/qbman_portal.c +++ b/drivers/bus/fslmc/qbman/qbman_portal.c @@ -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); }