mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/8] common/kallsyms.c: Fix sparse warning
@ 2014-02-16  7:24 Alexander Shiyan
  2014-02-16  7:24 ` [PATCH 2/8] drivers/clk/clk-fixed.c: " Alexander Shiyan
                   ` (7 more replies)
  0 siblings, 8 replies; 10+ messages in thread
From: Alexander Shiyan @ 2014-02-16  7:24 UTC (permalink / raw)
  To: barebox

CHECK   common/kallsyms.c
common/kallsyms.c:170:12: warning: symbol 'kallsyms_lookup' was not declared. Should it be static?

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
---
 common/kallsyms.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/common/kallsyms.c b/common/kallsyms.c
index 94dfcdc..121b77c 100644
--- a/common/kallsyms.c
+++ b/common/kallsyms.c
@@ -167,10 +167,10 @@ static unsigned long get_symbol_pos(unsigned long addr,
  *   It resides in a module.
  * - We also guarantee that modname will be valid until rescheduled.
  */
-const char *kallsyms_lookup(unsigned long addr,
-			    unsigned long *symbolsize,
-			    unsigned long *offset,
-			    char **modname, char *namebuf)
+static const char *kallsyms_lookup(unsigned long addr,
+				   unsigned long *symbolsize,
+				   unsigned long *offset,
+				   char **modname, char *namebuf)
 {
 	namebuf[KSYM_NAME_LEN - 1] = 0;
 	namebuf[0] = 0;
-- 
1.8.3.2


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-02-17  7:31 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-16  7:24 [PATCH 1/8] common/kallsyms.c: Fix sparse warning Alexander Shiyan
2014-02-16  7:24 ` [PATCH 2/8] drivers/clk/clk-fixed.c: " Alexander Shiyan
2014-02-16  7:24 ` [PATCH 3/8] drivers/clk/clk-fixed-factor.c: " Alexander Shiyan
2014-02-16  7:24 ` [PATCH 4/8] drivers/clk/clk-mux.c: " Alexander Shiyan
2014-02-16  7:24 ` [PATCH 5/8] drivers/clk/clk-gate.c: " Alexander Shiyan
2014-02-16  7:24 ` [PATCH 6/8] drivers/clk/clk-divider-table.c: " Alexander Shiyan
2014-02-16  7:24 ` [PATCH 7/8] drivers/i2c/i2c.c: Fix sparse warnings Alexander Shiyan
2014-02-16  7:24 ` [PATCH 8/8] drivers/of/base.c: " Alexander Shiyan
2014-02-17  7:25 ` [PATCH 1/8] common/kallsyms.c: Fix sparse warning Sascha Hauer
2014-02-17  7:30   ` Alexander Shiyan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox