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)
commitd687f621c518d791b5fffde8add3112d869b0b1b
tree0ca40263e253dc7a5342c417be82e5e53e3ecc4a
parent3e6fe5ce4d4860c3a111c246fddc6f31492f4fb0
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