Commit 20a95a21 authored by Jan Engelhardt's avatar Jan Engelhardt Committed by David S. Miller
Browse files

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: default avatarJan Engelhardt <jengelh@medozas.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent bbce5a59
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;