Skip to contentSkip to conversation

xfrm: Const'ify policy arg to xp_net.

PATCH New David Miller 1 participant 1 message Feb 24, 2011

Subsystems (3)
lore
Share & tools
lore

David Miller

author maintainer
#0 lore raw

PATCH 14/26 xfrm: Const'ify policy arg to xp_net.

---
 include/net/xfrm.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/net/xfrm.h +1 -1
index 1806c91..5402a1e 100644
@@ -506,7 +506,7 @@ struct xfrm_policy {
 	struct xfrm_tmpl       	xfrm_vec[XFRM_MAX_DEPTH];
 };
 
-static inline struct net *xp_net(struct xfrm_policy *xp)
+static inline struct net *xp_net(const struct xfrm_policy *xp)
 {
 	return read_pnet(&xp->xp_net);
 }
Signature · 1 line
1.7.4.1