Skip to content

Commit

Permalink
livepatch: Make 'klp_stack_entries' static
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Josh Poimboeuf authored and Petr Mladek committed Jun 5, 2023
1 parent ac9a786 commit 42cffe9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/livepatch/transition.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include "transition.h"

#define MAX_STACK_ENTRIES 100
DEFINE_PER_CPU(unsigned long[MAX_STACK_ENTRIES], klp_stack_entries);
static DEFINE_PER_CPU(unsigned long[MAX_STACK_ENTRIES], klp_stack_entries);

#define STACK_ERR_BUF_SIZE 128

Expand Down

0 comments on commit 42cffe9

Please sign in to comment.