Re: [PATCH v3] selftests/resctrl: fix clang build warnings related to abs(), labs() calls

2024-05-08 Thread John Hubbard
On 5/8/24 1:24 PM, Reinette Chatre wrote: Hi John, On 5/8/2024 12:41 PM, John Hubbard wrote: ... diff --git a/tools/testing/selftests/resctrl/mba_test.c b/tools/testing/selftests/resctrl/mba_test.c index 7946e32e85c8..5fffbc9ff6a4 100644 --- a/tools/testing/selftests/resctrl/mba_test.c +++ b/

Re: [PATCH v3] selftests/resctrl: fix clang build warnings related to abs(), labs() calls

2024-05-08 Thread Reinette Chatre
Hi John, On 5/8/2024 12:41 PM, John Hubbard wrote: > When building with clang, via: > > make LLVM=1 -C tools/testing/selftests > > ...two types of warnings occur: > > warning: absolute value function 'abs' given an argument of type > 'long' but has parameter of type 'int' which may

[PATCH v3] selftests/resctrl: fix clang build warnings related to abs(), labs() calls

2024-05-08 Thread John Hubbard
When building with clang, via: make LLVM=1 -C tools/testing/selftests ...two types of warnings occur: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value warning: taking the absolute valu