From: Jan Engelhardt Date: Sat, 20 Nov 2010 18:07:21 +0000 (+0000) Subject: netns: let net_generic take pointer-to-const args X-Git-Tag: Ubuntu-goldfish-3.4.0-4.27~4914^2~496 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=20a95a2169d1cd3da50cf65ba882d0e27a4a2d4f;p=mirror_ubuntu-zesty-kernel.git netns: let net_generic take pointer-to-const args This commit is same in nature as v2.6.37-rc1-755-g3654654; the network namespace itself is not modified when calling net_generic, so the parameter can be const. Signed-off-by: Jan Engelhardt Signed-off-by: David S. Miller --- diff --git a/include/net/netns/generic.h b/include/net/netns/generic.h index 81a31c0db3e7..3419bf5cd154 100644 --- a/include/net/netns/generic.h +++ b/include/net/netns/generic.h @@ -30,7 +30,7 @@ struct net_generic { void *ptr[0]; }; -static inline void *net_generic(struct net *net, int id) +static inline void *net_generic(const struct net *net, int id) { struct net_generic *ng; void *ptr;