[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20171215172810.GB729@wotan.suse.de>
Date: Fri, 15 Dec 2017 18:28:10 +0100
From: "Luis R. Rodriguez" <mcgrof@...nel.org>
To: Masahiro Yamada <yamada.masahiro@...ionext.com>
Cc: linux-kbuild@...r.kernel.org,
Nicolas Pitre <nicolas.pitre@...aro.org>,
Randy Dunlap <rdunlap@...radead.org>,
Michal Marek <michal.lkml@...kovi.net>,
Sam Ravnborg <sam@...nborg.org>,
Ulf Magnusson <ulfalizer@...il.com>,
Heinrich Schuchardt <xypron.glpk@....de>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] kconfig: display recursive dependency resolution hint
just once
On Sat, Dec 16, 2017 at 12:28:42AM +0900, Masahiro Yamada wrote:
> Commit 1c199f2878f6 ("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: 1c199f2878f6 ("kbuild: document recursive dependency limitation / resolution"
> Signed-off-by: Masahiro Yamada <yamada.masahiro@...ionext.com>
Acked-by: Luis R. Rodriguez <mcgrof@...nel.org>
Luis
Powered by blists - more mailing lists