Skip to content

Commit

Permalink
tracing: Make system_callback() function static
Browse files Browse the repository at this point in the history
commit 5ddd8ba upstream.

The system_callback() function in trace_events.c is only used within that
file. The "static" annotation was missed.

Fixes: 5790b1f ("eventfs: Remove eventfs_file and just use eventfs_inode")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202310051743.y9EobbUr-lkp@intel.com/
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Steven Rostedt (Google) authored and Greg Kroah-Hartman committed Feb 23, 2024
1 parent cec85aa commit 9389eaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/trace/trace_events.c
Original file line number Diff line number Diff line change
@@ -2302,7 +2302,7 @@ create_new_subsystem(const char *name)
return NULL;
}

int system_callback(const char *name, umode_t *mode, void **data,
static int system_callback(const char *name, umode_t *mode, void **data,
const struct file_operations **fops)
{
if (strcmp(name, "filter") == 0)

0 comments on commit 9389eaa

Please sign in to comment.