Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp696199pxb; Thu, 23 Sep 2021 08:49:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwtRRvOakFu/Ug1JrMht5Q5p64FoUgE+YWJXgvnt5Y+5KBKT6GARZLfOeTrYSn1Q2z58v1h X-Received: by 2002:a50:9b17:: with SMTP id o23mr6387650edi.341.1632412149585; Thu, 23 Sep 2021 08:49:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632412149; cv=none; d=google.com; s=arc-20160816; b=pxHcGB+GCkbH/FKYRLzj0OdjIhBucDp5f6ZS9tIjq3+yA7OBb02rVmXka/osHJrksq 2E8um9yx8BpSHHJuzqxpkC5pfAvak0JrN1kvRLb532vW6iTiD2xPDvchbUCV6nXul2Rs oCKAH+ipp1C3tsXbN/VexLfXkYAACmEuUBffSxvpdUKEbHcFZ365lmjFftwN69/JuMkv Z+zrlrcXr+cBYQKe3KyWZyykQMP96Z/kab0CL1auzO0TtlfKVJ5uk7ctVNCLtWdvaRJN OAyFyOjwiQ7LU+BFHwDG6YiHTu3f+fXJgPkN2blPluDBf2yf9y3G4Lmc/TySc30Dr185 MfYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=x8GdrWCtE7+DO/k2WSjB4Q3Vpgm7WLwG0PP0Bs3fgi0=; b=WieOtKJ3WbFVaAsQT7G/TO9UE10q8L/pHIgzLi1FbuOMTdCUawUJZZ8RhHD5fFy86r /nsZTELsR+9UVBvyerjnIzSuvBaUJZUnL16C9orOqJq+/Unv2pRBIxUGjWMOK2ynQa9h lQkwxWeuasAnO5U6VYSR1Kqs5wsLJSPQDBk9t05lCvHnHuzAOPMca4pX/z9lEBqgsHCd uthqUII5qx7xISZ1R24g+xCQpog0efs11dAgP+E7025rJ1ZdeTZ4PWQ6xomXYwEuJr9B 5pvdoBesft24xNHPsE6b6uBBZTS4x1xvUgYvopQOpD1hMtyA+7u8PmToI/KaWQVOSDek fLpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JqjEV+JT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i4si6073299ejj.165.2021.09.23.08.48.42; Thu, 23 Sep 2021 08:49:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JqjEV+JT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242164AbhIWPsN (ORCPT + 99 others); Thu, 23 Sep 2021 11:48:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:38326 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242054AbhIWPnF (ORCPT ); Thu, 23 Sep 2021 11:43:05 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5ECEF60F0F; Thu, 23 Sep 2021 15:41:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632411693; bh=3CsCCWh413B1aUjMg8I/otDBDvIVYcP91QWTDc+Aa5w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JqjEV+JThD3fvG7zcn/7n2NkBdCJ4spQy71GCSiVyJGCkoQ9rpSDy4JIoe07TDRER qDCGNKb9SyqbFqQ2VIWM+chjgEPwDwvw+LTLsm1lAiVMc55TXn9CgcJqNDpVHZcd9o ANhZlZTDy+q1UT4CsXQmN8UkrYxK6rJWmHCWtVJeifSW/7/T4BuwGtNOWHvXgepuDg wDUH3frBM+V3oLO7yrHlMciT6Mb/ohm/N/73dFr7u9zH52mHJVT5dBqFWI4h1mP9Bc /u4J3/u+rRezuOS6gOpc1c+BWU5pYHXSkBMmu2cmtOYmjlf5Fw2VldKU5dQS+s9DMz rzCu8mKfvZe8g== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1mTQqp-000p6C-Mx; Thu, 23 Sep 2021 17:41:31 +0200 From: Mauro Carvalho Chehab To: #@kernel.org, YUyICHTRdfL8Ul7X@kroah.com, Linux Doc Mailing List , Greg Kroah-Hartman Cc: Mauro Carvalho Chehab , "Jonathan Corbet" , linux-kernel@vger.kernel.org Subject: [PATCH 2/8] scripts: get_abi.pl: call get_leave() a little late Date: Thu, 23 Sep 2021 17:41:13 +0200 Message-Id: X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: Mauro Carvalho Chehab Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The $what conversions need to replace some characters to avoid breaking regex expressions found on some What:. only after replacing them back, the script should get the $leave devnode. Fixes: ca8e055c2215 ("scripts: get_abi.pl: add a graph to speedup the undefined algorithm") Signed-off-by: Mauro Carvalho Chehab --- scripts/get_abi.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/get_abi.pl b/scripts/get_abi.pl index 65261f464e25..9eb8a033d363 100755 --- a/scripts/get_abi.pl +++ b/scripts/get_abi.pl @@ -777,8 +777,6 @@ sub undefined_symbols { # (this happens on a few IIO definitions) $what =~ s,\s*\=.*$,,; - my $leave = get_leave($what); - # Escape all other symbols $what =~ s/$escape_symbols/\\$1/g; $what =~ s/\\\\/\\/g; @@ -790,6 +788,7 @@ sub undefined_symbols { # Special case: IIO ABI which a parenthesis. $what =~ s/sqrt(.*)/sqrt\(.*\)/; + my $leave = get_leave($what); my $added = 0; foreach my $l (split /\|/, $leave) { if (defined($leaf{$l})) { -- 2.31.1