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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,