2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-22 20:23:57 +08:00

xfrm: Pass const arg to xfrm_alg_len and xfrm_alg_auth_len.

Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
David S. Miller 2011-02-27 23:07:02 -08:00
parent 6f2f19ed95
commit 851586218f

View File

@ -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);
}