OSDN Git Service

bpf: Make bpf_link API available indepently of CONFIG_BPF_SYSCALL
authorAndrii Nakryiko <andriin@fb.com>
Wed, 22 Jul 2020 06:45:54 +0000 (23:45 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Sun, 26 Jul 2020 03:37:01 +0000 (20:37 -0700)
commit6cc7d1e8e9e06d45f9d1a39a5f465288d7cd8f9a
tree4f6f10a7091fca310f10c48834b4bce110183cf7
parent2b9b305fcdda1810bdffeb599361174eb2cd0b7c
bpf: Make bpf_link API available indepently of CONFIG_BPF_SYSCALL

Similarly to bpf_prog, make bpf_link and related generic API available
unconditionally to make it easier to have bpf_link support in various parts of
the kernel. Stub out init/prime/settle/cleanup and inc/put APIs.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200722064603.3350758-2-andriin@fb.com
include/linux/bpf.h