diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2008-02-02 15:09:57 -0500 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2008-02-03 02:58:07 -0500 |
commit | 603d49885e023d1f68c627c2a2db599fb40eefec (patch) | |
tree | d857c33cbf90d5686c161e92c6fb1823d61d5a41 /scripts | |
parent | 36ef805bd51ef831aa6ed66a23ea0dfbc60d0c3e (diff) |
kconfig: ignore select of unknown symbol
We have had warnings for a long time about select of unknow symbol
but the warnings does not really makes sense since we may
select a symbol that is relevant and defined in one
arch but not in another arch.
And as long as we do not use a common set of Kconfig files
for all archs lets just ignore this case.
Previously we have used this to find bad uses of
select but we need a more relaible method to do so.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Roman Zippel <zippel@linux-m68k.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/kconfig/menu.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/scripts/kconfig/menu.c b/scripts/kconfig/menu.c index fdad17367f61..606ceb9e746e 100644 --- a/scripts/kconfig/menu.c +++ b/scripts/kconfig/menu.c | |||
@@ -203,12 +203,9 @@ void sym_check_prop(struct symbol *sym) | |||
203 | prop_warn(prop, | 203 | prop_warn(prop, |
204 | "config symbol '%s' uses select, but is " | 204 | "config symbol '%s' uses select, but is " |
205 | "not boolean or tristate", sym->name); | 205 | "not boolean or tristate", sym->name); |
206 | else if (sym2->type == S_UNKNOWN) | 206 | else if (sym2->type != S_UNKNOWN && |
207 | prop_warn(prop, | 207 | sym2->type != S_BOOLEAN && |
208 | "'select' used by config symbol '%s' " | 208 | sym2->type != S_TRISTATE) |
209 | "refers to undefined symbol '%s'", | ||
210 | sym->name, sym2->name); | ||
211 | else if (sym2->type != S_BOOLEAN && sym2->type != S_TRISTATE) | ||
212 | prop_warn(prop, | 209 | prop_warn(prop, |
213 | "'%s' has wrong type. 'select' only " | 210 | "'%s' has wrong type. 'select' only " |
214 | "accept arguments of boolean and " | 211 | "accept arguments of boolean and " |