aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3100-drm-amdgpu-Remove-undefined-amdgpu_device_parse_fake.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3100-drm-amdgpu-Remove-undefined-amdgpu_device_parse_fake.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3100-drm-amdgpu-Remove-undefined-amdgpu_device_parse_fake.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3100-drm-amdgpu-Remove-undefined-amdgpu_device_parse_fake.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3100-drm-amdgpu-Remove-undefined-amdgpu_device_parse_fake.patch
new file mode 100644
index 00000000..2d0d6ba3
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3100-drm-amdgpu-Remove-undefined-amdgpu_device_parse_fake.patch
@@ -0,0 +1,36 @@
+From 21d45e6dc1a375d4f7f017577a1b8fa481f8c93a Mon Sep 17 00:00:00 2001
+From: Leo Li <sunpeng.li@amd.com>
+Date: Thu, 18 Jul 2019 12:05:48 -0400
+Subject: [PATCH 3100/4256] drm/amdgpu: Remove undefined
+ amdgpu_device_parse_faked_did
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+This forward declare was added for no apparent reason. Remove it to
+resolve this warning:
+
+drivers/gpu/drm//amd/amdgpu/amdgpu_device.c:131:13: warning: ‘amdgpu_device_parse_faked_did’ declared ‘static’ but never defined [-Wunused-function]
+ static void amdgpu_device_parse_faked_did(struct amdgpu_device *adev);
+
+Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
+Signed-off-by: Leo Li <sunpeng.li@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+index aa007e9958a0..429794becdcd 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+@@ -128,7 +128,6 @@ static DEVICE_ATTR(pcie_replay_count, S_IRUGO,
+ amdgpu_device_get_pcie_replay_count, NULL);
+
+ static void amdgpu_device_get_pcie_info(struct amdgpu_device *adev);
+-static void amdgpu_device_parse_faked_did(struct amdgpu_device *adev);
+
+ /**
+ * amdgpu_device_is_px - Is the device is a dGPU with HG/PX power control
+--
+2.17.1
+