Skip to content

Commit 22412b7

Browse files
committed
tracing: Rename update_cache() to update_mod_cache()
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@kernel.org> Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Link: https://lore.kernel.org/20250120172756.4ecfb43f@batman.local.home Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202501210550.Ufrj5CRn-lkp@intel.com/ Fixes: b355247 ("tracing: Cache ":mod:" events for modules not loaded yet") Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
1 parent a925df6 commit 22412b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kernel/trace/trace_events.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3580,7 +3580,7 @@ EXPORT_SYMBOL_GPL(trace_remove_event_call);
35803580
event++)
35813581

35823582
#ifdef CONFIG_MODULES
3583-
static void update_cache(struct trace_array *tr, struct module *mod)
3583+
static void update_mod_cache(struct trace_array *tr, struct module *mod)
35843584
{
35853585
struct event_mod_load *event_mod, *n;
35863586

@@ -3600,7 +3600,7 @@ static void update_cache_events(struct module *mod)
36003600
struct trace_array *tr;
36013601

36023602
list_for_each_entry(tr, &ftrace_trace_arrays, list)
3603-
update_cache(tr, mod);
3603+
update_mod_cache(tr, mod);
36043604
}
36053605

36063606
static void trace_module_add_events(struct module *mod)

0 commit comments

Comments
 (0)