summaryrefslogtreecommitdiffstats
path: root/arch/i386/kernel/asm-offsets.c
diff options
context:
space:
mode:
authorAdrian Bunk2007-05-02 19:27:08 +0200
committerAndi Kleen2007-05-02 19:27:08 +0200
commit2714221985ce6388ec2fa78d7d52e2a5bef78eec (patch)
tree9fc7e4199dd6487258d1b0c94ca1c0c7acb8d164 /arch/i386/kernel/asm-offsets.c
parent[PATCH] i386: type cast clean up for find_next_zero_bit (diff)
downloadkernel-qcow2-linux-2714221985ce6388ec2fa78d7d52e2a5bef78eec.tar.gz
kernel-qcow2-linux-2714221985ce6388ec2fa78d7d52e2a5bef78eec.tar.xz
kernel-qcow2-linux-2714221985ce6388ec2fa78d7d52e2a5bef78eec.zip
[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 <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>
Diffstat (limited to 'arch/i386/kernel/asm-offsets.c')
-rw-r--r--arch/i386/kernel/asm-offsets.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/i386/kernel/asm-offsets.c b/arch/i386/kernel/asm-offsets.c
index c37535163bfc..d822792d8e3e 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);