]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
tracing: Make system_callback() function static
authorSteven Rostedt (Google) <rostedt@goodmis.org>
Thu, 5 Oct 2023 14:47:45 +0000 (10:47 -0400)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Thu, 5 Oct 2023 14:49:46 +0000 (10:49 -0400)
The system_callback() function in trace_events.c is only used within that
file. The "static" annotation was missed.

Fixes: 5790b1fb3d672 ("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>
kernel/trace/trace_events.c

index 0e3a1c70e410c1d2ff081a9bafb35b301ed5daca..db46d2116500487b5825d59c50c0072904642d2a 100644 (file)
@@ -2282,7 +2282,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)