* [dpdk-stable] [PATCH v4 2/2] lib/pipeline: Fix gcc compilation error using ASan [not found] <20210924021630.1291343-1-zhihongx.peng@intel.com> @ 2021-09-24 2:16 ` zhihongx.peng 0 siblings, 0 replies; 2+ messages in thread From: zhihongx.peng @ 2021-09-24 2:16 UTC (permalink / raw) To: anatoly.burakov, konstantin.ananyev, stephen Cc: dev, xueqin.lin, Zhihong Peng, stable 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 --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; } - CHECK(0, EINVAL); + return -EINVAL; } static inline struct meter * @@ -8025,7 +8025,7 @@ instr_translate(struct rte_swx_pipeline *p, instr, data); - CHECK(0, EINVAL); + return -EINVAL; } static struct instruction_data * -- 2.25.1 ^ permalink raw reply [flat|nested] 2+ messages in thread
[parent not found: <20210918074155.872358-1-zhihongx.peng@intel.com>]
[parent not found: <20210924022028.1291404-1-zhihongx.peng@intel.com>]
* [dpdk-stable] [PATCH v4 2/2] lib/pipeline: Fix gcc compilation error using ASan [not found] ` <20210924022028.1291404-1-zhihongx.peng@intel.com> @ 2021-09-24 2:20 ` zhihongx.peng 0 siblings, 0 replies; 2+ messages in thread From: zhihongx.peng @ 2021-09-24 2:20 UTC (permalink / raw) To: anatoly.burakov, konstantin.ananyev, stephen Cc: dev, xueqin.lin, Zhihong Peng, stable 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 --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; } - CHECK(0, EINVAL); + return -EINVAL; } static inline struct meter * @@ -8025,7 +8025,7 @@ instr_translate(struct rte_swx_pipeline *p, instr, data); - CHECK(0, EINVAL); + return -EINVAL; } static struct instruction_data * -- 2.25.1 ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-09-24 2:30 UTC | newest] Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <20210924021630.1291343-1-zhihongx.peng@intel.com> 2021-09-24 2:16 ` [dpdk-stable] [PATCH v4 2/2] lib/pipeline: Fix gcc compilation error using ASan zhihongx.peng [not found] <20210918074155.872358-1-zhihongx.peng@intel.com> [not found] ` <20210924022028.1291404-1-zhihongx.peng@intel.com> 2021-09-24 2:20 ` zhihongx.peng
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).