[RFC PATCH] bpf: user_verifier_ops can be static
From: kernel test robot
Date: Thu Aug 06 2020 - 14:41:43 EST
Signed-off-by: kernel test robot <lkp@xxxxxxxxx>
---
bpf_trace.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/trace/bpf_trace.c b/kernel/trace/bpf_trace.c
index cbe789bc1b986..4b8f380694a10 100644
--- a/kernel/trace/bpf_trace.c
+++ b/kernel/trace/bpf_trace.c
@@ -1852,12 +1852,12 @@ user_prog_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog)
}
}
-const struct bpf_verifier_ops user_verifier_ops = {
+static const struct bpf_verifier_ops user_verifier_ops = {
.get_func_proto = user_prog_func_proto,
.is_valid_access = user_prog_is_valid_access,
};
-const struct bpf_prog_ops user_prog_ops = {
+static const struct bpf_prog_ops user_prog_ops = {
.test_run = bpf_prog_test_run_user,
};