diff options
author | Tom Rix <trix@redhat.com> | 2023-06-11 13:32:10 +0200 |
---|---|---|
committer | Jarkko Sakkinen <jarkko@kernel.org> | 2023-08-07 19:55:54 +0200 |
commit | 0de030b308236a1392f924f527cf74614d8b6aef (patch) | |
tree | fca2e5f9519e9c32575afa2f0a576c323a423284 /security | |
parent | tpm/tpm_tis: Disable interrupts for TUXEDO InfinityBook S 15/17 Gen7 (diff) | |
download | linux-0de030b308236a1392f924f527cf74614d8b6aef.tar.xz linux-0de030b308236a1392f924f527cf74614d8b6aef.zip |
sysctl: set variable key_sysctls storage-class-specifier to static
smatch reports
security/keys/sysctl.c:12:18: warning: symbol
'key_sysctls' 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>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
Diffstat (limited to 'security')
-rw-r--r-- | security/keys/sysctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/keys/sysctl.c b/security/keys/sysctl.c index b72b82bb20c6..b348e1679d5d 100644 --- a/security/keys/sysctl.c +++ b/security/keys/sysctl.c @@ -9,7 +9,7 @@ #include <linux/sysctl.h> #include "internal.h" -struct ctl_table key_sysctls[] = { +static struct ctl_table key_sysctls[] = { { .procname = "maxkeys", .data = &key_quota_maxkeys, |