summaryrefslogtreecommitdiffstats
path: root/net/key/af_key.c
diff options
context:
space:
mode:
authorMathias Krause <minipli@googlemail.com>2013-06-26 23:56:58 +0200
committerSteffen Klassert <steffen.klassert@secunet.com>2013-08-05 11:13:53 +0200
commite473fcb472574de978e47f980aeca510020a1286 (patch)
tree3ff2448d30ed7aee77d04258d032712a09b37f8e /net/key/af_key.c
parent5ca5461c3ee8b306c04ac833e5eacb5755b85d88 (diff)
downloadblackbird-op-linux-e473fcb472574de978e47f980aeca510020a1286.tar.gz
blackbird-op-linux-e473fcb472574de978e47f980aeca510020a1286.zip
xfrm: constify mark argument of xfrm_find_acq()
The mark argument is read only, so constify it. Also make dummy_mark in af_key const -- only used as dummy argument for this very function. Signed-off-by: Mathias Krause <minipli@googlemail.com> Cc: "David S. Miller" <davem@davemloft.net> Cc: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/key/af_key.c')
-rw-r--r--net/key/af_key.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/key/af_key.c b/net/key/af_key.c
index ab8bd2cabfa0..4089a210e852 100644
--- a/net/key/af_key.c
+++ b/net/key/af_key.c
@@ -45,7 +45,7 @@ struct netns_pfkey {
static DEFINE_MUTEX(pfkey_mutex);
#define DUMMY_MARK 0
-static struct xfrm_mark dummy_mark = {0, 0};
+static const struct xfrm_mark dummy_mark = {0, 0};
struct pfkey_sock {
/* struct sock must be the first member of struct pfkey_sock */
struct sock sk;
OpenPOWER on IntegriCloud