summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Shiyan <shc_work@mail.ru>2014-02-16 11:24:30 +0400
committerSascha Hauer <s.hauer@pengutronix.de>2014-02-17 08:21:22 +0100
commit00fa656976d954b9a09c44c79db8567952bb1eed (patch)
treee14eeb8f5bf22f106eb3aedcf1cef8e0c3dac43e
parentf62f3affa84eefc6d834f26fdb55aebb1e7ce8e2 (diff)
downloadbarebox-00fa656976d954b9a09c44c79db8567952bb1eed.tar.gz
common/kallsyms.c: Fix sparse warning
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> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--common/kallsyms.c8
1 files 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;