projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f299d55
)
xfrm: Const'ify policy arg to xp_net.
author
David S. Miller
<davem@davemloft.net>
Thu, 24 Feb 2011 06:25:19 +0000
(
01:25
-0500)
committer
David 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
patch
|
blob
|
history
diff --git
a/include/net/xfrm.h
b/include/net/xfrm.h
index
1806c91
..
5402a1e
100644
(file)
--- a/
include/net/xfrm.h
+++ b/
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);
}