projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f2f19e
)
xfrm: Pass const arg to xfrm_alg_len and xfrm_alg_auth_len.
author
David S. Miller
<davem@davemloft.net>
Mon, 28 Feb 2011 07:07:02 +0000
(23:07 -0800)
committer
David S. Miller
<davem@davemloft.net>
Mon, 28 Feb 2011 07:07:02 +0000
(23:07 -0800)
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/xfrm.h
patch
|
blob
|
blame
|
history
diff --git
a/include/net/xfrm.h
b/include/net/xfrm.h
index 86ecfc1004b472c3d86a6bdfe89d5901b3bbeab8..15e310fae2820c53785b111bdb43ebd92c2420fe 100644
(file)
--- 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);
}