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)
commita643bff752dcf72a07e1b2ab2f8587e4f51118be
tree3079c50b235445ff24fcd66c3c2eb6e501512708
parent3218231dbb16cd85d94831759b6c78e6feb54b58
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: 1ea47e01ad6e ("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