Commit fe44f452 authored by Kim Phillips's avatar Kim Phillips Committed by Tom Rini
Browse files

arch/powerpc/lib/extable.c: sparse fix

extable.c:66:9: warning: symbol 'ex_tab_message' was not declared. Should it be static?

making it static can produce a new build warning on some boards:

extable.c:66:12: warning: 'ex_tab_message' defined but not used [-Wunused-variable]

but ex_tab_message doesn't do much even when used, so just remove it.
Signed-off-by: default avatarKim Phillips <>
parent cdfdb8d7
......@@ -63,8 +63,6 @@ search_one_table(const struct exception_table_entry *first,
return 0;
int ex_tab_message = 1;
unsigned long
search_exception_table(unsigned long addr)
......@@ -74,8 +72,7 @@ search_exception_table(unsigned long addr)
ret = search_one_table(__start___ex_table, __stop___ex_table-1, addr);
/* if the serial port does not hang in exception, printf can be used */
if (ex_tab_message)
debug("Bus Fault @ 0x%08lx, fixup 0x%08lx\n", addr, ret);
debug("Bus Fault @ 0x%08lx, fixup 0x%08lx\n", addr, ret);
if (ret) return ret;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment