summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorKim Phillips <kim.phillips@freescale.com>2012-10-29 13:34:28 +0000
committerTom Rini <trini@ti.com>2012-11-04 11:00:35 -0700
commitfe44f452db0b92b7a36a048e3c6731494712d4d9 (patch)
treefec4478bf5c51d1313abbb078cb1b7a8bc47b71a /arch
parentcdfdb8d7f300cbe42fc22af75efd142644ee9373 (diff)
downloadu-boot-imx-fe44f452db0b92b7a36a048e3c6731494712d4d9.zip
u-boot-imx-fe44f452db0b92b7a36a048e3c6731494712d4d9.tar.gz
u-boot-imx-fe44f452db0b92b7a36a048e3c6731494712d4d9.tar.bz2
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: Kim Phillips <kim.phillips@freescale.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/lib/extable.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/powerpc/lib/extable.c b/arch/powerpc/lib/extable.c
index 7408d5c..60983ae 100644
--- a/arch/powerpc/lib/extable.c
+++ b/arch/powerpc/lib/extable.c
@@ -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 !defined(CONFIG_SYS_SERIAL_HANG_IN_EXCEPTION)
- 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);
#endif
if (ret) return ret;