diff mbox series

[v4,2/2] lib/pipeline: Fix gcc compilation error using ASan

Message ID 20210924022028.1291404-2-zhihongx.peng@intel.com (mailing list archive)
State Superseded
Headers show
Series [v4,1/2] Enable ASan for memory detector on DPDK | expand


Context Check Description
ci/github-robot: build success github build: passed
ci/intel-Testing success Testing PASS
ci/Intel-compilation success Compilation OK
ci/iol-x86_64-compile-testing success Testing PASS
ci/iol-intel-Functional success Functional Testing PASS
ci/iol-intel-Performance fail Performance Testing issues
ci/iol-mellanox-Performance success Performance Testing PASS
ci/iol-aarch64-compile-testing success Testing PASS
ci/iol-spell-check-testing warning Testing issues
ci/checkpatch success coding style OK

Commit Message

Peng, ZhihongX Sept. 24, 2021, 2:20 a.m. UTC
From: Zhihong Peng <zhihongx.peng@intel.com>

After adding ASan, the gcc compilation check will be stricter.
"Control reaches end of non-void function" error occurs here.

Fixes: f38913b7fb8e (pipeline: add meter array to SWX)
Cc: stable@dpdk.org

Signed-off-by: Xueqin Lin <xueqin.lin@intel.com>
Signed-off-by: Zhihong Peng <zhihongx.peng@intel.com>
 lib/pipeline/rte_swx_pipeline.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series


diff --git a/lib/pipeline/rte_swx_pipeline.c b/lib/pipeline/rte_swx_pipeline.c
index 8eb978a30c..aaa0107d02 100644
--- a/lib/pipeline/rte_swx_pipeline.c
+++ b/lib/pipeline/rte_swx_pipeline.c
@@ -6340,7 +6340,7 @@  instr_meter_translate(struct rte_swx_pipeline *p,
 		return 0;
+	return -EINVAL;
 static inline struct meter *
@@ -8025,7 +8025,7 @@  instr_translate(struct rte_swx_pipeline *p,
+	return -EINVAL;
 static struct instruction_data *