]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Add bpf_patch_call_args prototype to include/linux/bpf.h
authorAndrii Nakryiko <andrii@kernel.org>
Tue, 12 Jan 2021 07:55:14 +0000 (23:55 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 12 Jan 2021 23:00:00 +0000 (15:00 -0800)
commita07c607f61de4bf2769ce76643a5f3e4e576135e
tree3079c50b235445ff24fcd66c3c2eb6e501512708
parent31b1529e69f5f0fddae6637ae45bf0bc570b47ec
bpf: Add bpf_patch_call_args prototype to include/linux/bpf.h

Add bpf_patch_call_args() prototype. This function is called from BPF verifier
and only if CONFIG_BPF_JIT_ALWAYS_ON is not defined. This fixes compiler
warning about missing prototype in some kernel configurations.

Fixes: c66d5170f273 ("bpf: add support for bpf_call to interpreter")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20210112075520.4103414-2-andrii@kernel.org
include/linux/bpf.h