* [2.6 patch] i386 asm-offsets.c: workaround for a -Wmissing-prototypes warning
@ 2007-02-21 11:57 Adrian Bunk
0 siblings, 0 replies; only message in thread
From: Adrian Bunk @ 2007-02-21 11:57 UTC (permalink / raw)
To: linux-kernel
This patch works 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@stusta.de>
---
--- linux-2.6.20-mm2/arch/i386/kernel/asm-offsets.c.old 2007-02-20 23:28:45.000000000 +0100
+++ linux-2.6.20-mm2/arch/i386/kernel/asm-offsets.c 2007-02-20 23:29:42.000000000 +0100
@@ -29,6 +29,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);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-02-21 11:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-21 11:57 [2.6 patch] i386 asm-offsets.c: workaround for a -Wmissing-prototypes warning Adrian Bunk
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.