diff options
| author | Steven Rostedt (Google) <rostedt@goodmis.org> | 2024-06-05 16:26:46 -0400 | 
|---|---|---|
| committer | Steven Rostedt (Google) <rostedt@goodmis.org> | 2024-06-06 15:22:18 -0400 | 
| commit | 1f51ba905e792a4f6d7b313756a4f99386990ddf (patch) | |
| tree | 32aa14ae01144c4aa87f877efd8ec39ad8f3384a /net/unix/af_unix.c | |
| parent | 1d5f0222944fe723b9bfaaeb27e368363644ccab (diff) | |
ftrace: Assign ftrace_list_end to ftrace_ops_list type cast to RCU
Use a type cast to convert ftrace_list_end to RCU when assigning
ftrace_ops_list. This will quiet the sparse warning:
 kernel/trace/ftrace.c:125:59: warning: incorrect type in initializer (different address spaces)
 kernel/trace/ftrace.c:125:59:    expected struct ftrace_ops [noderef] __rcu *[addressable] [toplevel] ftrace_ops_list
 kernel/trace/ftrace.c:125:59:    got struct ftrace_ops *
Link: https://lore.kernel.org/linux-trace-kernel/20240605202708.450784356@goodmis.org
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
