linux/tools/testing
Stafford Horne aff985fd07 selftests/intel_pstate: Fix warning on loop index overflow
The build was showing the warning:
 aperf.c:60:27: warning: iteration 2147483647 invokes undefined behavior
 [-Waggressive-loop-optimizations]
  for (i=0; i<0x8fffffff; i++) {

This change sets i, cpu and fd to unsigned int as they should not need
to be signed.

Cc: Prarit Bhargava <prarit@redhat.com>
Signed-off-by: Stafford Horne <shorne@gmail.com>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
2017-01-19 10:30:34 -07:00
..
fault-injection
ktest ktest.pl: fix english 2016-12-14 16:04:08 -08:00
nvdimm Merge branch 'for-4.10/libnvdimm' into libnvdimm-for-next 2016-12-17 15:08:10 -08:00
radix-tree redo: radix tree test suite: fix compilation 2016-12-15 11:04:20 -08:00
selftests selftests/intel_pstate: Fix warning on loop index overflow 2017-01-19 10:30:34 -07:00