Commit 0de030b3 authored by Tom Rix's avatar Tom Rix Committed by Jarkko Sakkinen

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: default avatarTom Rix <trix@redhat.com>
Signed-off-by: default avatarJarkko Sakkinen <jarkko@kernel.org>
parent 0b15afc9
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#include <linux/sysctl.h> #include <linux/sysctl.h>
#include "internal.h" #include "internal.h"
struct ctl_table key_sysctls[] = { static struct ctl_table key_sysctls[] = {
{ {
.procname = "maxkeys", .procname = "maxkeys",
.data = &key_quota_maxkeys, .data = &key_quota_maxkeys,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment