Messages in this thread Patch in this message | | | Date | Fri, 13 Nov 2020 12:22:05 +0800 | From | kernel test robot <> | Subject | [RFC PATCH] bpf: bpf_sock_from_file_proto can be static |
| |
Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: kernel test robot <lkp@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 4749575b81b2d1..c34c81095d61c1 100644 --- a/kernel/trace/bpf_trace.c +++ b/kernel/trace/bpf_trace.c @@ -1264,7 +1264,7 @@ BTF_ID_LIST(bpf_sock_from_file_btf_ids) BTF_ID(struct, socket) BTF_ID(struct, file) -const struct bpf_func_proto bpf_sock_from_file_proto = { +static const struct bpf_func_proto bpf_sock_from_file_proto = { .func = bpf_sock_from_file, .gpl_only = true, .ret_type = RET_PTR_TO_BTF_ID_OR_NULL,
| |