From: David S. Miller Date: Thu, 24 Feb 2011 06:44:12 +0000 (-0500) Subject: xfrm: Const'ify sec_path arg to secpath_has_nontransport. X-Git-Tag: firefly_0821_release~7613^2~2196^2~253 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9a7386ec999ae226890faea2661b4c7d494bcbb8;p=firefly-linux-kernel-4.4.55.git xfrm: Const'ify sec_path arg to secpath_has_nontransport. Signed-off-by: David S. Miller --- diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c index 2de0bc233d44..41a91d27d3ea 100644 --- a/net/xfrm/xfrm_policy.c +++ b/net/xfrm/xfrm_policy.c @@ -1994,7 +1994,7 @@ int __xfrm_decode_session(struct sk_buff *skb, struct flowi *fl, } 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++) { if (sp->xvec[k]->props.mode != XFRM_MODE_TRANSPORT) {