| To: | Atsushi Nemoto <anemo@mba.ocn.ne.jp> |
|---|---|
| Subject: | Re: [PATCH] Make __declare_dbe_table() static |
| From: | Ralf Baechle <ralf@linux-mips.org> |
| Date: | Sun, 18 Feb 2007 15:54:08 +0000 |
| Cc: | linux-mips@linux-mips.org |
| In-reply-to: | <20070219.004435.25910295.anemo@mba.ocn.ne.jp> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <20070219.004435.25910295.anemo@mba.ocn.ne.jp> |
| Sender: | linux-mips-bounce@linux-mips.org |
| User-agent: | Mutt/1.4.2.2i |
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.
Ralf
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
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__(
".section\t__dbe_table,\"a\"\n\t"
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH] Make __declare_dbe_table() static, Atsushi Nemoto |
|---|---|
| Next by Date: | [PATCH] Make kernel_thread_helper() static, Atsushi Nemoto |
| Previous by Thread: | [PATCH] Make __declare_dbe_table() static, Atsushi Nemoto |
| Next by Thread: | Re: [PATCH] Make __declare_dbe_table() static, Atsushi Nemoto |
| Indexes: | [Date] [Thread] [Top] [All Lists] |