diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2016-08-09 12:27:08 -0400 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2016-08-10 05:18:49 -0400 |
commit | e45a8a9e60ff1dd5ad118c794337a1101b46ab0d (patch) | |
tree | 318b7e57fac05bf21425d4c23cb6041c4ce55cc4 /net/xfrm | |
parent | 0184165b2f42c4b032da9dd11546bfbaeb5afd4e (diff) |
xfrm: constify xfrm_replay structures
The xfrm_replay structures are never modified, so declare them as const.
Done with the help of Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/xfrm')
-rw-r--r-- | net/xfrm/xfrm_replay.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/xfrm/xfrm_replay.c b/net/xfrm/xfrm_replay.c index 4fd725a0c500..cdc2e2e71bff 100644 --- a/net/xfrm/xfrm_replay.c +++ b/net/xfrm/xfrm_replay.c | |||
@@ -558,7 +558,7 @@ static void xfrm_replay_advance_esn(struct xfrm_state *x, __be32 net_seq) | |||
558 | x->repl->notify(x, XFRM_REPLAY_UPDATE); | 558 | x->repl->notify(x, XFRM_REPLAY_UPDATE); |
559 | } | 559 | } |
560 | 560 | ||
561 | static struct xfrm_replay xfrm_replay_legacy = { | 561 | static const struct xfrm_replay xfrm_replay_legacy = { |
562 | .advance = xfrm_replay_advance, | 562 | .advance = xfrm_replay_advance, |
563 | .check = xfrm_replay_check, | 563 | .check = xfrm_replay_check, |
564 | .recheck = xfrm_replay_check, | 564 | .recheck = xfrm_replay_check, |
@@ -566,7 +566,7 @@ static struct xfrm_replay xfrm_replay_legacy = { | |||
566 | .overflow = xfrm_replay_overflow, | 566 | .overflow = xfrm_replay_overflow, |
567 | }; | 567 | }; |
568 | 568 | ||
569 | static struct xfrm_replay xfrm_replay_bmp = { | 569 | static const struct xfrm_replay xfrm_replay_bmp = { |
570 | .advance = xfrm_replay_advance_bmp, | 570 | .advance = xfrm_replay_advance_bmp, |
571 | .check = xfrm_replay_check_bmp, | 571 | .check = xfrm_replay_check_bmp, |
572 | .recheck = xfrm_replay_check_bmp, | 572 | .recheck = xfrm_replay_check_bmp, |
@@ -574,7 +574,7 @@ static struct xfrm_replay xfrm_replay_bmp = { | |||
574 | .overflow = xfrm_replay_overflow_bmp, | 574 | .overflow = xfrm_replay_overflow_bmp, |
575 | }; | 575 | }; |
576 | 576 | ||
577 | static struct xfrm_replay xfrm_replay_esn = { | 577 | static const struct xfrm_replay xfrm_replay_esn = { |
578 | .advance = xfrm_replay_advance_esn, | 578 | .advance = xfrm_replay_advance_esn, |
579 | .check = xfrm_replay_check_esn, | 579 | .check = xfrm_replay_check_esn, |
580 | .recheck = xfrm_replay_recheck_esn, | 580 | .recheck = xfrm_replay_recheck_esn, |