aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0099-drm-amd-powerplay-fix-warning-of-cast-to-pointer-fro.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/files/0099-drm-amd-powerplay-fix-warning-of-cast-to-pointer-fro.patch')
-rw-r--r--common/recipes-kernel/linux/files/0099-drm-amd-powerplay-fix-warning-of-cast-to-pointer-fro.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/files/0099-drm-amd-powerplay-fix-warning-of-cast-to-pointer-fro.patch b/common/recipes-kernel/linux/files/0099-drm-amd-powerplay-fix-warning-of-cast-to-pointer-fro.patch
new file mode 100644
index 00000000..7e54b411
--- /dev/null
+++ b/common/recipes-kernel/linux/files/0099-drm-amd-powerplay-fix-warning-of-cast-to-pointer-fro.patch
@@ -0,0 +1,34 @@
+From 1fbd822e6fde44d660d372680657763a5e5b5c25 Mon Sep 17 00:00:00 2001
+From: Rex Zhu <Rex.Zhu@amd.com>
+Date: Mon, 16 Nov 2015 11:24:35 +0800
+Subject: [PATCH 0099/1110] drm/amd/powerplay: fix warning of cast to pointer
+ from integer of different size.
+
+Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
+Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.c
+index 2348d8c..fd32be2 100644
+--- a/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.c
++++ b/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.c
+@@ -4956,12 +4956,12 @@ static int tonga_get_pp_table_entry_callback_func(struct pp_hwmgr *hwmgr,
+
+ ATOM_Tonga_SCLK_Dependency_Table *sclk_dep_table =
+ (ATOM_Tonga_SCLK_Dependency_Table *)
+- (((uint64_t)powerplay_table) +
++ (((unsigned long)powerplay_table) +
+ le16_to_cpu(powerplay_table->usSclkDependencyTableOffset));
+
+ ATOM_Tonga_MCLK_Dependency_Table *mclk_dep_table =
+ (ATOM_Tonga_MCLK_Dependency_Table *)
+- (((uint64_t)powerplay_table) +
++ (((unsigned long)powerplay_table) +
+ le16_to_cpu(powerplay_table->usMclkDependencyTableOffset));
+
+ /* The following fields are not initialized here: id orderedList allStatesList */
+--
+2.7.4
+