From a50ec604728431a60ff177a887e3bfee0ebec9bb Mon Sep 17 00:00:00 2001 From: Radu Bulie Date: Wed, 29 May 2013 09:52:48 +0000 Subject: dpa_offload: Fix compilation issue for storage profile id parameter For FMAN versions lower than 3, storage profile is not avalilable. This patch adds the DPAA_VERSION flag to eliminate the compiling errors. Signed-off-by: Radu Bulie Change-Id: Ie040d782b5eff06a8cca32fe855938b818ef3875 Reviewed-on: http://git.am.freescale.net:8181/2752 Tested-by: Review Code-CDREVIEW Reviewed-by: Bulie Radu-Andrei-B37577 Reviewed-by: Chereji Marian-Cornel-R27762 Reviewed-by: Fleming Andrew-AFLEMING Tested-by: Fleming Andrew-AFLEMING diff --git a/drivers/staging/fsl_dpa_offload/dpa_classifier.c b/drivers/staging/fsl_dpa_offload/dpa_classifier.c index 937282f..6b8097f 100644 --- a/drivers/staging/fsl_dpa_offload/dpa_classifier.c +++ b/drivers/staging/fsl_dpa_offload/dpa_classifier.c @@ -2971,9 +2971,11 @@ static int action_to_next_engine_params(const struct dpa_cls_tbl_action *action, next_engine_params->params. enqueueParams.overrideFqid = TRUE; +#if (DPAA_VERSION >= 11) next_engine_params->params.enqueueParams. newRelativeStorageProfileId = action->enq_params.new_rel_vsp_id; +#endif } if (action->enable_statistics) -- cgit v0.10.2