android_kernel_sony_sdm845/scripts/kconfig
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Masahiro Yamada 2685d525a8 kconfig: display recursive dependency resolution hint just once
commit e3b03bf29d6b99fab7001fb20c33fe54928c157a upstream.

Commit 1c199f2878 ("kbuild: document recursive dependency limitation
/ resolution") probably intended to show a hint along with "recursive
dependency detected!" error, but it missed to add {...} guard, and the
hint is displayed in every loop of the dep_stack traverse, annoyingly.

This error was detected by GCC's -Wmisleading-indentation when switching
to build-time generation of lexer/parser.

scripts/kconfig/symbol.c: In function ‘sym_check_print_recursive’:
scripts/kconfig/symbol.c:1150:3: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
   if (stack->sym == last_sym)
   ^~
scripts/kconfig/symbol.c:1153:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
    fprintf(stderr, "For a resolution refer to Documentation/kbuild/kconfig-language.txt\n");
    ^~~~~~~

I could simply add {...} to surround the three fprintf(), but I rather
chose to move the hint after the loop to make the whole message readable.

Fixes: 1c199f2878 ("kbuild: document recursive dependency limitation / resolution"
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Luis R. Rodriguez <mcgrof@kernel.org>
Cc: Daniel Díaz <daniel.diaz@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-12-08 11:15:40 +01:00
..
lxdialog kconfig/[mn]conf: handle backspace (^H) key 2019-05-04 08:49:10 +02:00
.gitignore
check.sh
conf.c
confdata.c kconfig: fix broken dependency in randconfig-generated .config 2020-02-28 15:42:22 +01:00
expr.c kconfig: don't crash on NULL expressions in expr_eq() 2020-01-12 11:24:24 +01:00
expr.h
gconf.c
gconf.glade
images.c
kxgettext.c
list.h
lkc.h
lkc_proto.h
Makefile
mconf.c
menu.c kconfig: Fix automatic menu creation mem leak 2018-05-30 07:50:20 +02:00
merge_config.sh
nconf.c kconfig: nconf: stop endless search loops 2021-05-22 10:40:30 +02:00
nconf.gui.c kconfig/[mn]conf: handle backspace (^H) key 2019-05-04 08:49:10 +02:00
nconf.h
POTFILES.in
qconf.cc
qconf.h
streamline_config.pl
symbol.c kconfig: display recursive dependency resolution hint just once 2022-12-08 11:15:40 +01:00
util.c
zconf.gperf
zconf.hash.c_shipped
zconf.l kconfig: fix memory leak when EOF is encountered in quotation 2019-01-26 09:38:34 +01:00
zconf.lex.c_shipped
zconf.tab.c_shipped
zconf.y kconfig: Don't leak main menus during parsing 2018-05-30 07:50:20 +02:00