From patchwork Tue Nov 10 15:40:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Marchand X-Patchwork-Id: 83903 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 A0BEBA04DB; Tue, 10 Nov 2020 16:40:30 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7F059323C; Tue, 10 Nov 2020 16:40:29 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by dpdk.org (Postfix) with ESMTP id 6BAAC323C for ; Tue, 10 Nov 2020 16:40:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1605022825; 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=jC2hlhl+ExhiDiEiJsKtNn9tS2rrKlU5RQ6ciS5ylns=; b=MXojtf6c0BKDMyfy/IR8hK5W8DGgmxMnkGLBT0Ro0gZcKVj6YqiK57cbTEF7q6scrigP60 sOOpLRdPT4fssbwazkSoJHs6E3JTuOtZZFfNiQFypNQ+hxCnGYIQGy+M/LBHUZPMTMH5fR fq7YJws1JrREaDqiFqbZKbE/8Zy9lU0= 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-25-gq2a4Z9VMQyUXI5pi5oKQQ-1; Tue, 10 Nov 2020 10:40:13 -0500 X-MC-Unique: gq2a4Z9VMQyUXI5pi5oKQQ-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 0B354809DE4; Tue, 10 Nov 2020 15:40:12 +0000 (UTC) Received: from dmarchan.remote.csb (unknown [10.40.193.78]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2E97F27BA3; Tue, 10 Nov 2020 15:40:09 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: thomas@monjalon.net, stable@dpdk.org Date: Tue, 10 Nov 2020 16:40:05 +0100 Message-Id: <20201110154005.9035-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=david.marchand@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Subject: [dpdk-dev] [PATCH] devtools: fix directory filter in forbidden token check 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" checkpatches.sh current complains on a patch [1] adding ALLOW_EXPERIMENTAL_API in an example while this check is for app, lib and drivers directories: Warning in examples/ethtool/ethtool-app/Makefile: Using experimental build flag for in-tree compilation The regexp on entering files concerned by this filter is incorrect. In the [1] case, the file full name is matched against "app" rather than "+++ b/app". 1: https://patchwork.dpdk.org/patch/83902/ Fixes: 7413e7f2aeb3 ("devtools: alert on new calls to exit from libs") Cc: stable@dpdk.org Signed-off-by: David Marchand --- devtools/check-forbidden-tokens.awk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devtools/check-forbidden-tokens.awk b/devtools/check-forbidden-tokens.awk index f86cbe8dc1..61ba707c9b 100755 --- a/devtools/check-forbidden-tokens.awk +++ b/devtools/check-forbidden-tokens.awk @@ -54,7 +54,7 @@ BEGIN { } for (i in deny_folders) { re = "^\\+\\+\\+ b/" deny_folders[i]; - if ($0 ~ deny_folders[i]) { + if ($0 ~ re) { in_file = 1 last_file = $0 }