[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160713223433.GA20475@mwanda>
Date: Thu, 14 Jul 2016 01:34:33 +0300
From: Dan Carpenter <dan.carpenter@...cle.com>
To: "Yann E. MORIN" <yann.morin.1998@...e.fr>,
"Luis R. Rodriguez" <mcgrof@...nel.org>
Cc: linux-kbuild@...r.kernel.org, linux-kernel@...r.kernel.org,
kernel-janitors@...r.kernel.org, Michal Marek <mmarek@...e.com>
Subject: [patch] kconfig: Add some missing curly braces
There are missing curly braces here so we print some stuff to stderr
which we hadn't intended.
Fixes: 1c199f2878f6 ('kbuild: document recursive dependency limitation / resolution')
Signed-off-by: Dan Carpenter <dan.carpenter@...cle.com>
diff --git a/scripts/kconfig/symbol.c b/scripts/kconfig/symbol.c
index 2432298..ff0feab 100644
--- a/scripts/kconfig/symbol.c
+++ b/scripts/kconfig/symbol.c
@@ -1127,11 +1127,12 @@ static void sym_check_print_recursive(struct symbol *last_sym)
break;
}
}
- if (stack->sym == last_sym)
+ if (stack->sym == last_sym) {
fprintf(stderr, "%s:%d:error: recursive dependency detected!\n",
prop->file->name, prop->lineno);
fprintf(stderr, "For a resolution refer to Documentation/kbuild/kconfig-language.txt\n");
fprintf(stderr, "subsection \"Kconfig recursive dependency limitations\"\n");
+ }
if (stack->expr) {
fprintf(stderr, "%s:%d:\tsymbol %s %s value contains %s\n",
prop->file->name, prop->lineno,
Powered by blists - more mailing lists