summaryrefslogtreecommitdiffstats
path: root/include/net/xfrm.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-02-27 23:07:02 -0800
committerDavid S. Miller <davem@davemloft.net>2011-02-27 23:07:02 -0800
commit851586218f5d463bbd62af40dfa264c5e3539572 (patch)
tree1d98d2364a24f33def247743e67cafb89bd9fed6 /include/net/xfrm.h
parent6f2f19ed955e62a6789495da512d510f26ad4885 (diff)
downloadop-kernel-dev-851586218f5d463bbd62af40dfa264c5e3539572.zip
op-kernel-dev-851586218f5d463bbd62af40dfa264c5e3539572.tar.gz
xfrm: Pass const arg to xfrm_alg_len and xfrm_alg_auth_len.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/xfrm.h')
-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 86ecfc1..15e310f 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)
}
#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);
}
OpenPOWER on IntegriCloud