]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Avoid warning when re-casting __bpf_call_base into __bpf_call_base_args
authorAndrii Nakryiko <andrii@kernel.org>
Tue, 12 Jan 2021 07:55:15 +0000 (23:55 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 12 Jan 2021 23:00:01 +0000 (15:00 -0800)
commit644b42948405cad36292d4c55f435deeb6ab1d3d
tree5375cf60cc7a35acb13be538d1d3abef3d74e05a
parenta07c607f61de4bf2769ce76643a5f3e4e576135e
bpf: Avoid warning when re-casting __bpf_call_base into __bpf_call_base_args

BPF interpreter uses extra input argument, so re-casts __bpf_call_base into
__bpf_call_base_args. Avoid compiler warning about incompatible function
prototypes by casting to void * first.

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-3-andrii@kernel.org
include/linux/filter.h