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 A6BFE45B08; Thu, 10 Oct 2024 19:00:55 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7F317402A3; Thu, 10 Oct 2024 19:00:55 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id BD6A240144 for ; Thu, 10 Oct 2024 19:00:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1728579653; 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=oQPBkwZnlzIxmvAWjWX5PoHs6frLBsu68aIwgj9f3/I=; b=Gf48XZOf8TI13nmKYllMISIxsaShv0ufxZOIq9QdxQJ64jrMxM7ph25mO3An2p4aRfM9xZ AMZISX+ZY00P1pr9KNSxubCKXjB51sMK52RhWUqUCiWkUejf3SP+9ziwabQankJehzGMr2 rd37YOoUOg6RY57ev8Cpn3NnERwbKfw= Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-673-fejVAh5fMPuInxlPQfIpRQ-1; Thu, 10 Oct 2024 13:00:52 -0400 X-MC-Unique: fejVAh5fMPuInxlPQfIpRQ-1 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id DC6471956046; Thu, 10 Oct 2024 17:00:50 +0000 (UTC) Received: from dmarchan.redhat.com (unknown [10.45.224.68]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 9358A300019E; Thu, 10 Oct 2024 17:00:49 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: Thomas Monjalon Subject: [PATCH] devtools: exclude common EAL header from attribute check Date: Thu, 10 Oct 2024 19:00:42 +0200 Message-ID: <20241010170042.2719147-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 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 With the addition of SKIP_FILES in commit 7e421ae345f4 ("devtools: support skipping forbid rule check"), it is possible to avoid false positive on adding attribute wrapper in rte_common.h. Signed-off-by: David Marchand --- devtools/checkpatches.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/devtools/checkpatches.sh b/devtools/checkpatches.sh index 0ab841bd5a..c23792025a 100755 --- a/devtools/checkpatches.sh +++ b/devtools/checkpatches.sh @@ -89,6 +89,7 @@ check_forbidden_additions() { # # refrain from using compiler attribute without defining a common macro awk -v FOLDERS="lib drivers app examples" \ + -v SKIP_FILES='lib/eal/include/rte_common.h' \ -v EXPRESSIONS="__attribute__" \ -v RET_ON_FAIL=1 \ -v MESSAGE='Using compiler attribute directly' \ -- 2.46.2