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 <mhiramat@kernel.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Link: https://lore.kernel.org/20250714160858.1234719-1-colin.i.king@gmail.com
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
This commit is contained in:
Colin Ian King 2025-07-14 17:08:58 +01:00 committed by Steven Rostedt (Google)
parent 119a5d5736
commit 6443cdf567

View file

@ -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