Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp4040282rdb; Thu, 28 Dec 2023 08:11:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IGydc1kwomY7e5vU3dzzvROIA2n1P7oNZoFe+Ev08tLYJEU0eph7EGXTUJ3aUlerhwl1784 X-Received: by 2002:a05:6214:268c:b0:67f:4926:60da with SMTP id gm12-20020a056214268c00b0067f492660damr10939371qvb.19.1703779902632; Thu, 28 Dec 2023 08:11:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703779902; cv=none; d=google.com; s=arc-20160816; b=BzC97xImRE26w/GQRzsZut0PqCzUdVQC88tgBOpKDDQueiUfEKu2pinxYclZ2iRiQj iAOXmgNegQyRRyIqz37FMdCP13wuYj+hsliJqgHpybw2+cI7rWn8rxZySQ91dObZWL1+ fh9e9fYu2n8wPE6NyzE0Ih4tfEEZozkE+rszCoMa9JaGRt2CVgwzi7fhDAwr0/LlWGH7 S2RR/5ONN+cgcuS0dirXWy5AnY+jESAGY3zS+0JsYaacEgdkoTYrfbbb47IwVVqpRNcN P9A9iWoFsbqDp5lRIk2G/CBHmeYL6djWitbduhOZ+OEgX0FW0xjX7yoeSmYUah66l+J7 oXLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=NgQnCZTE5jaRbdi14uQMXR+/VSJ23QGvmhtUifxXVB8=; fh=wjrTdRkoDxNWXFT33war+4enZLCnkaSGTt7vQU0ZhQU=; b=hAq88Z5N1oOVq+AJbuMJDIe+gGKSgLQA5TTLmyn+bjqmCsnMHEP6rjrFZqckgm+WrG BZu3Wa3XIExg73uqvs/airs1CI2+RX1uRH17o/vO+QCdxpHBATx+DLo5U+S+tsNuY6yg qlEnX6I0ccN5G8UsxW/IL7Put0DvSxaXX1e7hqjCIOwrkai4DlLSwlTzgB/FbHpobtLk r2MrOE80KpYvy/RVIqrn0E/VhJfULQ12roQfUeofBOKK+fPceozsYjuXt5l3iZ6c1a06 NbOHlmzh2XwwvNvC/WwV1RysygjdhOXdczXTaSB3mgyOVrYlAtPms0sxDiBlOtMI70Gd 4bfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ddNeO62y; spf=pass (google.com: domain of linux-kernel+bounces-12771-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12771-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id a6-20020a0ce386000000b0067aa3dc3f68si17381687qvl.193.2023.12.28.08.11.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Dec 2023 08:11:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12771-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ddNeO62y; spf=pass (google.com: domain of linux-kernel+bounces-12771-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12771-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 512CE1C20DD6 for ; Thu, 28 Dec 2023 16:11:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 21A9EF50B; Thu, 28 Dec 2023 16:11:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ddNeO62y" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 41201F9C2; Thu, 28 Dec 2023 16:11:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A4FF7C433C7; Thu, 28 Dec 2023 16:11:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1703779894; bh=nnd1opf9wwwaHv9hFWrSsn8RSzN3NL7jhKBJ7PrftXA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ddNeO62ybaBpFNoOjz3K+uJZohWA0sgqulib+7CrGvYRytyTC/op8ts7vqYgioTSV hdtP/HmHR4hejvEhY8fwZW9LcwYGaQ6f8wN0Lfml/roR60cqq9Rl9aWekkHqD/NbrU aKRdJzwfVCMKsbF3ViEgaJX1TE1z7pDZbPmnwCmwPRg5nztHBHzQ1jdDjRqXR+gdCN +R04njt0b9VYsUOqcgE4YYlmV+RYUTNgtxilk/01Ie+9mIemqlI7Op/BvZzV5PIvtV 72Ri/SBJvMFQU7bLXD75UINNvGtEoIN3q5gyBSVsVZwZKlDWHCTUMz9DezO5U4sAnD Szkf1dv7GM1FQ== Received: by mail-ot1-f48.google.com with SMTP id 46e09a7af769-6dc07ce2a30so727529a34.0; Thu, 28 Dec 2023 08:11:34 -0800 (PST) X-Gm-Message-State: AOJu0Yy2fPOT9nEfgl7AnNO/HsPyznWcQJnUni99K0xCUFD/1VMIK+DL 7Wq/+SVGNquGPkWYwf9jX+vKwDTKKAuwx2Py5c8= X-Received: by 2002:a05:6871:546:b0:204:2d89:21de with SMTP id t6-20020a056871054600b002042d8921demr9492889oal.15.1703779893965; Thu, 28 Dec 2023 08:11:33 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231228070941.3611649-1-tfiga@chromium.org> In-Reply-To: <20231228070941.3611649-1-tfiga@chromium.org> From: Masahiro Yamada Date: Fri, 29 Dec 2023 01:10:57 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] kconfig: Add a build target for checking current config for issues To: Tomasz Figa Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Sergey Senozhatsky Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Dec 28, 2023 at 4:09=E2=80=AFPM Tomasz Figa wr= ote: > > The new target is called 'checkconfig' and currently is basically an > alias for `listnewconfig` with KCONFIG_WARN_UNKNOWN_SYMBOLS set to true. > It can be used to validate if the current config is directly compatible > with the current kernel version or needs some manual adjustment. > > Signed-off-by: Tomasz Figa I rejected a new target in the past. https://lore.kernel.org/all/20230817012007.131868-1-senozhatsky@chromium.or= g/T/#m55c37e3091158f8cb008d9e0b5c6bf3f5ead225a Instead, you can run KCONFIG_WARN_UNKNOWN_SYMBOLS=3D1 make listnewconfig or make W=3Dc listnewconfig > --- > scripts/kconfig/Makefile | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile > index 4eee155121a8..501cb9b76414 100644 > --- a/scripts/kconfig/Makefile > +++ b/scripts/kconfig/Makefile > @@ -81,6 +81,9 @@ PHONY +=3D savedefconfig defconfig > savedefconfig: $(obj)/conf > $(Q)$< $(silent) --$@=3Ddefconfig $(Kconfig) > > +checkconfig: $(obj)/conf > + $(Q)KCONFIG_WARN_UNKNOWN_SYMBOLS=3Dtrue $< --listnewconfig $(Kcon= fig) > + > defconfig: $(obj)/conf > ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG)= ),) > @$(kecho) "*** Default configuration is based on '$(KBUILD_DEFCON= FIG)'" > @@ -144,6 +147,7 @@ help: > @echo ' default value without prompting' > @echo ' tinyconfig - Configure the tiniest possible kernel= ' > @echo ' testconfig - Run Kconfig unit tests (requires pyth= on3 and pytest)' > + @echo ' checkconfig - Check current config for unrecognized= and new symbols' > @echo '' > @echo 'Configuration topic targets:' > @$(foreach f, $(all-config-fragments), \ > -- > 2.43.0.472.g3155946c3a-goog > -- Best Regards Masahiro Yamada