aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <[email protected]>2019-11-27 09:58:22 -0300
committerArnaldo Carvalho de Melo <[email protected]>2019-11-28 08:08:38 -0300
commit2b1ac6403f8800babed0f16ab1d29ee3300be122 (patch)
tree500a61846b7cb404e096e14f911e31d87ed62de4 /scripts/gcc-plugins/cyc_complexity_plugin.c
parent98e93245113d0f5c279ef77f4a9e7d097323ad71 (diff)
perf diff: Use llabs() with 64-bit values
To fix this build error on a debian mipsel cross build environment: builtin-diff.c: In function 'compute_cycles_diff': builtin-diff.c:649:10: error: absolute value function 'labs' given an argument of type 's64' {aka 'long long int'} but has parameter of type 'long int' which may cause truncation of value [-Werror=absolute-value] 649 | val = labs(pair->block_info->cycles_spark[i] - | ^~~~ Fixes: cebf7d51a6c3 ("perf diff: Report noisy for cycles diff") Cc: Jin Yao <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Link: https://lkml.kernel.org/n/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions