aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-cmp.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <[email protected]>2019-07-19 11:34:07 -0300
committerDaniel Borkmann <[email protected]>2019-07-22 16:14:43 +0200
commit4be6e05c4d4c2ff87750d3242f69999245d119f8 (patch)
treea6ccb5b89caa2e4f8570319add9749a5ee63ae7b /lib/mpi/mpi-cmp.c
parentcdb2f9207109c9c858277fde8b7dc1445b9f952e (diff)
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 <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Daniel Borkmann <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Fixes: fb84b8224655 ("libbpf: add perf buffer API") Link: https://lkml.kernel.org/n/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]> Acked-by: Andrii Nakryiko <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions