Re: [2.6 patch] fs/proc/proc_net.c: make a struct static

From: Eric W. Biederman
Date: Wed Oct 24 2007 - 14:19:01 EST


Adrian Bunk <bunk@xxxxxxxxxx> writes:

> Struct proc_net_ns_ops can become static.
>
> Signed-off-by: Adrian Bunk <bunk@xxxxxxxxxx>

Acked-by: "Eric W. Biederman" <ebiederm@xxxxxxxxxxxx>

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



> ---
> 5ae49d45bc25eed356ecbe3592db270bfa1d9b73
> diff --git a/fs/proc/proc_net.c b/fs/proc/proc_net.c
> index 2e91fb7..4edaad0 100644
> --- a/fs/proc/proc_net.c
> +++ b/fs/proc/proc_net.c
> @@ -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,
> };
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/