Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp1015372pxb; Thu, 9 Sep 2021 18:03:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyKb6RGWXxoZAVDhUE+jjG3g/H/eiDgI/eycQ6K+OUK9GdldmVv77ap4kx2uLGa+aSu/cCN X-Received: by 2002:a17:906:7c4:: with SMTP id m4mr6470943ejc.553.1631235833401; Thu, 09 Sep 2021 18:03:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631235833; cv=none; d=google.com; s=arc-20160816; b=VxtQ8zJkEV5Audwji0m9PCj++QFG4yD94cV/JiF89QUYJenJfGpHn3vt7JNtw5itFC qEBohFCUulhN/Xb3LC0RdeFhTpLCEsjts9Ltt+dvb6LzPb/QKPf94BTUJvXEb1CAJTBf nr0bmapGbinedvxS+19ReV4SNtRh+zo4bIlZFeXJiInOUOLDVZZyMeOf6minsX4xG1Zl jwGC7ehpXIUbbaHJRqGgL9N1iXv/VlAy+PPoNNo/gXeP24Hh3l4OH5nDMKTJLECC+Ltc /9o1R2lC8CHOrKGVQ91z9culZ++6038KOX+v3WUaKLbRxsfsnfGAwmOTSoh6iA9+q5Db PB2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=uVpdmGWrgjzgjRl5TeDHPc65dX90hX2vNYPiC/msCB8=; b=jYwvTfYf4GXTJ9Y0gWL+np7iV8HWAhX7d99mJblCe8FttiYRCP3yNgqFfadeTDQz/0 t41bvMB022RTz01S1CJOv+8ImxhtmdbyqVgGsIVgUUSW5hUqk+3GuqzR5n6x9/3+vTFT 2b4IT26E5beIO27hBGaiiFIhlCY2lXQzolEL0J6MsBtIJpiC7IAXZfsCHi9ICey/9gsC bloRfpnAWaQWnFcfCWSLcNXV2h6Xpjc3ujXWWLr2gQSLyYD4WrIy7HR4iLaxxGvvFQE4 J2R1Dv9EF7EbkgBdhVWj34Vdq1J39U2R6BVWr3gBXx76XORwyx8ksmVi5UDO/JMFAqXg mhvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LdMf24c1; 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 ga37si3478192ejc.116.2021.09.09.18.03.29; Thu, 09 Sep 2021 18:03:53 -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=LdMf24c1; 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 S231755AbhIJBBW (ORCPT + 99 others); Thu, 9 Sep 2021 21:01:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:49052 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234550AbhIJAXj (ORCPT ); Thu, 9 Sep 2021 20:23:39 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A924C60FC0; Fri, 10 Sep 2021 00:22:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631233349; bh=GXA5x7QbJmYBogHYoxpQ7elXBKYQizrZ6T/7HgMfRSM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LdMf24c1pvqDqA92r9TyV8ctuKuoEnBlBFSBEI73JVQzQ54SlbtqK5hpVlYX1o/2h LGCR4fLvA8JDpmnrNntJgk0veKhGALA2NiNgy97/XhnbVLqLMv9vuTIjEK/MhEjfcU XwPQAjDaIWLkLvnUph6D4NzxvfulySZ8y87C6+WUo5fw6bUNqV395lHbhBZfqIfK+X M0lQzh263LqdzmVDJFH5/AA11bbz/zqUfR4Ape84cgZQgZ2JklUTt6QpYTvI8XcgCq 83KuKwMruKd7wAClKaKKEw3oXdyh2IXZEVwg4gOaaV5SokgrJMMPu7chxsWLcZyJ7/ xu+2tYEUTB6uw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Ariel Marcovitch , Masahiro Yamada , Sasha Levin Subject: [PATCH AUTOSEL 5.4 35/37] checkkconfigsymbols.py: Fix the '--ignore' option Date: Thu, 9 Sep 2021 20:21:40 -0400 Message-Id: <20210910002143.175731-35-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210910002143.175731-1-sashal@kernel.org> References: <20210910002143.175731-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ariel Marcovitch [ Upstream commit 1439ebd2ce77242400518d4e6a1e85bebcd8084f ] It seems like the implementation of the --ignore option is broken. In check_symbols_helper, when going through the list of files, a file is added to the list of source files to check if it matches the ignore pattern. Instead, as stated in the comment below this condition, the file should be added if it doesn't match the pattern. This means that when providing an ignore pattern, the only files that will be checked will be the ones we want the ignore, in addition to the Kconfig files that don't match the pattern (the check in parse_kconfig_files is done right) Signed-off-by: Ariel Marcovitch Signed-off-by: Masahiro Yamada Signed-off-by: Sasha Levin --- scripts/checkkconfigsymbols.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/checkkconfigsymbols.py b/scripts/checkkconfigsymbols.py index 00a10a293f4f..4393955493fd 100755 --- a/scripts/checkkconfigsymbols.py +++ b/scripts/checkkconfigsymbols.py @@ -329,7 +329,7 @@ def check_symbols_helper(pool, ignore): if REGEX_FILE_KCONFIG.match(gitfile): kconfig_files.append(gitfile) else: - if ignore and not re.match(ignore, gitfile): + if ignore and re.match(ignore, gitfile): continue # add source files that do not match the ignore pattern source_files.append(gitfile) -- 2.30.2