[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20070429105259.579CA151C5@wotan.suse.de>
Date: Sun, 29 Apr 2007 12:52:59 +0200 (CEST)
From: Andi Kleen <ak@...e.de>
To: Adrian Bunk <bunk@...sta.de>, Andi Kleen <ak@....de>,
patches@...-64.org, linux-kernel@...r.kernel.org
Subject: [PATCH] [11/48] i386: workaround for a -Wmissing-prototypes warning
From: Adrian Bunk <bunk@...sta.de>
Work around a warning with -Wmissing-prototypes in
arch/i386/kernel/asm-offsets.c
The warning isn't gcc's fault - asm-offsets.c is simply a special file.
Signed-off-by: Adrian Bunk <bunk@...sta.de>
Signed-off-by: Andi Kleen <ak@...e.de>
Cc: Andi Kleen <ak@....de>
Signed-off-by: Andrew Morton <akpm@...ux-foundation.org>
---
arch/i386/kernel/asm-offsets.c | 3 +++
1 file changed, 3 insertions(+)
Index: linux/arch/i386/kernel/asm-offsets.c
===================================================================
--- linux.orig/arch/i386/kernel/asm-offsets.c
+++ linux/arch/i386/kernel/asm-offsets.c
@@ -25,6 +25,9 @@
#define OFFSET(sym, str, mem) \
DEFINE(sym, offsetof(struct str, mem));
+/* workaround for a warning with -Wmissing-prototypes */
+void foo(void);
+
void foo(void)
{
OFFSET(SIGCONTEXT_eax, sigcontext, eax);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists