From: Colin Ian King Date: Mon, 14 Jul 2025 16:08:58 +0000 (+0100) Subject: ring-buffer: Make the const read-only 'type' static X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6443cdf567a900e03afe1d66fb8bcc7dad0835d0;p=thirdparty%2Flinux.git ring-buffer: Make the const read-only 'type' static Don't populate the read-only 'type' on the stack at run time, instead make it static. Cc: Masami Hiramatsu Cc: Mathieu Desnoyers Link: https://lore.kernel.org/20250714160858.1234719-1-colin.i.king@gmail.com Signed-off-by: Colin Ian King Signed-off-by: Steven Rostedt (Google) --- diff --git a/kernel/trace/ring_buffer.c b/kernel/trace/ring_buffer.c index 903d9db75e12e..5176e0270f072 100644 --- a/kernel/trace/ring_buffer.c +++ b/kernel/trace/ring_buffer.c @@ -4216,7 +4216,7 @@ EXPORT_SYMBOL_GPL(ring_buffer_unlock_commit); static const char *show_irq_str(int bits) { - const char *type[] = { + static const char * type[] = { ".", // 0 "s", // 1 "h", // 2