]> git.baikalelectronics.ru Git - kernel.git/commit
perf tools: Fix the build on the alpine:edge distro
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 30 Jul 2018 16:15:03 +0000 (13:15 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 30 Jul 2018 16:15:03 +0000 (13:15 -0300)
commitcecfef505a21220a2ff7371d42fc949f6a70a861
treee01a0174bd7feb1a7c96e57c0890d5005ac1621e
parent7e9a3dfd3d330ceb496f3a746ab7b46c09c5a68d
perf tools: Fix the build on the alpine:edge distro

The UAPI file byteorder/little_endian.h uses the __always_inline define
without including the header where it is defined, linux/stddef.h, this
ends up working in all the other distros because that file gets included
seemingly by luck from one of the files included from little_endian.h.

But not on Alpine:edge, that fails for all files where perf_event.h is
included but linux/stddef.h isn't include before that.

Adding the missing linux/stddef.h file where it breaks on Alpine:edge to
fix that, in all other distros, that is just a very small header anyway.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: https://lkml.kernel.org/n/tip-9r1pifftxvuxms8l7ir73p5l@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/arch/x86/util/pmu.c
tools/perf/arch/x86/util/tsc.c
tools/perf/perf.h
tools/perf/util/header.h
tools/perf/util/namespaces.h