Commit 9a7386ec authored by David S. Miller's avatar David S. Miller

xfrm: Const'ify sec_path arg to secpath_has_nontransport.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 22cccb7e
...@@ -1994,7 +1994,7 @@ int __xfrm_decode_session(struct sk_buff *skb, struct flowi *fl, ...@@ -1994,7 +1994,7 @@ int __xfrm_decode_session(struct sk_buff *skb, struct flowi *fl,
} }
EXPORT_SYMBOL(__xfrm_decode_session); EXPORT_SYMBOL(__xfrm_decode_session);
static inline int secpath_has_nontransport(struct sec_path *sp, int k, int *idxp) static inline int secpath_has_nontransport(const struct sec_path *sp, int k, int *idxp)
{ {
for (; k < sp->len; k++) { for (; k < sp->len; k++) {
if (sp->xvec[k]->props.mode != XFRM_MODE_TRANSPORT) { if (sp->xvec[k]->props.mode != XFRM_MODE_TRANSPORT) {
......
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