]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Feb 2024 08:25:28 +0000 (09:25 +0100)
commit 5ddd8baa4857709b4e5d84b376d735152851955b upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/trace/trace_events.c

index 697163f8f67089baf1f40d3cedc488d106ed41d2..3b95d7cd7fed66478ff4736ff46f088d3341b3be 100644 (file)
@@ -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)