lkml.org 
[lkml]   [2020]   [Apr]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] x86/unwind/orc: make some symbols static
Date
Fix the following sparse warning:

arch/x86/kernel/unwind_orc.c:19:5: warning: symbol 'cur_orc_ip_table'
was not declared. Should it be static?
arch/x86/kernel/unwind_orc.c:20:18: warning: symbol 'cur_orc_table' was
not declared. Should it be static?
arch/x86/kernel/unwind_orc.c:22:14: warning: symbol 'lookup_num_blocks'
was not declared. Should it be static?
arch/x86/kernel/unwind_orc.c:23:6: warning: symbol 'orc_init' was not
declared. Should it be static?

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Jason Yan <yanaijie@huawei.com>
---
arch/x86/kernel/unwind_orc.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/x86/kernel/unwind_orc.c b/arch/x86/kernel/unwind_orc.c
index e9cc182aa97e..0dbabc469ce2 100644
--- a/arch/x86/kernel/unwind_orc.c
+++ b/arch/x86/kernel/unwind_orc.c
@@ -16,11 +16,11 @@ extern struct orc_entry __start_orc_unwind[];
extern struct orc_entry __stop_orc_unwind[];

static DEFINE_MUTEX(sort_mutex);
-int *cur_orc_ip_table = __start_orc_unwind_ip;
-struct orc_entry *cur_orc_table = __start_orc_unwind;
+static int *cur_orc_ip_table = __start_orc_unwind_ip;
+static struct orc_entry *cur_orc_table = __start_orc_unwind;

-unsigned int lookup_num_blocks;
-bool orc_init;
+static unsigned int lookup_num_blocks;
+static bool orc_init;

static inline unsigned long orc_ip(const int *ip)
{
--
2.21.1
\
 
 \ /
  Last update: 2020-04-13 09:56    [W:0.060 / U:0.196 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site