[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1353302917-13995-36-git-send-email-josh@joshtriplett.org>
Date: Sun, 18 Nov 2012 21:28:14 -0800
From: Josh Triplett <josh@...htriplett.org>
To: Linus Torvalds <torvalds@...ux-foundation.org>,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>,
"H. Peter Anvin" <hpa@...or.com>, x86@...nel.org,
Josh Triplett <josh@...htriplett.org>,
Matt Fleming <matt.fleming@...el.com>,
Al Viro <viro@...iv.linux.org.uk>, linux-kernel@...r.kernel.org
Subject: [PATCH 35/58] x86: arch/x86/kernel/asm-offsets.c: Add prototype for dummy function common
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@...htriplett.org>
---
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists