[radeon-alex:drm-next-4.13-wip 334/343] drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c:1308:24: warning: cast from pointer to integer of different size

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   git://people.freedesktop.org/~agd5f/linux.git drm-next-4.13-wip
head:   822bfb93ca63bd15ccc3f0ba925110c8298b3162
commit: b4d42511b7f2269f4cca3c02cd6e4c58099f9108 [334/343] drm/amdgpu: Support page table update via CPU
config: i386-randconfig-r0-06050939 (attached as .config)
compiler: gcc-5 (Debian 5.4.1-2) 5.4.1 20160904
reproduce:
        git checkout b4d42511b7f2269f4cca3c02cd6e4c58099f9108
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   In file included from drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c:32:0:
   drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c: In function 'amdgpu_vm_cpu_set_ptes':
   drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c:987:41: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
      amdgpu_gart_set_pte_pde(params->adev, (void *)pe,
                                            ^
   drivers/gpu/drm/amd/amdgpu/amdgpu.h:1858:107: note: in definition of macro 'amdgpu_gart_set_pte_pde'
    #define amdgpu_gart_set_pte_pde(adev, pt, idx, addr, flags) (adev)->gart.gart_funcs->set_pte_pde((adev), (pt), (idx), (addr), (flags))
                                                                                                              ^
   drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c: In function 'amdgpu_vm_update_ptes_cpu':
>> drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c:1308:24: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
      params->func(params, (uint64_t)pe_ptr, dst, nptes,
                           ^
   In file included from arch/x86/include/asm/bug.h:81:0,
                    from include/linux/bug.h:4,
                    from include/linux/thread_info.h:11,
                    from arch/x86/include/asm/preempt.h:6,
                    from include/linux/preempt.h:80,
                    from include/linux/spinlock.h:50,
                    from include/linux/wait.h:8,
                    from include/linux/dma-fence.h:25,
                    from include/linux/dma-fence-array.h:23,
                    from drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c:28:
   drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c: In function 'amdgpu_vm_update_level':
   include/asm-generic/bug.h:107:5: warning: 'ndw' may be used uninitialized in this function [-Wmaybe-uninitialized]
     if (unlikely(__ret_warn_on))     \
        ^
   drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c:1030:30: note: 'ndw' was declared here
     unsigned count = 0, pt_idx, ndw;
                                 ^
   drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c:1132:16: warning: 'shadow_addr' may be used uninitialized in this function [-Wmaybe-uninitialized]
       last_shadow = shadow_addr + pt_idx * 8;
                   ^
   drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c:1161:5: warning: 'ring' may be used uninitialized in this function [-Wmaybe-uninitialized]
      r = amdgpu_job_submit(job, ring, &vm->entity,
        ^

vim +1308 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c

  1292				return -EINVAL;
  1293			}
  1294	
  1295			WARN_ON(params->shadow);
  1296	
  1297			r = amdgpu_bo_kmap(pt, &pe_ptr);
  1298			if (r)
  1299				return r;
  1300	
  1301			pe_ptr += (addr & mask) * 8;
  1302	
  1303			if ((addr & ~mask) == (end & ~mask))
  1304				nptes = end - addr;
  1305			else
  1306				nptes = AMDGPU_VM_PTE_COUNT(adev) - (addr & mask);
  1307	
> 1308			params->func(params, (uint64_t)pe_ptr, dst, nptes,
  1309				     AMDGPU_GPU_PAGE_SIZE, flags);
  1310	
  1311			amdgpu_bo_kunmap(pt);
  1312			addr += nptes;
  1313			dst += nptes * AMDGPU_GPU_PAGE_SIZE;
  1314		}
  1315	
  1316		return 0;

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel

[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux