From: Adrian Bunk Date: Wed, 2 May 2007 17:27:08 +0000 (+0200) Subject: [PATCH] i386: workaround for a -Wmissing-prototypes warning X-Git-Tag: v2.6.22-rc1~1011^2~164 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=2714221985ce6388ec2fa78d7d52e2a5bef78eec;p=linux-2.6-omap-h63xx.git [PATCH] i386: workaround for a -Wmissing-prototypes warning 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 Signed-off-by: Andi Kleen Cc: Andi Kleen Signed-off-by: Andrew Morton --- diff --git a/arch/i386/kernel/asm-offsets.c b/arch/i386/kernel/asm-offsets.c index c37535163bf..d822792d8e3 100644 --- a/arch/i386/kernel/asm-offsets.c +++ b/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);