diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-07-19 17:34:07 +0300 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2019-07-22 17:14:43 +0300 |
commit | 4be6e05c4d4c2ff87750d3242f69999245d119f8 (patch) | |
tree | a6ccb5b89caa2e4f8570319add9749a5ee63ae7b /.mailmap | |
parent | cdb2f9207109c9c858277fde8b7dc1445b9f952e (diff) | |
download | linux-4be6e05c4d4c2ff87750d3242f69999245d119f8.tar.xz |
libbpf: Avoid designated initializers for unnamed union members
As it fails to build in some systems with:
libbpf.c: In function 'perf_buffer__new':
libbpf.c:4515: error: unknown field 'sample_period' specified in initializer
libbpf.c:4516: error: unknown field 'wakeup_events' specified in initializer
Doing as:
attr.sample_period = 1;
I.e. not as a designated initializer makes it build everywhere.
Cc: Andrii Nakryiko <andriin@fb.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Fixes: fb84b8224655 ("libbpf: add perf buffer API")
Link: https://lkml.kernel.org/n/tip-hnlmch8qit1ieksfppmr32si@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to '.mailmap')
0 files changed, 0 insertions, 0 deletions