Skip to contentSkip to conversation

fs/proc/proc_net.c: make a struct static

PATCH Applied Adrian Bunk 3 participants 3 messages Oct 24, 2007 – Oct 26, 2007 Proc filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs/proc/proc_net.c: make a struct static

Struct proc_net_ns_ops can become static.

---
5ae49d45bc25eed356ecbe3592db270bfa1d9b73

fs/proc/proc_net.c +1 -1
index 2e91fb7..4edaad0 100644
@@ -185,7 +185,7 @@ static __net_exit void proc_net_ns_exit(struct net *net)
 	kfree(net->proc_net_root);
 }
 
-struct pernet_operations __net_initdata proc_net_ns_ops = {
+static struct pernet_operations __net_initdata proc_net_ns_ops = {
 	.init = proc_net_ns_init,
 	.exit = proc_net_ns_exit,
 };
Acked-by on v1 1/1
#1 lore raw
Quoted 3 lines · Adrian Bunk

Struct proc_net_ns_ops can become static.

Don't have a clue why I didn't make it static originally.

Quoted 15 lines

---
5ae49d45bc25eed356ecbe3592db270bfa1d9b73

fs/proc/proc_net.c +1 -1
index 2e91fb7..4edaad0 100644
@@ -185,7 +185,7 @@ static __net_exit void proc_net_ns_exit(struct net *net)
 	kfree(net->proc_net_root);
 }
 
-struct pernet_operations __net_initdata proc_net_ns_ops = {
+static struct pernet_operations __net_initdata proc_net_ns_ops = {
 	.init = proc_net_ns_init,
 	.exit = proc_net_ns_exit,
 };