Explorar el Código

xfrm: Const'ify policy arg to xp_net.

Signed-off-by: David S. Miller <davem@davemloft.net>
David S. Miller hace 14 años
padre
commit
63eb23f5d8
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      include/net/xfrm.h

+ 1 - 1
include/net/xfrm.h

@@ -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);
 }