From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 82784A04DB for ; Tue, 10 Nov 2020 16:40:24 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4E29B2B93; Tue, 10 Nov 2020 16:40:23 +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 3238B2B93 for ; Tue, 10 Nov 2020 16:40:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1605022818; 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=fS1w255GyVOrKupwbjG+QB6nkt6ODTnevqsN9++nP6qdU9IAXx1f2UX5hETBhFR8nun+KZ IRzOkgMDNyafncg7A3hUtGAcywuZYhZjf2O1JlIt7zgABjEvGoF+AG8fdLx0AKcikqxzo/ q3Ekb0O7EjfkEFyxMdlGgun/wFu8x9Q= 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 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Subject: [dpdk-stable] [PATCH] devtools: fix directory filter in forbidden token check X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" 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 } -- 2.23.0