]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] i386: workaround for a -Wmissing-prototypes warning
authorAdrian Bunk <bunk@stusta.de>
Wed, 2 May 2007 17:27:08 +0000 (19:27 +0200)
committerAndi Kleen <andi@basil.nowhere.org>
Wed, 2 May 2007 17:27:08 +0000 (19:27 +0200)
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@stusta.de>
Signed-off-by: Andi Kleen <ak@suse.de>
Cc: Andi Kleen <ak@muc.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/i386/kernel/asm-offsets.c

index c37535163bfc1624bb069f85743a87211972b202..d822792d8e3eee195be7c52efbfbadbbd08a315d 100644 (file)
@@ -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);