[Top] [All Lists]

Re: [PATCH] Make __declare_dbe_table() static

To: Atsushi Nemoto <>
Subject: Re: [PATCH] Make __declare_dbe_table() static
From: Ralf Baechle <>
Date: Sun, 18 Feb 2007 15:54:08 +0000
In-reply-to: <>
Original-recipient: rfc822;
References: <>
User-agent: Mutt/
On Mon, Feb 19, 2007 at 12:44:35AM +0900, Atsushi Nemoto wrote:

> Make __declare_dbe_table() static and call it explicitly to ensure not
> optimized out.

That's what __attribute_used__ was meant to be used for.


Signed-off-by: Ralf Baechle <>

diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c
index cfd1785..db0a9a2 100644
--- a/arch/mips/kernel/traps.c
+++ b/arch/mips/kernel/traps.c
@@ -340,7 +340,7 @@ NORET_TYPE void ATTRIB_NORET die(const char * str, struct 
pt_regs * regs)
 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 __attribute_used__ __declare_dbe_table(void)
        __asm__ __volatile__(

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