]> Pileus Git - ~andy/linux/commitdiff
xfrm: Const'ify policy arg to xp_net.
authorDavid S. Miller <davem@davemloft.net>
Thu, 24 Feb 2011 06:25:19 +0000 (01:25 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Feb 2011 07:07:44 +0000 (23:07 -0800)
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/xfrm.h

index 1806c918a15a1fd0205c4283323a62537ba36c3f..5402a1e2c0de3f5362e5c7db98de2c6a0334dcbd 100644 (file)
@@ -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);
 }