From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 32BD8428CD; Tue, 4 Apr 2023 14:36:56 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B300A40EF0; Tue, 4 Apr 2023 14:36:55 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 4507C40A7E for ; Tue, 4 Apr 2023 14:36:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1680611813; 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=Oi6/aT6dEhRT2u6IEUPqoqwRe37/dbRAbWN6G2hl2Ls=; b=IefC3cLWcShPFKJuFPsOsPEreXYH+L+o/QLOLZZ0IMgjJ9rwd/OBpXBaI+KZKjZ0KRBKFA OgZpymqnjmBwYLAOxkn6nkeNTntiwFOqdsQR+BWRW5O3Er0bfEUWTmm5eHH/bF9biiLUPr hlJb1KrGIOfI3u4BDPF0vIkVldQkG2w= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-468-feU2lhrIPjKeMR1G3YTjTg-1; Tue, 04 Apr 2023 08:36:52 -0400 X-MC-Unique: feU2lhrIPjKeMR1G3YTjTg-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 075A929ABA0B; Tue, 4 Apr 2023 12:36:52 +0000 (UTC) Received: from dmarchan.redhat.com (unknown [10.45.225.38]) by smtp.corp.redhat.com (Postfix) with ESMTP id 489CB40CF8F0; Tue, 4 Apr 2023 12:36:51 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: Thomas Monjalon Subject: [PATCH] devtools: suppress checkpatch warning on some kernel macro Date: Tue, 4 Apr 2023 14:36:47 +0200 Message-Id: <20230404123647.404-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Kernel checkpatch.pl is confused about RTE_BUILD_BUG_ON() and warns as if our code was calling the kernel macro BUG_ON(). This does not make sense in the DPDK userspace code and the Linux kernel module hosted in our repository (kernel/linux/kni) won't make it upstream. Disable this warning. Signed-off-by: David Marchand --- devtools/checkpatches.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devtools/checkpatches.sh b/devtools/checkpatches.sh index a07bbc83cb..4eac45036a 100755 --- a/devtools/checkpatches.sh +++ b/devtools/checkpatches.sh @@ -33,7 +33,7 @@ VOLATILE,PREFER_PACKED,PREFER_ALIGNED,PREFER_PRINTF,STRLCPY,\ 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" +NEW_TYPEDEFS,COMPARISON_TO_NULL,AVOID_BUG" options="$options $DPDK_CHECKPATCH_OPTIONS" print_usage () { -- 2.39.2