提交 63eb23f5 编写于 作者: D David S. Miller

xfrm: Const'ify policy arg to xp_net.

Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 f299d557
无相关合并请求
......@@ -506,7 +506,7 @@ struct xfrm_policy {
struct xfrm_tmpl xfrm_vec[XFRM_MAX_DEPTH];
};
static inline struct net *xp_net(struct xfrm_policy *xp)
static inline struct net *xp_net(const struct xfrm_policy *xp)
{
return read_pnet(&xp->xp_net);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部