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>
This commit is contained in:
Родитель
36ef805bd5
Коммит
603d49885e
|
@ -203,12 +203,9 @@ void sym_check_prop(struct symbol *sym)
|
||||||
prop_warn(prop,
|
prop_warn(prop,
|
||||||
"config symbol '%s' uses select, but is "
|
"config symbol '%s' uses select, but is "
|
||||||
"not boolean or tristate", sym->name);
|
"not boolean or tristate", sym->name);
|
||||||
else if (sym2->type == S_UNKNOWN)
|
else if (sym2->type != S_UNKNOWN &&
|
||||||
prop_warn(prop,
|
sym2->type != S_BOOLEAN &&
|
||||||
"'select' used by config symbol '%s' "
|
sym2->type != S_TRISTATE)
|
||||||
"refers to undefined symbol '%s'",
|
|
||||||
sym->name, sym2->name);
|
|
||||||
else if (sym2->type != S_BOOLEAN && sym2->type != S_TRISTATE)
|
|
||||||
prop_warn(prop,
|
prop_warn(prop,
|
||||||
"'%s' has wrong type. 'select' only "
|
"'%s' has wrong type. 'select' only "
|
||||||
"accept arguments of boolean and "
|
"accept arguments of boolean and "
|
||||||
|
|
Загрузка…
Ссылка в новой задаче