]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: move bpf_prog to bpf.h
authorDelyan Kratunov <delyank@fb.com>
Tue, 14 Jun 2022 23:10:42 +0000 (23:10 +0000)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 17 Jun 2022 02:27:29 +0000 (19:27 -0700)
commit0776f98ee43c97baa869e1ba48ae9bcdf5df8852
tree0ca40263e253dc7a5342c417be82e5e53e3ecc4a
parent3c55259319cd2002120d6abfff0c08ac56686bcf
bpf: move bpf_prog to bpf.h

In order to add a version of bpf_prog_run_array which accesses the
bpf_prog->aux member, bpf_prog needs to be more than a forward
declaration inside bpf.h.

Given that filter.h already includes bpf.h, this merely reorders
the type declarations for filter.h users. bpf.h users now have access to
bpf_prog internals.

Signed-off-by: Delyan Kratunov <delyank@fb.com>
Link: https://lore.kernel.org/r/3ed7824e3948f22d84583649ccac0ff0d38b6b58.1655248076.git.delyank@fb.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
include/linux/bpf.h
include/linux/filter.h