[radeon-alex:amd-staging-dkms-4.13 1197/2206] drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:3166:1-3: ERROR: test of a variable/field address

kbuild test robot fengguang.wu at intel.com
Fri Oct 20 05:56:48 UTC 2017


tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-dkms-4.13
head:   2b14e1f4fded74b9efeb990869076cebb06d27ee
commit: 3afede44859ca67e2f708fabd854bab152129fda [1197/2206] drm/amdkcl:[4.11] fix bug fail to remove debugfs when rmmod


coccinelle warnings: (new ones prefixed by >>)

>> drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:3166:1-3: ERROR: test of a variable/field address

vim +3166 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

  3160	
  3161	#if defined(BUILD_AS_DKMS) &&  LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
  3162	void amdgpu_debugfs_cleanup(struct drm_minor *minor)
  3163	{
  3164		struct drm_info_node *node, *tmp;
  3165	
> 3166		if (!&minor->debugfs_root)
  3167			return 0;
  3168	
  3169		mutex_lock(&minor->debugfs_lock);
  3170		list_for_each_entry_safe(node, tmp,
  3171			&minor->debugfs_list, list) {
  3172			debugfs_remove(node->dent);
  3173			list_del(&node->list);
  3174			kfree(node);
  3175		}
  3176		mutex_unlock(&minor->debugfs_lock);
  3177	
  3178		return 0;
  3179	}
  3180	#endif
  3181	

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


More information about the dri-devel mailing list