diff options
author | Andrii Nakryiko <andrii@kernel.org> | 2021-04-23 11:13:33 -0700 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2021-04-23 14:05:26 -0700 |
commit | 0fec7a3cee1cf8e4f86ff563d229408ccbdc2d66 (patch) | |
tree | 819ff515663653459f53849db97538345e828e29 /tools/lib/bpf/netlink.c | |
parent | 5b438f01d7eb2dc9bec7cd79de881b5f155d9a71 (diff) |
libbpf: Suppress compiler warning when using SEC() macro with externs
When used on externs SEC() macro will trigger compilation warning about
inapplicable `__attribute__((used))`. That's expected for extern declarations,
so suppress it with the corresponding _Pragma.
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20210423181348.1801389-4-andrii@kernel.org
Diffstat (limited to 'tools/lib/bpf/netlink.c')
0 files changed, 0 insertions, 0 deletions