From: Adrian Moreno Date: Tue, 4 Aug 2020 07:38:37 +0000 (+0200) Subject: devtools: ignore Linux-style fallthrough warning X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=fcea4c8e29b68959cebb0577ca6eebebc39e8eee;p=dpdk.git devtools: ignore Linux-style fallthrough warning The PREFER_FALLTHROUGH check warns if a passthrough comment is found because, in the kernel, the special macro "fallthrough" is preferred. 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 Acked-by: Ferruh Yigit Acked-by: Chenbo Xia --- diff --git a/devtools/checkpatches.sh b/devtools/checkpatches.sh index acf921ae0d..b5191df08f 100755 --- a/devtools/checkpatches.sh +++ b/devtools/checkpatches.sh @@ -30,7 +30,7 @@ options="$options --show-types" options="$options --ignore=LINUX_VERSION_CODE,ENOSYS,\ FILE_PATH_CHANGES,MAINTAINERS_STYLE,SPDX_LICENSE_TAG,\ VOLATILE,PREFER_PACKED,PREFER_ALIGNED,PREFER_PRINTF,\ -PREFER_KERNEL_TYPES,BIT_MACRO,CONST_STRUCT,\ +PREFER_KERNEL_TYPES,PREFER_FALLTHROUGH,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"