]> www.infradead.org Git - users/jedix/linux-maple.git/commit
kconfig: fix file name in warnings when loading KCONFIG_DEFCONFIG_LIST
authorMasahiro Yamada <masahiroy@kernel.org>
Mon, 20 Jan 2025 07:59:14 +0000 (16:59 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Wed, 29 Jan 2025 23:40:17 +0000 (08:40 +0900)
commita314f52a0210730d0d556de76bb7388e76d4597d
tree1c884ab47e4e8d201e360110dad06b5fa2bdcaf7
parenta23d4c2f5b80a8dc5f1e40658abbe5983af1a0e9
kconfig: fix file name in warnings when loading KCONFIG_DEFCONFIG_LIST

Most 'make *config' commands use .config as the base configuration file.

When .config does not exist, Kconfig tries to load a file listed in
KCONFIG_DEFCONFIG_LIST instead.

However, since commit b75b0a819af9 ("kconfig: change defconfig_list
option to environment variable"), warning messages have displayed an
incorrect file name in such cases.

Below is a demonstration using Debian Trixie. While loading
/boot/config-6.12.9-amd64, the warning messages incorrectly show .config
as the file name.

With this commit, the correct file name is displayed in warnings.

[Before]

  $ rm -f .config
  $ make config
  #
  # using defaults found in /boot/config-6.12.9-amd64
  #
  .config:6804:warning: symbol value 'm' invalid for FB_BACKLIGHT
  .config:9895:warning: symbol value 'm' invalid for ANDROID_BINDER_IPC

[After]

  $ rm -f .config
  $ make config
  #
  # using defaults found in /boot/config-6.12.9-amd64
  #
  /boot/config-6.12.9-amd64:6804:warning: symbol value 'm' invalid for FB_BACKLIGHT
  /boot/config-6.12.9-amd64:9895:warning: symbol value 'm' invalid for ANDROID_BINDER_IPC

Fixes: b75b0a819af9 ("kconfig: change defconfig_list option to environment variable")
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/kconfig/confdata.c