Skip to content

Commit

Permalink
[PATCH] i386: workaround for a -Wmissing-prototypes warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Adrian Bunk authored and Andi Kleen committed May 2, 2007
1 parent e48b30c commit 2714221
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/i386/kernel/asm-offsets.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2714221

Please sign in to comment.