OSDN Git Service

drm/amdgpu: kfd_initialized can be static
authorkernel test robot <lkp@intel.com>
Wed, 23 Sep 2020 02:28:28 +0000 (10:28 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Oct 2020 18:44:39 +0000 (14:44 -0400)
Fixes: c7651b73586600 ("drm/amdgpu: Fix handling of KFD initialization failures")
Signed-off-by: kernel test robot <lkp@intel.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c

index 3c0e43f..0544460 100644 (file)
@@ -36,7 +36,7 @@
  */
 uint64_t amdgpu_amdkfd_total_mem_size;
 
-bool kfd_initialized;
+static bool kfd_initialized;
 
 int amdgpu_amdkfd_init(void)
 {