aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
diff options
context:
space:
mode:
authorkernel test robot <lkp@intel.com>2020-09-23 10:28:28 +0800
committerAlex Deucher <alexander.deucher@amd.com>2020-10-09 14:44:39 -0400
commit402bde58e7f40da4d4d87c10b74182ed6b5c97dc (patch)
treea1d9e08031befeb522f1a21c140435ddc4e4e3b1 /drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
parentamd/amdgpu_ctx: Use struct_size() helper and kmalloc() (v2) (diff)
downloadlinux-dev-402bde58e7f40da4d4d87c10b74182ed6b5c97dc.tar.xz
linux-dev-402bde58e7f40da4d4d87c10b74182ed6b5c97dc.zip
drm/amdgpu: kfd_initialized can be static
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
index 3c0e43f548fb..0544460653b9 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
@@ -36,7 +36,7 @@
*/
uint64_t amdgpu_amdkfd_total_mem_size;
-bool kfd_initialized;
+static bool kfd_initialized;
int amdgpu_amdkfd_init(void)
{