* [PATCH] livepatch: Make 'klp_stack_entries' static
@ 2023-05-30 23:15 Josh Poimboeuf
2023-05-31 8:07 ` Petr Mladek
2023-06-05 14:47 ` Petr Mladek
0 siblings, 2 replies; 3+ messages in thread
From: Josh Poimboeuf @ 2023-05-30 23:15 UTC (permalink / raw)
To: live-patching; +Cc: linux-kernel, kernel test robot
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>
---
kernel/livepatch/transition.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/livepatch/transition.c b/kernel/livepatch/transition.c
index e9fd83a02228..e54c3d60a904 100644
--- 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
--
2.40.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] livepatch: Make 'klp_stack_entries' static
2023-05-30 23:15 [PATCH] livepatch: Make 'klp_stack_entries' static Josh Poimboeuf
@ 2023-05-31 8:07 ` Petr Mladek
2023-06-05 14:47 ` Petr Mladek
1 sibling, 0 replies; 3+ messages in thread
From: Petr Mladek @ 2023-05-31 8:07 UTC (permalink / raw)
To: Josh Poimboeuf; +Cc: live-patching, linux-kernel, kernel test robot
On Tue 2023-05-30 16:15:58, Josh Poimboeuf wrote:
> 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>
Best Regards,
Petr
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] livepatch: Make 'klp_stack_entries' static
2023-05-30 23:15 [PATCH] livepatch: Make 'klp_stack_entries' static Josh Poimboeuf
2023-05-31 8:07 ` Petr Mladek
@ 2023-06-05 14:47 ` Petr Mladek
1 sibling, 0 replies; 3+ messages in thread
From: Petr Mladek @ 2023-06-05 14:47 UTC (permalink / raw)
To: Josh Poimboeuf; +Cc: live-patching, linux-kernel, kernel test robot
On Tue 2023-05-30 16:15:58, Josh Poimboeuf wrote:
> 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>
JFYI, the patch has been committed into livepatching.git, branch
for-6.5/core.
Best Regards,
Petr
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-06-05 14:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-30 23:15 [PATCH] livepatch: Make 'klp_stack_entries' static Josh Poimboeuf
2023-05-31 8:07 ` Petr Mladek
2023-06-05 14:47 ` Petr Mladek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox