libbpf: Put Kconfig externs into .kconfig section
authorAndrii Nakryiko <andriin@fb.com>
Thu, 19 Dec 2019 00:28:34 +0000 (16:28 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 19 Dec 2019 01:33:36 +0000 (17:33 -0800)
commit81bfdd087bf31a87c5ff25cc7004d5308954a35c
tree364a9d81d8f7bd736c22c12e5e7795be1fd50dd6
parentd69587062c347314a019cf6ee27f2e4b494868e1
libbpf: Put Kconfig externs into .kconfig section

Move Kconfig-provided externs into custom .kconfig section. Add __kconfig into
bpf_helpers.h for user convenience. Update selftests accordingly.

Suggested-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20191219002837.3074619-2-andriin@fb.com
tools/bpf/bpftool/gen.c
tools/lib/bpf/bpf_helpers.h
tools/lib/bpf/libbpf.c
tools/testing/selftests/bpf/prog_tests/skeleton.c
tools/testing/selftests/bpf/progs/test_core_extern.c
tools/testing/selftests/bpf/progs/test_skeleton.c