On Mon, 31 Aug 2020 at 21:20, Naresh Kamboju <naresh.kamboju(a)linaro.org> wrote:
>
> Building stable-rc 5.4 with gcc 7.3.0 perf build failed for x86_64
> and arm64 architectures.
>
> In file included from btf_dump.c:16:0:
> btf_dump.c: In function 'btf_align_of':
> perf/1.0-r9/perf-1.0/tools/include/linux/kernel.h:53:17: error:
> comparison of distinct pointer types lacks a cast [-Werror]
> (void) (&_min1 == &_min2); \
> ^
> btf_dump.c:770:10: note: in expansion of macro 'min'
> return min(sizeof(void *), t->size);
> ^~~
> cc1: all warnings being treated as errors
>
> https://ci.linaro.org/view/lkft/job/openembedded-lkft-linux-stable-rc-5.4/D…
>
> - Naresh