mesa-drm/amdgpu
Michel Dänzer 1e12c16d76 amdgpu: Use uint32_t i in amdgpu_find_bo_by_cpu_mapping
The compiler points out that an int doesn't work as intended if
dev->bo_handles.max_key > INT_MAX:

../../amdgpu/amdgpu_bo.c: In function ‘amdgpu_find_bo_by_cpu_mapping’:
../../amdgpu/amdgpu_bo.c:550:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]
  for (i = 0; i < dev->bo_handles.max_key; i++) {
                ^
../../amdgpu/amdgpu_bo.c:558:8: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]
  if (i < dev->bo_handles.max_key) {
        ^

Fixes: 4d454424e1 ("amdgpu: add a function to find bo by cpu mapping
                     (v2)")
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com>
2018-08-15 10:34:59 +02:00
..
.editorconfig Add meson build system 2018-01-12 09:40:48 -08:00
amdgpu-symbol-check *-symbol-check: Don't hard-code nm executable 2018-02-23 17:53:08 +00:00
amdgpu.h amdgpu: add a function to find bo by cpu mapping (v2) 2018-08-08 12:37:49 +02:00
amdgpu_asic_id.c meson,configure: include config.h automatically 2018-03-20 18:19:26 +00:00
amdgpu_bo.c amdgpu: Use uint32_t i in amdgpu_find_bo_by_cpu_mapping 2018-08-15 10:34:59 +02:00
amdgpu_cs.c meson,configure: include config.h automatically 2018-03-20 18:19:26 +00:00
amdgpu_device.c amdgpu: use handle table for flink names 2018-08-07 13:27:28 +02:00
amdgpu_gpu_info.c meson,configure: include config.h automatically 2018-03-20 18:19:26 +00:00
amdgpu_internal.h amdgpu: use handle table for flink names 2018-08-07 13:27:28 +02:00
amdgpu_vamgr.c meson,configure: include config.h automatically 2018-03-20 18:19:26 +00:00
amdgpu_vm.c meson,configure: include config.h automatically 2018-03-20 18:19:26 +00:00
Android.mk amdgpu: Only remember the device's marketing name 2017-12-05 12:50:20 +01:00
handle_table.c amdgpu: add handle table implementation v2 2018-08-07 13:27:16 +02:00
handle_table.h amdgpu: add handle table implementation v2 2018-08-07 13:27:16 +02:00
libdrm_amdgpu.pc.in amdgpu: add libdrm as private requirement/dependency 2016-02-04 13:22:50 +00:00
Makefile.am amdgpu: Only remember the device's marketing name 2017-12-05 12:50:20 +01:00
Makefile.sources amdgpu: remove the hash table implementation 2018-08-07 13:27:33 +02:00
meson.build libdrm: Fix amdgpu build failure 2018-08-07 13:58:21 +01:00