OSDN Git Service

bpf: Make some symbols static
authorPu Lehui <pulehui@huawei.com>
Wed, 19 May 2021 06:41:16 +0000 (14:41 +0800)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 19 May 2021 17:47:43 +0000 (10:47 -0700)
commit3a2daa7248647c0e5e165140553f9af5006e93a2
tree596b4c32090b3684b8b5e77c314da21909ffeea0
parent5d67f349590ddc94b6d4e25f19085728db9de697
bpf: Make some symbols static

The sparse tool complains as follows:

kernel/bpf/syscall.c:4567:29: warning:
 symbol 'bpf_sys_bpf_proto' was not declared. Should it be static?
kernel/bpf/syscall.c:4592:29: warning:
 symbol 'bpf_sys_close_proto' was not declared. Should it be static?

This symbol is not used outside of syscall.c, so marks it static.

Signed-off-by: Pu Lehui <pulehui@huawei.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Song Liu <songliubraving@fb.com>
Link: https://lore.kernel.org/bpf/20210519064116.240536-1-pulehui@huawei.com
kernel/bpf/syscall.c