From 7d8965fde5f86cad1038fac45b25564ea4eeeb18 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Sat, 4 Jan 2025 14:10:34 +0000 Subject: [PATCH] Revert "tracing: Constify string literal data member in struct trace_event_call" This reverts commit f2a16d2ba4a6e7e68ac8910d5ab950d8e921ad6c which is commit 452f4b31e3f70a52b97890888eeb9eaa9a87139a upstream. It breaks the Android kernel abi and can be brought back in the future in an abi-safe way if it is really needed. Bug: 161946584 Change-Id: Ifca34bf597ae627b5d9c61b5d6e6fbe9a568cfc3 Signed-off-by: Greg Kroah-Hartman --- include/linux/trace_events.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/trace_events.h b/include/linux/trace_events.h index 3e6a78800543..f52353ef98e5 100644 --- a/include/linux/trace_events.h +++ b/include/linux/trace_events.h @@ -355,7 +355,7 @@ struct trace_event_call { struct list_head list; struct trace_event_class *class; union { - const char *name; + char *name; /* Set TRACE_EVENT_FL_TRACEPOINT flag when using "tp" */ struct tracepoint *tp; };