aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3677-drm-amdgpu-change-r-type-to-int-in-gmc_v9_0_late_ini.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3677-drm-amdgpu-change-r-type-to-int-in-gmc_v9_0_late_ini.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3677-drm-amdgpu-change-r-type-to-int-in-gmc_v9_0_late_ini.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3677-drm-amdgpu-change-r-type-to-int-in-gmc_v9_0_late_ini.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3677-drm-amdgpu-change-r-type-to-int-in-gmc_v9_0_late_ini.patch
new file mode 100644
index 00000000..a01e2b32
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3677-drm-amdgpu-change-r-type-to-int-in-gmc_v9_0_late_ini.patch
@@ -0,0 +1,34 @@
+From 22b46b14730dbe0af981708a283fca3527b514d9 Mon Sep 17 00:00:00 2001
+From: Tao Zhou <tao.zhou1@amd.com>
+Date: Mon, 2 Sep 2019 19:27:23 +0800
+Subject: [PATCH 3677/4256] drm/amdgpu: change r type to int in
+ gmc_v9_0_late_init
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+change r type from bool to int, suitable for both bool and int return
+value
+
+Signed-off-by: Tao Zhou <tao.zhou1@amd.com>
+Reviewed-by: Christian König <christian.koenig@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
+index e01fe0678243..824babb24de2 100644
+--- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
++++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
+@@ -891,7 +891,7 @@ static int gmc_v9_0_ecc_late_init(void *handle)
+ static int gmc_v9_0_late_init(void *handle)
+ {
+ struct amdgpu_device *adev = (struct amdgpu_device *)handle;
+- bool r;
++ int r;
+
+ if (!gmc_v9_0_keep_stolen_memory(adev))
+ amdgpu_bo_late_init(adev);
+--
+2.17.1
+