Skip to content

Commit 7fffbc7

Browse files
Tom Rixmcgrof
authored andcommitted
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>
1 parent b25f62c commit 7fffbc7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/proc/proc_sysctl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ static const struct file_operations proc_sys_dir_file_operations;
2929
static const struct inode_operations proc_sys_dir_operations;
3030

3131
/* Support for permanently empty directories */
32-
struct ctl_table sysctl_mount_point[] = {
32+
static struct ctl_table sysctl_mount_point[] = {
3333
{.type = SYSCTL_TABLE_TYPE_PERMANENTLY_EMPTY }
3434
};
3535

0 commit comments

Comments
 (0)