Commit 6443cdf5 authored by Colin Ian King's avatar Colin Ian King Committed by Steven Rostedt (Google)
Browse files

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: default avatarColin Ian King <colin.i.king@gmail.com>
Signed-off-by: default avatarSteven Rostedt (Google) <rostedt@goodmis.org>
parent 119a5d57
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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