projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c68c0fa
)
bpf: Constify bpf_verifier_ops structure
author
Julia Lawall
<Julia.Lawall@lip6.fr>
Fri, 11 Dec 2015 17:35:59 +0000
(18:35 +0100)
committer
Steven Rostedt
<rostedt@goodmis.org>
Wed, 23 Dec 2015 19:27:19 +0000
(14:27 -0500)
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>
kernel/trace/bpf_trace.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/trace/bpf_trace.c
b/kernel/trace/bpf_trace.c
index 4228fd3682c3d45894f0f3bbc13a715331a24e7c..45dd798bcd37e7bd529e61932e51a30366590626 100644
(file)
--- 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,
};