Skip to content
Snippets Groups Projects
  1. Aug 23, 2018
  2. Aug 17, 2018
  3. Aug 16, 2018
  4. Aug 15, 2018
    • Michel Dänzer's avatar
      amdgpu: Use uint32_t i in amdgpu_find_bo_by_cpu_mapping · 1e12c16d
      Michel Dänzer authored and Michel Dänzer's avatar Michel Dänzer committed
      
      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: 4d454424 ("amdgpu: add a function to find bo by cpu mapping
                           (v2)")
      Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
      Reviewed-by: default avatarJunwei Zhang <Jerry.Zhang@amd.com>
      1e12c16d
  5. Aug 14, 2018
  6. Aug 08, 2018
  7. Aug 07, 2018
  8. Aug 01, 2018
  9. Jul 30, 2018
  10. Jul 25, 2018
  11. Jul 24, 2018
Loading