kernel/bpf/helpers.c:1030:29: warning: symbol 'bpf_timer_init_proto' was not
declared. Should it be static?
kernel/bpf/helpers.c:1056:29: warning: symbol 'bpf_timer_mod_proto' was not
declared. Should it be static?
kernel/bpf/helpers.c:1081:29: warning: symbol 'bpf_timer_del_proto' was not
declared. Should it be static?
Reported-by: kernel test robot <lkp(a)intel.com>
Signed-off-by: kernel test robot <lkp(a)intel.com>
---
helpers.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/kernel/bpf/helpers.c b/kernel/bpf/helpers.c
index 8ef0ad23c991ed..053df5380d791d 100644
--- a/kernel/bpf/helpers.c
+++ b/kernel/bpf/helpers.c
@@ -1027,7 +1027,7 @@ BPF_CALL_5(bpf_timer_init, struct bpf_timer *, timer, void *, cb,
int, flags,
return 0;
}
-const struct bpf_func_proto bpf_timer_init_proto = {
+static const struct bpf_func_proto bpf_timer_init_proto = {
.func = bpf_timer_init,
.gpl_only = false,
.ret_type = RET_INTEGER,
@@ -1053,7 +1053,7 @@ BPF_CALL_2(bpf_timer_mod, struct bpf_timer *, timer, u64, msecs)
return 0;
}
-const struct bpf_func_proto bpf_timer_mod_proto = {
+static const struct bpf_func_proto bpf_timer_mod_proto = {
.func = bpf_timer_mod,
.gpl_only = false,
.ret_type = RET_INTEGER,
@@ -1078,7 +1078,7 @@ BPF_CALL_1(bpf_timer_del, struct bpf_timer *, timer)
return 0;
}
-const struct bpf_func_proto bpf_timer_del_proto = {
+static const struct bpf_func_proto bpf_timer_del_proto = {
.func = bpf_timer_del,
.gpl_only = false,
.ret_type = RET_INTEGER,
Show replies by thread