Commit 85158621 authored by David S. Miller's avatar David S. Miller

xfrm: Pass const arg to xfrm_alg_len and xfrm_alg_auth_len.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6f2f19ed
......@@ -1558,12 +1558,12 @@ static inline int xfrm_aevent_is_on(struct net *net)
}
#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);
}
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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment