OSDN Git Service

bpftool: Strip const/volatile/restrict modifiers from .bss and .data vars
authorAndrii Nakryiko <andrii@kernel.org>
Fri, 7 May 2021 05:41:13 +0000 (22:41 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 11 May 2021 22:07:17 +0000 (15:07 -0700)
commit37f05601eabc29f82c03b461a22d8fafacd736d2
tree039736ac90f801217d5bb3a0689d535186f6762a
parentf4cceb783169c9f0639ce7c648a6a5de83c00dc4
bpftool: Strip const/volatile/restrict modifiers from .bss and .data vars

Similarly to .rodata, strip any const/volatile/restrict modifiers when
generating BPF skeleton. They are not helpful and actually just get in the way.

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/20210507054119.270888-2-andrii@kernel.org
tools/bpf/bpftool/gen.c