[RFC PATCH] bpf: bpf_perf_event_sample_control_proto can be static

kbuild test robot
2015-10-14T13:49:39Z

Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---
bpf_trace.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/trace/bpf_trace.c b/kernel/trace/bpf_trace.c
index f261333..ade24a1 100644
--- a/kernel/trace/bpf_trace.c
+++ b/kernel/trace/bpf_trace.c
@@ -236,7 +236,7 @@ static u64 bpf_perf_event_sample_control(u64 r1, u64 index, u64 flag, u64 r4, u6
return 0;
}

-const struct bpf_func_proto bpf_perf_event_sample_control_proto = {
+static const struct bpf_func_proto bpf_perf_event_sample_control_proto = {
.func = bpf_perf_event_sample_control,
.gpl_only = false,
.ret_type = RET_INTEGER,