[PATCH] pipeline: fix build with sanitizers or debug options

Dumitrescu, Cristian cristian.dumitrescu at intel.com
Fri Mar 20 18:38:31 CET 2026



> -----Original Message-----
> From: David Marchand <david.marchand at redhat.com>
> Sent: Friday, March 20, 2026 1:33 PM
> To: dev at dpdk.org
> Cc: stable at dpdk.org; Dumitrescu, Cristian <cristian.dumitrescu at intel.com>
> Subject: [PATCH] pipeline: fix build with sanitizers or debug options
> 
> Similar to commit 84f5ac9418ea ("pipeline: fix build with ASan").
> 
> Here we are again. Depending on options (like debug, or ASan, or UBSan),
> compilation can fail because of dumb construct like CHECK(0, XXX).
> Dumb, because such an expression macro expands as: if (0) return -XXX;
> 
> ../lib/pipeline/rte_swx_pipeline.c: In function ‘instr_movh_translate’:
> ../lib/pipeline/rte_swx_pipeline.c:3461:1: error: control reaches end of
> 	non-void function [-Werror=return-type]
>  3461 | }
>       | ^
> 
> Remove any such call when at the end of functions, using a regexp:
> %s/CHECK(0, \(.*\))\(;\n}\)/return -\1\2/
> 
> Cc: stable at dpdk.org
> 
> Signed-off-by: David Marchand <david.marchand at redhat.com>
> ---

Acked-by: Cristian Dumitrescu <cristian.dumitrescu at intel.com>


More information about the dev mailing list