summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMeenakshikumar Somasundaram <meenakshikumar.somasundaram@amd.com>2021-03-03 18:31:03 -0500
committerAlex Deucher <alexander.deucher@amd.com>2021-03-23 23:32:19 -0400
commit45150cd27ceb8f5e86122a85620df68a89011560 (patch)
treea2b92da4985269307579a6dc7f863d5995ed453f
parent6a30a92997eee49554f72b462dce90abe54a496f (diff)
downloadlinux-stable-45150cd27ceb8f5e86122a85620df68a89011560.tar.gz
linux-stable-45150cd27ceb8f5e86122a85620df68a89011560.tar.bz2
linux-stable-45150cd27ceb8f5e86122a85620df68a89011560.zip
drm/amd/display: Fix for outbox1 ring buffer typecasting issue
[WHY] Compiler warning "pointer to integer of different size" reported on outbox1 ring buffer address typecasting. Reported-by: kernel test robot <lkp@intel.com> [HOW] Fixed the issue by typecasting with character pointer. Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Meenakshikumar Somasundaram <meenakshikumar.somasundaram@amd.com> Reviewed-by: Jun Lei <Jun.Lei@amd.com> Acked-by: Solomon Chiu <solomon.chiu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c b/drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c
index 1ee2000ad099..8ba0a9e2da54 100644
--- a/drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c
+++ b/drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c
@@ -508,7 +508,7 @@ enum dmub_status dmub_srv_hw_init(struct dmub_srv *dmub,
// Initialize outbox1 ring buffer
rb_params.ctx = dmub;
- rb_params.base_address = (void *) ((uint64_t) (mail_fb->cpu_addr) + DMUB_RB_SIZE);
+ rb_params.base_address = (void *) ((uint8_t *) (mail_fb->cpu_addr) + DMUB_RB_SIZE);
rb_params.capacity = DMUB_RB_SIZE;
dmub_rb_init(&dmub->outbox1_rb, &rb_params);