1 From 20df4491aa88eb4a7f97090fbc4ff53f81926861 Mon Sep 17 00:00:00 2001
2 From: Martin Roth <martinroth@google.com>
3 Date: Wed, 21 Sep 2016 14:27:26 -0600
4 Subject: [PATCH] Kconfig: Change symbol override from warning to notice
6 Overriding symbols within a .config is pretty common when doing
7 automated builds with various different options. The warning
8 text makes it sound like this is an issue, so change it to say
9 'notice' instead. We could get rid of it completely, but it's
10 not a bad thing to know that we have two copies of the same symbol
13 BUG=chrome-os-partner:54059
14 TEST=copy a disabled kconfig option to the end and set it to y.
15 See notice text instead of warning.
17 Signed-off-by: Martin Roth <martinroth@google.com>
19 util/kconfig/confdata.c | 16 +++++++++++++---
20 1 file changed, 13 insertions(+), 3 deletions(-)
22 Index: kconfig/confdata.c
23 ===================================================================
24 --- kconfig.orig/confdata.c
25 +++ kconfig/confdata.c
26 @@ -166,6 +166,16 @@ static void conf_warning(const char *fmt
30 +static void conf_notice(const char *fmt, ...)
34 + fprintf(stderr, "%s:%d:notice: ", conf_filename, conf_lineno);
35 + vfprintf(stderr, fmt, ap);
36 + fprintf(stderr, "\n");
40 static void conf_default_message_callback(const char *s)
43 @@ -454,7 +464,7 @@ load:
44 sym->type = S_BOOLEAN;
46 if (sym->flags & def_flags) {
47 - conf_warning("override: reassigning to symbol %s", sym->name);
48 + conf_notice("override: reassigning to symbol %s", sym->name);
52 @@ -498,7 +508,7 @@ load:
55 if (sym->flags & def_flags) {
56 - conf_warning("override: reassigning to symbol %s", sym->name);
57 + conf_notice("override: reassigning to symbol %s", sym->name);
59 if (conf_set_sym_val(sym, def, def_flags, p))
61 @@ -523,7 +533,7 @@ load:
64 if (cs->def[def].tri != no)
65 - conf_warning("override: %s changes choice state", sym->name);
66 + conf_notice("override: %s changes choice state", sym->name);
67 cs->def[def].val = sym;