Skip to contentSkip to conversation

fscache/main.c: local variables should be static

PATCH New H Hartley Sweeten 1 participant 1 message Sep 23, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fscache/main.c: local variables should be static

Quiets the sparse noise:

warning: symbol 'fscache_sysctls' was not declared. Should it be static?
warning: symbol 'fscache_sysctls_root' was not declared. Should it be static?

---

fs/fscache/main.c +2 -2
index f9d8567..59599c5 100644
@@ -67,7 +67,7 @@ static int fscache_max_active_sysctl(struct ctl_table *table, int write,
 	return ret;
 }
 
-ctl_table fscache_sysctls[] = {
+static ctl_table fscache_sysctls[] = {
 	{
 		.procname	= "object_max_active",
 		.data		= &fscache_object_max_active,
@@ -87,7 +87,7 @@ ctl_table fscache_sysctls[] = {
 	{}
 };
 
-ctl_table fscache_sysctls_root[] = {
+static ctl_table fscache_sysctls_root[] = {
 	{
 		.procname	= "fscache",
 		.mode		= 0555,