Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp576786pxb; Thu, 23 Sep 2021 06:32:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzIa8S1YPBJmpc9WnfUoeNuN5NMBw/KBMTaYoaIq/8c5qq2fGR7p03m+rHwFVeatsJZq9o0 X-Received: by 2002:a17:906:3b53:: with SMTP id h19mr4955644ejf.109.1632403945050; Thu, 23 Sep 2021 06:32:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632403945; cv=none; d=google.com; s=arc-20160816; b=HqBQDO0z7vdATr/mS6QVzeb4d2V8Y3rElj9V7OYHicx1DN/dJZmRiUWVlnjcxzWg/8 g1+5LUco0QusxxImwRLK82Z03iNbjCB1Qt4xyCCgZWPynxVq9rZXa6CMaJbs3tokN7Ht pPgHbqWSINHFqegYZz4r1ndFu/tXM+t17WvbE8JyRFqc/1fEo+WMFDR8LRjZlLLsGeoc GWIFhw2tM31JcNXXU8K2w29nDSHYo/nuhpMpJuWB3S/YNP9qIt8Hdpro8W8fQWM9GnvB MEWxQt0Z6FBU9y2YiTUANrige/llkcB5lHQTxYCW/oBIdD7PW57HqExxFeIZmIeGl1IP QbxA== 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=Ed70L4oZQygM37q0p5+za6AL6jU8ZUuqtvnMF1TnqP8XlDFjCjWCs6+W+zDxPTFpkY XW+hoDkcc5KgtKpU6OEgEbLjiI6c7NCVCcEumHNhAd5EsuYJrQSqnF9rjc5g35CO/Xll hW7plFJbKxr1NjOIUOYQpdvs4bKipyAB+c2tftlYbJGHasGRD08pYlBnnEUORd5fLRD9 rZJ96hfKTAQw0Pk3BddjhRlfYDuX3tgwOhK3GhGTSyuuoDwOb+J4aGHZjibA57MPYC2L enij/IW01ihWDP3BKTWxYB2IlHu2NCdoeaU8a0t1kDww5NP+QAfR3SAGvPIByXt3tvHg 1GCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dV7XEHsy; 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 l22si5974242edj.479.2021.09.23.06.32.01; Thu, 23 Sep 2021 06:32:25 -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=dV7XEHsy; 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 S241318AbhIWNbr (ORCPT + 99 others); Thu, 23 Sep 2021 09:31:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:44016 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232316AbhIWNbq (ORCPT ); Thu, 23 Sep 2021 09:31:46 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B2BB26124D; Thu, 23 Sep 2021 13:30:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632403814; bh=8VMFUTHZ/iPsGfvD7CnzQ5DNArmKj5WczRe+SXaM33w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dV7XEHsyHQdLXTBRIIQuP2PM/xAFPYs/LcEyDXz3qnWKfJrecu+NC1r0uXVQDdMmB 3rqIcfdhdVgdQEORTfDEpKHt+Gj6Mcg3LCIIAsNKPn9nPGW8mfyk3BaA6Zw+CgWNIo jeexH6dBuUyJNIrPw1VeAmD7qqcBPUJnAaD+AXmzEfJyoBhUUjDD+7AieoViFcSE94 KNlNN3mkxoovA0rhYe3JJiLZAMfzJrntprFYHaCgur2a9IEg9cSya4I0/pw59+wixt nwmjmCEYJAr/ZDi4VGHy3s6lD4qgONedIJjCYQGIA6NVAdbUEcyAu/hoUukkaWUvFS EEOtOVo/3FtQw== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1mTOnl-000neQ-1K; Thu, 23 Sep 2021 15:30:13 +0200 From: Mauro Carvalho Chehab To: Linux Doc Mailing List , Greg Kroah-Hartman Cc: Mauro Carvalho Chehab , "Jonathan Corbet" , linux-kernel@vger.kernel.org Subject: [PATCH 10/13] scripts: get_abi.pl: ignore some sysfs nodes earlier Date: Thu, 23 Sep 2021 15:30:08 +0200 Message-Id: <596fa15a4eb564a8f923b7a49badf911f7ee3276.1632402570.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