projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac9a786
)
livepatch: Make 'klp_stack_entries' static
author
Josh Poimboeuf
<jpoimboe@kernel.org>
Tue, 30 May 2023 23:15:58 +0000
(16:15 -0700)
committer
Petr Mladek
<pmladek@suse.com>
Mon, 5 Jun 2023 11:56:52 +0000
(13:56 +0200)
The 'klp_stack_entries' percpu array is only used in transition.c. Make
it static.
Fixes:
e92606fa172f
("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
kernel/livepatch/transition.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/livepatch/transition.c
b/kernel/livepatch/transition.c
index e9fd83a022285b45b00dbef80e300e0d7037665f..e54c3d60a90450649a15ac472fcc022845dc3c8e 100644
(file)
--- a/
kernel/livepatch/transition.c
+++ b/
kernel/livepatch/transition.c
@@
-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