diff options
author | Andrii Nakryiko <andriin@fb.com> | 2020-06-20 02:17:01 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2020-06-23 03:01:48 +0300 |
commit | bd9bedf84b87289b9a87eebfe7917e54373e99f9 (patch) | |
tree | d2aa523039a2832c1495390a8137671c02562730 /tools/bpf/bpftool/main.c | |
parent | 05aca6da3b5ab3c5c6003dbbefc9580d9a6a308b (diff) | |
download | linux-bd9bedf84b87289b9a87eebfe7917e54373e99f9.tar.xz |
libbpf: Wrap source argument of BPF_CORE_READ macro in parentheses
Wrap source argument of BPF_CORE_READ family of macros into parentheses to
allow uses like this:
BPF_CORE_READ((struct cast_struct *)src, a, b, c);
Fixes: 7db3822ab991 ("libbpf: Add BPF_CORE_READ/BPF_CORE_READ_INTO helpers")
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200619231703.738941-8-andriin@fb.com
Diffstat (limited to 'tools/bpf/bpftool/main.c')
0 files changed, 0 insertions, 0 deletions