Skip to content

Commit 153eb22

Browse files
jpoimboeIngo Molnar
authored andcommitted
x86/unwind/orc: Convert global variables to static
These variables aren't used outside of unwind_orc.c, make them static. Also annotate some of them with '__ro_after_init', as applicable. Reviewed-by: Miroslav Benes <[email protected]> Signed-off-by: Josh Poimboeuf <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Cc: Andy Lutomirski <[email protected]> Cc: Dave Jones <[email protected]> Cc: Jann Horn <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Vince Weaver <[email protected]> Link: https://lore.kernel.org/r/43ae310bf7822b9862e571f36ae3474cfde8f301.1587808742.git.jpoimboe@redhat.com
1 parent f977df7 commit 153eb22

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

arch/x86/kernel/unwind_orc.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ extern int __stop_orc_unwind_ip[];
1515
extern struct orc_entry __start_orc_unwind[];
1616
extern struct orc_entry __stop_orc_unwind[];
1717

18-
static DEFINE_MUTEX(sort_mutex);
19-
int *cur_orc_ip_table = __start_orc_unwind_ip;
20-
struct orc_entry *cur_orc_table = __start_orc_unwind;
18+
static bool orc_init __ro_after_init;
19+
static unsigned int lookup_num_blocks __ro_after_init;
2120

22-
unsigned int lookup_num_blocks;
23-
bool orc_init;
21+
static DEFINE_MUTEX(sort_mutex);
22+
static int *cur_orc_ip_table = __start_orc_unwind_ip;
23+
static struct orc_entry *cur_orc_table = __start_orc_unwind;
2424

2525
static inline unsigned long orc_ip(const int *ip)
2626
{

0 commit comments

Comments
 (0)