]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
kconfig: add warn-unknown-symbols sanity check
authorSergey Senozhatsky <senozhatsky@chromium.org>
Wed, 30 Aug 2023 00:49:36 +0000 (09:49 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Mar 2025 11:50:13 +0000 (12:50 +0100)
commit6bdf078908c3113315ec85ec2f30698aac86c4b8
tree7e9b466e7a9b5de93ebe70201b2e87498177f4eb
parent4780a614f013fa8c059ed3838ea3c7ddf9a1b42e
kconfig: add warn-unknown-symbols sanity check

[ Upstream commit 7cd343008b967423b06af8f6d3236749c67d12e8 ]

Introduce KCONFIG_WARN_UNKNOWN_SYMBOLS environment variable,
which makes Kconfig warn about unknown config symbols.

This is especially useful for continuous kernel uprevs when
some symbols can be either removed or renamed between kernel
releases (which can go unnoticed otherwise).

By default KCONFIG_WARN_UNKNOWN_SYMBOLS generates warnings,
which are non-terminal. There is an additional environment
variable KCONFIG_WERROR that overrides this behaviour and
turns warnings into errors.

Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Stable-dep-of: a409fc1463d6 ("kconfig: fix memory leak in sym_warn_unmet_dep()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Documentation/kbuild/kconfig.rst
scripts/kconfig/confdata.c