[radeon-alex:amd-mainline-dkms-4.15 1098/1759] drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:70:1-3: ERROR: test of a variable/field address

kbuild test robot lkp at intel.com
Wed Apr 25 02:35:03 UTC 2018


tree:   git://people.freedesktop.org/~agd5f/linux.git amd-mainline-dkms-4.15
head:   9556f93f18f7923978fb90f860c107fed9ca7f57
commit: 02349fbb559640a1f948df9c84e8f65bd2565d57 [1098/1759] drm/amdkcl: [4.11] fix debugfs func


coccinelle warnings: (new ones prefixed by >>)

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

vim +70 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c

    64	
    65	#if defined(BUILD_AS_DKMS) &&  LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
    66	void amdgpu_debugfs_cleanup(struct drm_minor *minor)
    67	{
    68		struct drm_info_node *node, *tmp;
    69	
  > 70		if (!&minor->debugfs_root)
    71			return 0;
    72	
    73		mutex_lock(&minor->debugfs_lock);
    74		list_for_each_entry_safe(node, tmp,
    75			&minor->debugfs_list, list) {
    76			debugfs_remove(node->dent);
    77			list_del(&node->list);
    78			kfree(node);
    79		}
    80		mutex_unlock(&minor->debugfs_lock);
    81	
    82		return 0;
    83	}
    84	#endif
    85	

---
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