fs/proc/proc_net.c: make a struct static
PATCH 1/1 fs/proc/proc_net.c: make a struct static
Struct proc_net_ns_ops can become static.
Signed-off-by Adrian Bunk <[email protected]>
---5ae49d45bc25eed356ecbe3592db270bfa1d9b73
fs/proc/proc_net.c +1 -1
@@ -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, };
Quoted 3 lines · Adrian Bunk
Struct
proc_net_ns_opscan become static.Signed-off-by Adrian Bunk <[email protected]>
Don't have a clue why I didn't make it static originally.
Quoted 15 lines
---
5ae49d45bc25eed356ecbe3592db270bfa1d9b73fs/proc/proc_net.c +1
-1@@ -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, };
David Miller
AppliedFrom: [email protected] (Eric W. Biederman)
Date: Wed, 24 Oct 2007 12:18:22 -0600
Quoted 7 lines
Quoted 3 lines · Adrian Bunk
Struct
proc_net_ns_opscan become static.Signed-off-by Adrian Bunk <[email protected]>
Applied, thanks everyone.
Quoted 1 line
Don't have a clue why I didn't make it static originally.
:-)