Skip to content

Commit 6443cdf

Browse files
ColinIanKingrostedt
authored andcommitted
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 <[email protected]> Cc: Mathieu Desnoyers <[email protected]> Link: https://lore.kernel.org/[email protected] Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
1 parent 119a5d5 commit 6443cdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/trace/ring_buffer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4216,7 +4216,7 @@ EXPORT_SYMBOL_GPL(ring_buffer_unlock_commit);
42164216

42174217
static const char *show_irq_str(int bits)
42184218
{
4219-
const char *type[] = {
4219+
static const char * type[] = {
42204220
".", // 0
42214221
"s", // 1
42224222
"h", // 2

0 commit comments

Comments
 (0)