diff options
author | Pierre Gondois <Pierre.Gondois@arm.com> | 2021-02-24 18:24:10 +0000 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2021-03-06 16:54:24 -0300 |
commit | ded2e511a8af9f14482b11225f73db63231fc7a4 (patch) | |
tree | f4dfa6e1c814957d4076805abd8d9b347b232b47 /tools/build/Makefile | |
parent | 21b7e35bdf0a0e44525ec4e8a7862eb4a8df8ebe (diff) | |
download | linux-ded2e511a8af9f14482b11225f73db63231fc7a4.tar.gz linux-ded2e511a8af9f14482b11225f73db63231fc7a4.tar.bz2 linux-ded2e511a8af9f14482b11225f73db63231fc7a4.zip |
perf tools: Cast (struct timeval).tv_sec when printing
The musl-libc [1] defines (struct timeval).tv_sec as a 'long long' for
arm and other architectures. The default build having a '-Wformat' flag,
not casting the field when printing prevents from building perf.
This patch casts the (struct timeval).tv_sec fields to the expected
format.
[1] git://git.musl-libc.org/musl
Signed-off-by: Pierre Gondois <Pierre.Gondois@arm.com>
Acked-by: Jiri Olsa <jolsa@redhat.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Douglas.raillard@arm.com
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lore.kernel.org/lkml/20210224182410.5366-1-Pierre.Gondois@arm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/build/Makefile')
0 files changed, 0 insertions, 0 deletions