drm/amdkfd: Fix if preprocessor statement above kfd_fill_iolink_info_for_cpu
authorNathan Chancellor <natechancellor@gmail.com>
Mon, 21 Jan 2019 23:52:15 +0000 (16:52 -0700)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 5 Feb 2019 23:10:28 +0000 (18:10 -0500)
Clang warns:

drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_crat.c:866:5: warning:
'CONFIG_X86_64' is not defined, evaluates to 0 [-Wundef]
    ^
1 warning generated.

Fixes: d1c234e2cd10 ("drm/amdkfd: Allow building KFD on ARM64 (v2)")
Signed-off-by: Nathan Chancellor <natechancellor@gmail.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/amdkfd/kfd_crat.c

index 5d85ff341385069cc349a83fe607d2e7511345a2..2e7c44955f432a282e464315d0be46f054c4dcab 100644 (file)
@@ -863,7 +863,7 @@ static int kfd_fill_mem_info_for_cpu(int numa_node_id, int *avail_size,
        return 0;
 }
 
-#if CONFIG_X86_64
+#ifdef CONFIG_X86_64
 static int kfd_fill_iolink_info_for_cpu(int numa_node_id, int *avail_size,
                                uint32_t *num_entries,
                                struct crat_subtype_iolink *sub_type_hdr)