From: Adrian Bunk 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 Cc: Andi Kleen Signed-off-by: Andrew Morton --- arch/i386/kernel/asm-offsets.c | 3 +++ 1 file changed, 3 insertions(+) diff -puN arch/i386/kernel/asm-offsets.c~i386-asm-offsetsc-workaround-for-a-wmissing-prototypes-warning arch/i386/kernel/asm-offsets.c --- a/arch/i386/kernel/asm-offsets.c~i386-asm-offsetsc-workaround-for-a-wmissing-prototypes-warning +++ a/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); _