linux-mips
[Top] [All Lists]

[PATCH] Make __declare_dbe_table() static

To: linux-mips@linux-mips.org
Subject: [PATCH] Make __declare_dbe_table() static
From: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Date: Mon, 19 Feb 2007 00:44:35 +0900 (JST)
Cc: ralf@linux-mips.org
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Make __declare_dbe_table() static and call it explicitly to ensure not
optimized out.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
---
diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c
index cfd1785..78a3f75 100644
--- a/arch/mips/kernel/traps.c
+++ b/arch/mips/kernel/traps.c
@@ -340,7 +340,7 @@ NORET_TYPE void ATTRIB_NORET die(const c
 extern const struct exception_table_entry __start___dbe_table[];
 extern const struct exception_table_entry __stop___dbe_table[];
 
-void __declare_dbe_table(void)
+static void __declare_dbe_table(void)
 {
        __asm__ __volatile__(
        ".section\t__dbe_table,\"a\"\n\t"
@@ -1576,4 +1576,5 @@ void __init trap_init(void)
 
        flush_icache_range(ebase, ebase + 0x400);
        flush_tlb_handlers();
+       __declare_dbe_table();
 }

<Prev in Thread] Current Thread [Next in Thread>