aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2736-drm-amdkfd-Fix-if-preprocessor-statement-above-kfd_f.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2736-drm-amdkfd-Fix-if-preprocessor-statement-above-kfd_f.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2736-drm-amdkfd-Fix-if-preprocessor-statement-above-kfd_f.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2736-drm-amdkfd-Fix-if-preprocessor-statement-above-kfd_f.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2736-drm-amdkfd-Fix-if-preprocessor-statement-above-kfd_f.patch
new file mode 100644
index 00000000..b8faef56
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2736-drm-amdkfd-Fix-if-preprocessor-statement-above-kfd_f.patch
@@ -0,0 +1,37 @@
+From 2df98155392cf2fdfeac2db8193d45ff479cbb48 Mon Sep 17 00:00:00 2001
+From: Nathan Chancellor <natechancellor@gmail.com>
+Date: Mon, 21 Jan 2019 16:52:15 -0700
+Subject: [PATCH 2736/2940] drm/amdkfd: Fix if preprocessor statement above
+ kfd_fill_iolink_info_for_cpu
+
+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>
+---
+ drivers/gpu/drm/amd/amdkfd/kfd_crat.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_crat.c b/drivers/gpu/drm/amd/amdkfd/kfd_crat.c
+index d7ddb352bd8f..e448a2d759e9 100644
+--- a/drivers/gpu/drm/amd/amdkfd/kfd_crat.c
++++ b/drivers/gpu/drm/amd/amdkfd/kfd_crat.c
+@@ -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)
+--
+2.17.1
+