aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-02-28 02:07:02 -0500
committerDavid S. Miller <davem@davemloft.net>2011-02-28 02:07:02 -0500
commit851586218f5d463bbd62af40dfa264c5e3539572 (patch)
tree1d98d2364a24f33def247743e67cafb89bd9fed6
parent6f2f19ed955e62a6789495da512d510f26ad4885 (diff)
xfrm: Pass const arg to xfrm_alg_len and xfrm_alg_auth_len.
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--include/net/xfrm.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h
index 86ecfc1004b4..15e310fae282 100644
--- a/include/net/xfrm.h
+++ b/include/net/xfrm.h
@@ -1558,12 +1558,12 @@ static inline int xfrm_aevent_is_on(struct net *net)
1558} 1558}
1559#endif 1559#endif
1560 1560
1561static inline int xfrm_alg_len(struct xfrm_algo *alg) 1561static inline int xfrm_alg_len(const struct xfrm_algo *alg)
1562{ 1562{
1563 return sizeof(*alg) + ((alg->alg_key_len + 7) / 8); 1563 return sizeof(*alg) + ((alg->alg_key_len + 7) / 8);
1564} 1564}
1565 1565
1566static inline int xfrm_alg_auth_len(struct xfrm_algo_auth *alg) 1566static inline int xfrm_alg_auth_len(const struct xfrm_algo_auth *alg)
1567{ 1567{
1568 return sizeof(*alg) + ((alg->alg_key_len + 7) / 8); 1568 return sizeof(*alg) + ((alg->alg_key_len + 7) / 8);
1569} 1569}