diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2015-12-11 18:35:59 +0100 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2015-12-23 14:27:19 -0500 |
commit | 27dff4e04199cf0ecf06239a26d0d225d3c046e9 (patch) | |
tree | 35398cbc9f53eefe5c98f1f81cca3a482f10a31b /kernel | |
parent | c68c0fa29341754de86b6e5317b6074f1e334581 (diff) | |
download | linux-27dff4e04199cf0ecf06239a26d0d225d3c046e9.tar.bz2 |
bpf: Constify bpf_verifier_ops structure
This bpf_verifier_ops structure is never modified, like the other
bpf_verifier_ops structures, so declare it as const.
Done with the help of Coccinelle.
Link: http://lkml.kernel.org/r/1449855359-13724-1-git-send-email-Julia.Lawall@lip6.fr
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/trace/bpf_trace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/bpf_trace.c b/kernel/trace/bpf_trace.c index 4228fd3682c3..45dd798bcd37 100644 --- a/kernel/trace/bpf_trace.c +++ b/kernel/trace/bpf_trace.c @@ -316,7 +316,7 @@ static bool kprobe_prog_is_valid_access(int off, int size, enum bpf_access_type return true; } -static struct bpf_verifier_ops kprobe_prog_ops = { +static const struct bpf_verifier_ops kprobe_prog_ops = { .get_func_proto = kprobe_prog_func_proto, .is_valid_access = kprobe_prog_is_valid_access, }; |