Skip to content

Commit 0de030b

Browse files
Tom Rixjarkkojs
authored andcommitted
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 <[email protected]> Signed-off-by: Jarkko Sakkinen <[email protected]>
1 parent 0b15afc commit 0de030b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security/keys/sysctl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include <linux/sysctl.h>
1010
#include "internal.h"
1111

12-
struct ctl_table key_sysctls[] = {
12+
static struct ctl_table key_sysctls[] = {
1313
{
1414
.procname = "maxkeys",
1515
.data = &key_quota_maxkeys,

0 commit comments

Comments
 (0)