libbpf-tools: readahead: don't mark struct hist as static
authorJerome Marchand <jmarchan@redhat.com>
Fri, 30 Jul 2021 16:15:05 +0000 (18:15 +0200)
committeryonghong-song <ys114321@gmail.com>
Tue, 3 Aug 2021 00:10:02 +0000 (17:10 -0700)
commitada66f92ff9b384041545e92686263f47bb32048
tree0086f5f4ca75ece36dc0c24e6e1cc9081ceca758
parente4e660d52d1a32874a8f560441d3915d6beeb5cc
libbpf-tools: readahead: don't mark struct hist as static

Libbpf readahead tool does not compile with bpftool v5.14. Since
commit 31332ccb756 ("bpftool: Stop emitting static variables in BPF
skeleton"), bpftool gen skeleton does not include static variables
into the skeleton file anymore.

Fixes the following compilation error:
readahead.c: In function 'main':
readahead.c:153:26: error: 'struct readahead_bpf__bss' has no member named 'hist'
  153 |         histp = &obj->bss->hist;
      |                          ^~
libbpf-tools/readahead.bpf.c