Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp696227pxb; Thu, 23 Sep 2021 08:49:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzu1NpSUsSWvBhuwusH1kSUvykpA5ztu4phPpdN53rZ8kePC+neRf10+WuI+IyaDAtcvfh1 X-Received: by 2002:a17:906:a3d9:: with SMTP id ca25mr5841743ejb.306.1632412149564; 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=wsqXuvmXV993Eyy2o0jKXeBrgiaQfK/zzQKhM5lhblPHj+DxYJ+xb0cZFkJrA5dmdY ZiXDw2orsnXAvbWO1akPCElk+awkFTrXJhQ0SrDFSMd3YhlwSXyny0CgGKZnI9Lipnzm bUI7Wag9dE0NRnIH1T+5KNUUedlil1s8OjjKimK3+//vB4Ccyx52by2dB97V3nXFKNxV Osm8/GYlnioGtg9Uy79X8Hg+mcKChVGJ/GLev5qIggrvNfv6BMLTAlxtY8sDyd8cJLuc x5MzdJLi1wTIHCvAtthiPXrkgI7g1ImP/0IlBKLIGA8uiHM17OhhvWIAxyY83kfSrR3a nKdQ== 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=8X3TkiB8PLJcbrUyLGxULYDotzI1N6MDMwkxTQSJejk=; b=pfZkmvb0dch1AtgmkpnFsA5XKKOL3pvauJ3N3TXLdVVfhB9il3+cbjNocM3kJbaqZ0 5evSs3zts9nWPCtfcckS4O8W6FciAVw7yU1fcgu6JSyDqrd4ePKdjhleStUIncvspvPt yW/hHNc3zoAZpheXgqpn+O9qtZhUE6WrSDNU1ICMZRyiVnVpHY6QyNHaOuEed83AM2q2 jYvJWg5nBUVJ+nmSenFU03b8EPMdy9GjJ5kCPIdd60/xZQAQlXKq/hW0AaXwqow189Au SUtTa4ZP2bWIADbtijdEOuM3LtdEd7FzPltWA4V7HXPcAKKiOgwT9l+NjtI2ZjgX+S/B 2vkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hdS2tB2y; 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 qt12si6576803ejb.538.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=hdS2tB2y; 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 S231233AbhIWPsd (ORCPT + 99 others); Thu, 23 Sep 2021 11:48:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:38524 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242097AbhIWPnQ (ORCPT ); Thu, 23 Sep 2021 11:43:16 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8086C6121F; 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=8VMFUTHZ/iPsGfvD7CnzQ5DNArmKj5WczRe+SXaM33w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hdS2tB2ytHLxYtgYjtyklTUv9xI1XR6c7UvWU80KJKpxJxawZ0Q/xz6CoWX7hmFVm 5itv6JenGXQ2LuyX6fYJwXqIT1xLpJo8OFeLMJfhU0vD0fJO2FUvXGzBt7oU1SAUpD LubcMZ7Ek1WG4lqAhn0jzrpOi3pePzTD+GapdGg3f/qC2ovGplXldW/6RqZxPKL0zr 92WenTfGdRwLyGTl97pD+kjQTcNpu+HrgQ1wpy8YoprcuSUJ/v04ioWAPZUtH8X+0e OFf31USV5zxIhytEutLeOUB36N+zAz6DMCagHDHOzX8bPbhq+pIiNPFD0I2ABbn8ce SvMZZyqUvxASg== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1mTQqp-000p6O-Qf; 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 5/8] scripts: get_abi.pl: ignore some sysfs nodes earlier Date: Thu, 23 Sep 2021 17:41:16 +0200 Message-Id: <5228789cbef8241d44504ad29fca5cab356cdc53.1632411447.git.mchehab+huawei@kernel.org> 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 When checking for undefined symbols, some nodes aren't easy or don't make sense to be checked right now. Prevent allocating memory for those, as they'll be ignored anyway. Signed-off-by: Mauro Carvalho Chehab --- scripts/get_abi.pl | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/get_abi.pl b/scripts/get_abi.pl index 3c0063d0e05e..42eb16eb78e9 100755 --- a/scripts/get_abi.pl +++ b/scripts/get_abi.pl @@ -628,6 +628,14 @@ sub parse_existing_sysfs { # Ignore cgroup and firmware return if ($file =~ m#^/sys/(fs/cgroup|firmware)/#); + # Ignore some sysfs nodes + return if ($file =~ m#/(sections|notes)/#); + + # Would need to check at + # Documentation/admin-guide/kernel-parameters.txt, but this + # is not easily parseable. + return if ($file =~ m#/parameters/#); + my $mode = (lstat($file))[2]; my $abs_file = abs_path($file); @@ -709,14 +717,6 @@ sub check_undefined_symbols { next if ($exact); - # Ignore some sysfs nodes - next if ($file =~ m#/(sections|notes)/#); - - # Would need to check at - # Documentation/admin-guide/kernel-parameters.txt, but this - # is not easily parseable. - next if ($file =~ m#/parameters/#); - if ($hint && $defined && (!$search_string || $found_string)) { $what =~ s/\xac/\n\t/g; if ($leave ne "others") { -- 2.31.1