From: Tom Rix Date: Sun, 11 Jun 2023 11:32:10 +0000 (-0400) Subject: sysctl: set variable key_sysctls storage-class-specifier to static X-Git-Tag: v6.6.17~4247^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0de030b308236a1392f924f527cf74614d8b6aef;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Jarkko Sakkinen --- diff --git a/security/keys/sysctl.c b/security/keys/sysctl.c index b72b82b..b348e16 100644 --- a/security/keys/sysctl.c +++ b/security/keys/sysctl.c @@ -9,7 +9,7 @@ #include #include "internal.h" -struct ctl_table key_sysctls[] = { +static struct ctl_table key_sysctls[] = { { .procname = "maxkeys", .data = &key_quota_maxkeys,