]> Git Repo - linux.git/commitdiff
livepatch: Make 'klp_stack_entries' static
authorJosh Poimboeuf <[email protected]>
Tue, 30 May 2023 23:15:58 +0000 (16:15 -0700)
committerPetr Mladek <[email protected]>
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 <[email protected]>
Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Signed-off-by: Josh Poimboeuf <[email protected]>
Reviewed-by: Petr Mladek <[email protected]>
Signed-off-by: Petr Mladek <[email protected]>
Link: https://lore.kernel.org/r/5115752fca6537720700f4bf5b178959dfbca41a.1685488550.git.jpoimboe@kernel.org
kernel/livepatch/transition.c

index e9fd83a022285b45b00dbef80e300e0d7037665f..e54c3d60a90450649a15ac472fcc022845dc3c8e 100644 (file)
@@ -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
 
This page took 0.05909 seconds and 4 git commands to generate.