Skip to contentSkip to conversation

i386 asm-offsets.c: workaround for a -Wmissing-prototypes warning

PATCH New Adrian Bunk 1 participant 1 message Feb 21, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i386 asm-offsets.c: workaround for a -Wmissing-prototypes warning

This patch works 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.

---

arch/i386/kernel/asm-offsets.c renamed from arch/i386/kernel/asm-offsets.c.old +3 -0
@@ -29,6 +29,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);