diff options
-rw-r--r-- | tools/perf/bench/numa.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/bench/numa.c b/tools/perf/bench/numa.c index f7f530081aa9..8c11141cf799 100644 --- a/tools/perf/bench/numa.c +++ b/tools/perf/bench/numa.c @@ -25,6 +25,7 @@ #include <string.h> #include <unistd.h> #include <sys/mman.h> +#include <inttypes.h> #include <sys/time.h> #include <sys/resource.h> #include <sys/wait.h> @@ -1136,7 +1137,7 @@ static void *worker_thread(void *__tdata) /* Check whether our max runtime timed out: */ if (g->p.nr_secs) { timersub(&stop, &start0, &diff); - if ((u32)diff.tv_sec >= g->p.nr_secs) { + if ((u32)diff.tv_sec >= (long int)g->p.nr_secs) { g->stop_work = true; break; } |