Skip to content
Commit 56c79197 authored by Riccardo Magliocchetti's avatar Riccardo Magliocchetti Committed by Bruce Ashfield
Browse files

perf: fix bench numa compilation

Taken from: https://lkml.org/lkml/2013/6/20/80



Fix the following errors on gcc 4.8.1 / x86:

bench/numa.c: In function worker_thread:
bench/numa.c:1113:20: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
    if (diff.tv_sec >= g->p.nr_secs) {
                    ^
bench/numa.c:1161:6: error: format %lx expects argument of type long unsigned int, but argument 5 has type u64 [-Werror=format=]
      process_nr, thread_nr, runtime_ns_max / bytes_done, val);
      ^
Signed-off-by: default avatarRiccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
Signed-off-by: default avatarYang Shi <yang.shi@windriver.com>
parent 3f8f0e9e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment