[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250121145002.455962130@goodmis.org>
Date: Tue, 21 Jan 2025 09:49:41 -0500
From: Steven Rostedt <rostedt@...dmis.org>
To: linux-kernel@...r.kernel.org
Cc: Masami Hiramatsu <mhiramat@...nel.org>,
Mark Rutland <mark.rutland@....com>,
Mathieu Desnoyers <mathieu.desnoyers@...icios.com>,
Andrew Morton <akpm@...ux-foundation.org>,
kernel test robot <lkp@...el.com>
Subject: [for-next][PATCH 2/2] tracing: Rename update_cache() to update_mod_cache()
From: Steven Rostedt <rostedt@...dmis.org>
The static function in trace_events.c called update_cache() is too generic
and conflicts with the function defined in arch/openrisc/include/asm/pgtable.h
Rename it to update_mod_cache() to make it less generic.
Cc: Masami Hiramatsu <mhiramat@...nel.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@...icios.com>
Link: https://lore.kernel.org/20250120172756.4ecfb43f@batman.local.home
Reported-by: kernel test robot <lkp@...el.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202501210550.Ufrj5CRn-lkp@intel.com/
Fixes: b355247df104e ("tracing: Cache ":mod:" events for modules not loaded yet")
Signed-off-by: Steven Rostedt (Google) <rostedt@...dmis.org>
---
kernel/trace/trace_events.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c
index bb1406719c3f..51c5014877e8 100644
--- a/kernel/trace/trace_events.c
+++ b/kernel/trace/trace_events.c
@@ -3580,7 +3580,7 @@ EXPORT_SYMBOL_GPL(trace_remove_event_call);
event++)
#ifdef CONFIG_MODULES
-static void update_cache(struct trace_array *tr, struct module *mod)
+static void update_mod_cache(struct trace_array *tr, struct module *mod)
{
struct event_mod_load *event_mod, *n;
@@ -3600,7 +3600,7 @@ static void update_cache_events(struct module *mod)
struct trace_array *tr;
list_for_each_entry(tr, &ftrace_trace_arrays, list)
- update_cache(tr, mod);
+ update_mod_cache(tr, mod);
}
static void trace_module_add_events(struct module *mod)
--
2.45.2
Powered by blists - more mailing lists