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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Adrian Bunk <[email protected]> writes:

> Struct proc_net_ns_ops can become static.
>
> Signed-off-by: Adrian Bunk <[email protected]>

Acked-by: "Eric W. Biederman" <[email protected]>

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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux