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

xfrm: Pass const arg to xfrm_alg_len and xfrm_alg_auth_len.

Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 6f2f19ed
...@@ -1558,12 +1558,12 @@ static inline int xfrm_aevent_is_on(struct net *net) ...@@ -1558,12 +1558,12 @@ static inline int xfrm_aevent_is_on(struct net *net)
} }
#endif #endif
static inline int xfrm_alg_len(struct xfrm_algo *alg) static inline int xfrm_alg_len(const struct xfrm_algo *alg)
{ {
return sizeof(*alg) + ((alg->alg_key_len + 7) / 8); return sizeof(*alg) + ((alg->alg_key_len + 7) / 8);
} }
static inline int xfrm_alg_auth_len(struct xfrm_algo_auth *alg) static inline int xfrm_alg_auth_len(const struct xfrm_algo_auth *alg)
{ {
return sizeof(*alg) + ((alg->alg_key_len + 7) / 8); return sizeof(*alg) + ((alg->alg_key_len + 7) / 8);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册