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 0337EA0564 for ; Mon, 23 Mar 2020 09:13:40 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DBD761C06D; Mon, 23 Mar 2020 09:13:39 +0100 (CET) Received: from us-smtp-delivery-74.mimecast.com (us-smtp-delivery-74.mimecast.com [216.205.24.74]) by dpdk.org (Postfix) with ESMTP id DFE8D1C036 for ; Mon, 23 Mar 2020 09:13:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1584951216; 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: in-reply-to:in-reply-to:references:references; bh=4QKDU82BHtfgGG5aVRynHfK9pzAnli/BA17uXLZJZkI=; b=bKyPTBZE2ibltyKqG/bui4wpsEE9Jnvv5ahKo4molhp2r5JSid0PbZozmIYLOqpvkIDGKc U4i3dHUR94+ykeNn/C1O4S/hSNNcJiHW25cN912vxC8tZpiAHR8l/oN41cwSNLfBbuBr++ qM263Zo212ZTVv+x8PsWx+8IBTl1mD4= Received: from mail-io1-f72.google.com (mail-io1-f72.google.com [209.85.166.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-321-qtxYLTFOPam2pKBBEni01g-1; Mon, 23 Mar 2020 04:13:34 -0400 X-MC-Unique: qtxYLTFOPam2pKBBEni01g-1 Received: by mail-io1-f72.google.com with SMTP id b136so11043424iof.15 for ; Mon, 23 Mar 2020 01:13:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=v/PNDyYAZeEehLTZrP71mTZvUHjpVhkuJkQ13C3CF7k=; b=MB9PiedjykzdhaM+7B0Kv1vLi+Rvsn0TeNdEMq2YTjofUGEMOquwBQTLlpMpMgEemB KzYV94PNlMlJ265WYeclU/SHKKyDMpjChkR2eOXAbeRSYfbt0H5Mg1A9lFNYiHRGJJ1m RtX6FpBdRAlljr2eoIwBDNPIo9YxDTdg5XKAqNkd6Cen21uJQ4nTXOosUZS2ygJrUFdw Q76qM0x0C0S6Im4tQ+Kot7XfRLi4fNk1kSPBtWZF6laFvqfSiCXwg+ldqtsbOpH9Cl10 thk8WdiBEcOYPsEFA+Sth87mQiIZVf0bOBQKRJ8/YeXT2SDXahQtS5asLH+1JPN9HyGz D8qw== X-Gm-Message-State: ANhLgQ2AllS7gG1XdjBCfPkX8sgiSgDnKy/zHpX4CCG0QRQCoe2VhlBx Tw4kn0iPawmAX2b1vm/LBzbIVrh6N0CBleBy3ra7n93ke7djucZFudpwwBiDazJPHAvn/0JcDQl ldkFM5npz64Cib9i6tACUZts= X-Received: by 2002:a6b:491a:: with SMTP id u26mr18397476iob.30.1584951213702; Mon, 23 Mar 2020 01:13:33 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtqq16hC1WqVIpeYiG7LQ6Smtu5L5hdxIHMX+mgs4X3WIGgMAmvREHtlmhEAqj5j7/n9Omiv6FrDpbNFjM2W7E= X-Received: by 2002:a6b:491a:: with SMTP id u26mr18397456iob.30.1584951213382; Mon, 23 Mar 2020 01:13:33 -0700 (PDT) MIME-Version: 1.0 References: <20200319144418.15661-1-ndabilpuram@marvell.com> In-Reply-To: <20200319144418.15661-1-ndabilpuram@marvell.com> From: David Marchand Date: Mon, 23 Mar 2020 09:13:22 +0100 Message-ID: To: Nithin Dabilpuram Cc: Thomas Monjalon , Neil Horman , dev , Jerin Jacob Kollanukkaran , dpdk stable , bingz@mellanox.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-stable] [PATCH] devtools: fix check symbol change script 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" On Thu, Mar 19, 2020 at 3:44 PM Nithin Dabilpuram wrote: > diff --git a/devtools/check-symbol-change.sh b/devtools/check-symbol-chan= ge.sh > index c5434f3..19ce82f 100755 > --- a/devtools/check-symbol-change.sh > +++ b/devtools/check-symbol-change.sh > @@ -17,13 +17,13 @@ build_map_changes() > # map files are altered, and all section/symbol names > # appearing between a triggering of this rule and the > # next trigger of this rule are associated with this file > - /[-+] a\/.*\.map/ {map=3D$2; in_map=3D1} > + /[-+] [ab]\/.*\.map/ {map=3D$2; in_map=3D1} > > # Same pattern as above, only it matches on anything that > # does not end in 'map', indicating we have left the map = chunk. > # When we hit this, turn off the in_map variable, which > # supresses the subordonate rules below > - /[-+] a\/.*\.[^map]/ {in_map=3D0} > + /[-+] [ab]\/.*\.[^map]/ {in_map=3D0} [^map] does not mean "not word map" but actually "none of the character m, a or p". So potentially, any file extension starting with m, a or p could trigger an issue. For example, a change in .mk files, .py files and ./devtools/check-forbidden-tokens.awk ./devtools/libabigail.abignore could lead to incorrect symbol check. How about the following change: diff --git a/devtools/check-symbol-change.sh b/devtools/check-symbol-change= .sh index c5434f3bb0..ed2178e36e 100755 --- a/devtools/check-symbol-change.sh +++ b/devtools/check-symbol-change.sh @@ -17,13 +17,11 @@ build_map_changes() # map files are altered, and all section/symbol names # appearing between a triggering of this rule and the # next trigger of this rule are associated with this file - /[-+] a\/.*\.map/ {map=3D$2; in_map=3D1} + /[-+] [ab]\/.*\.map/ {map=3D$2; in_map=3D1; next} - # Same pattern as above, only it matches on anything that - # does not end in 'map', indicating we have left the map ch= unk. - # When we hit this, turn off the in_map variable, which - # supresses the subordonate rules below - /[-+] a\/.*\.[^map]/ {in_map=3D0} + # The previous rule catches all .map files, anything else + # indicates we left the map chunk. + /[-+] [ab]\// {in_map=3D0} # Triggering this rule, which starts a line and ends it # with a { identifies a versioned section. The section nam= e is --=20 David Marchand