[radeon-alex:drm-next-4.12-wip 34/69] drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c:1207:20: warning: comparison of distinct pointer types lacks a cast

kbuild test robot fengguang.wu at intel.com
Thu Apr 6 08:56:13 UTC 2017


tree:   git://people.freedesktop.org/~agd5f/linux.git drm-next-4.12-wip
head:   a738ad6108435367c1d7f1a4a499bebdd26c375e
commit: d088e5038a6387552501705c797c0d0b84d3a935 [34/69] drm/amdgpu: fix vm size and block size for VMPT (v4)
config: tile-allmodconfig (attached as .config)
compiler: tilegx-linux-gcc (GCC) 4.6.2
reproduce:
        wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout d088e5038a6387552501705c797c0d0b84d3a935
        # save the attached .config to linux build tree
        make.cross ARCH=tile 

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c: In function 'amdgpu_vm_bo_update_mapping':
>> drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c:1207:20: warning: comparison of distinct pointer types lacks a cast [enabled by default]

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

  1191		params.adev = adev;
  1192		params.vm = vm;
  1193		params.src = src;
  1194	
  1195		ring = container_of(vm->entity.sched, struct amdgpu_ring, sched);
  1196	
  1197		/* sync to everything on unmapping */
  1198		if (!(flags & AMDGPU_PTE_VALID))
  1199			owner = AMDGPU_FENCE_OWNER_UNDEFINED;
  1200	
  1201		nptes = last - start + 1;
  1202	
  1203		/*
  1204		 * reserve space for one command every (1 << BLOCK_SIZE)
  1205		 *  entries or 2k dwords (whatever is smaller)
  1206		 */
> 1207		ncmds = (nptes >> min(adev->vm_manager.block_size, 11)) + 1;
  1208	
  1209		/* padding, etc. */
  1210		ndw = 64;
  1211	
  1212		if (src) {
  1213			/* only copy commands needed */
  1214			ndw += ncmds * 7;
  1215	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 48081 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20170406/8cbeb8e4/attachment-0001.gz>


More information about the dri-devel mailing list