[dpdk-dev] [PATCH] devtools: ignore PREFER_FALLTHROUGH
Xia, Chenbo
chenbo.xia at intel.com
Tue Aug 4 10:00:56 CEST 2020
> -----Original Message-----
> From: Adrian Moreno <amorenoz at redhat.com>
> Sent: Tuesday, August 4, 2020 3:39 PM
> To: dev at dpdk.org
> Cc: thomas at monjalon.net; Xia, Chenbo <chenbo.xia at intel.com>;
> david.marchand at redhat.com; Adrian Moreno <amorenoz at redhat.com>
> Subject: [PATCH] devtools: ignore PREFER_FALLTHROUGH
>
> The PREFER_FALLTHROUGH check warns if a passthrough comment is found
> because, in the kernel, the special macro "fallthrough" is prefered.
>
> Since that keyword is not defined in DPDK, ignore the warning.
>
> Ignoring this check does not affect the MISSING_BREAK check that will warn if a
> switch case/default is not preceded by break or a fallthrough comment.
>
> Signed-off-by: Adrian Moreno <amorenoz at redhat.com>
> ---
> devtools/checkpatches.sh | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/devtools/checkpatches.sh b/devtools/checkpatches.sh index
> acf921ae0..4283ca82b 100755
> --- a/devtools/checkpatches.sh
> +++ b/devtools/checkpatches.sh
> @@ -33,7 +33,7 @@
> VOLATILE,PREFER_PACKED,PREFER_ALIGNED,PREFER_PRINTF,\
> PREFER_KERNEL_TYPES,BIT_MACRO,CONST_STRUCT,\
> SPLIT_STRING,LONG_LINE_STRING,C99_COMMENT_TOLERANCE,\
>
> LINE_SPACING,PARENTHESIS_ALIGNMENT,NETWORKING_BLOCK_COMMENT_
> STYLE,\
> -NEW_TYPEDEFS,COMPARISON_TO_NULL"
> +NEW_TYPEDEFS,COMPARISON_TO_NULL,PREFER_FALLTHROUGH"
> options="$options $DPDK_CHECKPATCH_OPTIONS"
>
> print_usage () {
> --
> 2.26.2
Acked-by: Chenbo Xia <chenbo.xia at intel.com>
More information about the dev
mailing list