2020-12-10 15:14:23

by Chanho Park

[permalink] [raw]
Subject: [PATCH 0/2] fix perf tool build error on MUSL libc

__always_inline can cause build error on musl libc because it's not
defined. We need to include <linux/stddef.h> before asm/byteorder.h.
tools/include/uapi/linux/perf_event.h is copied version from
include/uapi/linux/perf_event.h. To fix this, we need to apply this
change both header files.

Cc: Mathieu Poirier <[email protected]>
Cc: Suzuki K Poulose <[email protected]>
Cc: Mike Leach <[email protected]>
Cc: Leo Yan <[email protected]>
Cc: John Garry <[email protected]>
Cc: Will Deacon <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Khem Raj <[email protected]>

Chanho Park (2):
perf: fix build error on MUSL libc
perf: tool: fix build error on MUSL libc

include/uapi/linux/perf_event.h | 3 +++
tools/include/uapi/linux/perf_event.h | 3 +++
2 files changed, 6 insertions(+)

--
2.23.0


2020-12-12 02:29:31

by Namhyung Kim

[permalink] [raw]
Subject: Re: [PATCH 0/2] fix perf tool build error on MUSL libc

Adding people in the original patch + kbuild folks.

On Thu, Dec 10, 2020 at 11:48 PM Chanho Park <[email protected]> wrote:
>
> __always_inline can cause build error on musl libc because it's not
> defined. We need to include <linux/stddef.h> before asm/byteorder.h.
> tools/include/uapi/linux/perf_event.h is copied version from
> include/uapi/linux/perf_event.h. To fix this, we need to apply this
> change both header files.
>
> Cc: Mathieu Poirier <[email protected]>
> Cc: Suzuki K Poulose <[email protected]>
> Cc: Mike Leach <[email protected]>
> Cc: Leo Yan <[email protected]>
> Cc: John Garry <[email protected]>
> Cc: Will Deacon <[email protected]>
> Cc: Peter Zijlstra <[email protected]>
> Cc: Ingo Molnar <[email protected]>
> Cc: Arnaldo Carvalho de Melo <[email protected]>
> Cc: Mark Rutland <[email protected]>
> Cc: Jiri Olsa <[email protected]>
> Cc: Namhyung Kim <[email protected]>
> Cc: Khem Raj <[email protected]>
>
> Chanho Park (2):
> perf: fix build error on MUSL libc
> perf: tool: fix build error on MUSL libc
>
> include/uapi/linux/perf_event.h | 3 +++
> tools/include/uapi/linux/perf_event.h | 3 +++
> 2 files changed, 6 insertions(+)
>
> --
> 2.23.0
>