diff options
author | 2021-02-26 12:49:23 -0800 | |
---|---|---|
committer | 2021-02-26 13:23:52 -0800 | |
commit | 1435137573f9c75455903e8cd01f84d6e092ea16 (patch) | |
tree | 9f502032f0236631b38bc67cde67de1a4c929715 /kernel/bpf/devmap.c | |
parent | bpf: Factor out verbose_invalid_scalar() (diff) | |
download | linux-dev-1435137573f9c75455903e8cd01f84d6e092ea16.tar.xz linux-dev-1435137573f9c75455903e8cd01f84d6e092ea16.zip |
bpf: Refactor check_func_call() to allow callback function
Later proposed bpf_for_each_map_elem() helper has callback
function as one of its arguments. This patch refactored
check_func_call() to permit callback function which sets
callee state. Different callback functions may have
different callee states.
There is no functionality change for this patch.
Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210226204923.3884627-1-yhs@fb.com
Diffstat (limited to 'kernel/bpf/devmap.c')
0 files changed, 0 insertions, 0 deletions