Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <jengelh@medozas.de>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Jan Engelhardt and committed by
David S. Miller
20a95a21 bbce5a59

+1 -1
+1 -1
include/net/netns/generic.h
··· 30 30 void *ptr[0]; 31 31 }; 32 32 33 - static inline void *net_generic(struct net *net, int id) 33 + static inline void *net_generic(const struct net *net, int id) 34 34 { 35 35 struct net_generic *ng; 36 36 void *ptr;