[PATCH 35/58] x86: arch/x86/kernel/asm-offsets.c: Add prototype for dummy function common

From: Josh Triplett
Date: Mon Nov 19 2012 - 00:31:09 EST


arch/x86/kernel/asm-offsets.c defines an intentionally unused function
common, just to slurp out the generated assembly and obtain the values
for some constants. Add a prototype of this function, to satisfy GCC
(-Wmissing-prototypes) and Sparse (-Wdecl).

arch/x86/kernel/asm-offsets.c:30:6: warning: no previous prototype for âcommonâ [-Wmissing-prototypes]

Signed-off-by: Josh Triplett <josh@xxxxxxxxxxxxxxxx>
---
arch/x86/kernel/asm-offsets.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/arch/x86/kernel/asm-offsets.c b/arch/x86/kernel/asm-offsets.c
index 2861082..bae77e4 100644
--- a/arch/x86/kernel/asm-offsets.c
+++ b/arch/x86/kernel/asm-offsets.c
@@ -27,6 +27,8 @@
# include "asm-offsets_64.c"
#endif

+void common(void);
+
void common(void) {
BLANK();
OFFSET(TI_flags, thread_info, flags);
--
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/