Skip to content

Commit 42cffe9

Browse files
jpoimboepmladek
authored andcommitted
livepatch: Make 'klp_stack_entries' static
The 'klp_stack_entries' percpu array is only used in transition.c. Make it static. Fixes: e92606f ("livepatch: Convert stack entries array to percpu") Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202305171329.i0UQ4TJa-lkp@intel.com/ Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org> Reviewed-by: Petr Mladek <pmladek@suse.com> Signed-off-by: Petr Mladek <pmladek@suse.com> Link: https://lore.kernel.org/r/5115752fca6537720700f4bf5b178959dfbca41a.1685488550.git.jpoimboe@kernel.org
1 parent ac9a786 commit 42cffe9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/livepatch/transition.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include "transition.h"
1616

1717
#define MAX_STACK_ENTRIES 100
18-
DEFINE_PER_CPU(unsigned long[MAX_STACK_ENTRIES], klp_stack_entries);
18+
static DEFINE_PER_CPU(unsigned long[MAX_STACK_ENTRIES], klp_stack_entries);
1919

2020
#define STACK_ERR_BUF_SIZE 128
2121

0 commit comments

Comments
 (0)