summaryrefslogtreecommitdiffstats
path: root/fs/proc/proc_sysctl.c
diff options
context:
space:
mode:
authorTom Rix <trix@redhat.com>2023-07-01 01:19:47 +0200
committerLuis Chamberlain <mcgrof@kernel.org>2023-07-01 01:19:47 +0200
commit7fffbc71075dcb733068d711c2593127cdce86f0 (patch)
treeb8e3d6334d8ef48f0fc33483abf57d6cd1832ebd /fs/proc/proc_sysctl.c
parentMerge tag 'vfio-v6.5-rc1' of https://github.com/awilliam/linux-vfio (diff)
downloadlinux-7fffbc71075dcb733068d711c2593127cdce86f0.tar.xz
linux-7fffbc71075dcb733068d711c2593127cdce86f0.zip
sysctl: set variable sysctl_mount_point storage-class-specifier to static
smatch reports fs/proc/proc_sysctl.c:32:18: warning: symbol 'sysctl_mount_point' was not declared. Should it be static? This variable is only used in its defining file, so it should be static. Signed-off-by: Tom Rix <trix@redhat.com> Reviewed-by: Kees Cook <keescook@chromium.org> Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Diffstat (limited to '')
-rw-r--r--fs/proc/proc_sysctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c
index 4e5488975415..5ea42653126e 100644
--- a/fs/proc/proc_sysctl.c
+++ b/fs/proc/proc_sysctl.c
@@ -29,7 +29,7 @@ static const struct file_operations proc_sys_dir_file_operations;
static const struct inode_operations proc_sys_dir_operations;
/* Support for permanently empty directories */
-struct ctl_table sysctl_mount_point[] = {
+static struct ctl_table sysctl_mount_point[] = {
{.type = SYSCTL_TABLE_TYPE_PERMANENTLY_EMPTY }
};