diff options
author | Andrii Nakryiko <andriin@fb.com> | 2020-03-01 02:11:09 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2020-03-03 03:25:14 +0300 |
commit | ca7dc2791b507f842d73e46b1a0453b36b69ffc2 (patch) | |
tree | b68bae67d0fbce7f668f33eed823ddb2efa777f5 /drivers/android/binderfs.c | |
parent | 15070919f801348e9a9a2ea96f427d8b621f3cd5 (diff) | |
download | linux-ca7dc2791b507f842d73e46b1a0453b36b69ffc2.tar.xz |
bpftool: Add header guards to generated vmlinux.h
Add canonical #ifndef/#define/#endif guard for generated vmlinux.h header with
__VMLINUX_H__ symbol. __VMLINUX_H__ is also going to play double role of
identifying whether vmlinux.h is being used, versus, say, BCC or non-CO-RE
libbpf modes with dependency on kernel headers. This will make it possible to
write helper macro/functions, agnostic to exact BPF program set up.
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200229231112.1240137-2-andriin@fb.com
Diffstat (limited to 'drivers/android/binderfs.c')
0 files changed, 0 insertions, 0 deletions