diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2016-04-09 07:17:29 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-04-13 03:55:42 -0400 |
commit | dac429874d8156d97460c61049e202b2dcc15df8 (patch) | |
tree | edb5e1e9ecf1493981892c8b9c2507f7743c06bd | |
parent | bed9441ba787da1026f95ce6160b38994c510fe3 (diff) |
uprobes/x86: Constify uprobe_xol_ops structures
The uprobe_xol_ops structures are never modified, so declare them as const.
Done with the help of Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: kernel-janitors@vger.kernel.org
Link: http://lkml.kernel.org/r/1460200649-32526-1-git-send-email-Julia.Lawall@lip6.fr
Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r-- | arch/x86/kernel/uprobes.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/uprobes.c b/arch/x86/kernel/uprobes.c index bf4db6eaec8f..bd074151bfd6 100644 --- a/arch/x86/kernel/uprobes.c +++ b/arch/x86/kernel/uprobes.c | |||
@@ -578,7 +578,7 @@ static void default_abort_op(struct arch_uprobe *auprobe, struct pt_regs *regs) | |||
578 | riprel_post_xol(auprobe, regs); | 578 | riprel_post_xol(auprobe, regs); |
579 | } | 579 | } |
580 | 580 | ||
581 | static struct uprobe_xol_ops default_xol_ops = { | 581 | static const struct uprobe_xol_ops default_xol_ops = { |
582 | .pre_xol = default_pre_xol_op, | 582 | .pre_xol = default_pre_xol_op, |
583 | .post_xol = default_post_xol_op, | 583 | .post_xol = default_post_xol_op, |
584 | .abort = default_abort_op, | 584 | .abort = default_abort_op, |
@@ -695,7 +695,7 @@ static void branch_clear_offset(struct arch_uprobe *auprobe, struct insn *insn) | |||
695 | 0, insn->immediate.nbytes); | 695 | 0, insn->immediate.nbytes); |
696 | } | 696 | } |
697 | 697 | ||
698 | static struct uprobe_xol_ops branch_xol_ops = { | 698 | static const struct uprobe_xol_ops branch_xol_ops = { |
699 | .emulate = branch_emulate_op, | 699 | .emulate = branch_emulate_op, |
700 | .post_xol = branch_post_xol_op, | 700 | .post_xol = branch_post_xol_op, |
701 | }; | 701 | }; |