提交 20a95a21 编写于 作者: J Jan Engelhardt 提交者: David S. Miller

netns: let net_generic take pointer-to-const args

This commit is same in nature as v2.6.37-rc1-755-g3654654f; the network
namespace itself is not modified when calling net_generic, so the
parameter can be const.
Signed-off-by: NJan Engelhardt <jengelh@medozas.de>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 bbce5a59
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册