From patchwork Tue Aug 4 07:38:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adrian Moreno X-Patchwork-Id: 75173 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9639BA053A; Tue, 4 Aug 2020 09:38:58 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0DBC92BE2; Tue, 4 Aug 2020 09:38:57 +0200 (CEST) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by dpdk.org (Postfix) with ESMTP id 179362BB5 for ; Tue, 4 Aug 2020 09:38:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1596526736; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Md/8MFutT2X0Y3BCOJhJDVo5EZT+SM56O4RCiRFqTbM=; b=hvOUU5Tabar1gGIEMltSDqGTMj5q5JHfZ1PYYMYOJGLodd2X1jtHr/eVlo163pcKpZc1BR C9MjGgLN3ShBWECX5cXPeIikMtF9Xv6eJbt0apVxGkkKxUqug26zTYJnJY90kKWZ0KMmr6 3owgGp6Tg7yfXZHu9Sn8e3OHGVyfpk4= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-27-EVrJru7TPa-lBT2eJvYQgg-1; Tue, 04 Aug 2020 03:38:54 -0400 X-MC-Unique: EVrJru7TPa-lBT2eJvYQgg-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 99617101C8A0; Tue, 4 Aug 2020 07:38:53 +0000 (UTC) Received: from amorenoz.users.ipa.redhat.com (ovpn-113-91.ams2.redhat.com [10.36.113.91]) by smtp.corp.redhat.com (Postfix) with ESMTP id C2D3A60BF3; Tue, 4 Aug 2020 07:38:48 +0000 (UTC) From: Adrian Moreno To: dev@dpdk.org Cc: thomas@monjalon.net, chenbo.xia@intel.com, david.marchand@redhat.com, Adrian Moreno Date: Tue, 4 Aug 2020 09:38:37 +0200 Message-Id: <20200804073837.88189-1-amorenoz@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=amorenoz@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Subject: [dpdk-dev] [PATCH] devtools: ignore PREFER_FALLTHROUGH X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 Acked-by: Ferruh Yigit Acked-by: Chenbo Xia --- 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 () {