Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Meenakshikumar Somasundaram and committed by
Alex Deucher
45150cd2 6a30a929

+1 -1
+1 -1
drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c
··· 508 508 509 509 // Initialize outbox1 ring buffer 510 510 rb_params.ctx = dmub; 511 - rb_params.base_address = (void *) ((uint64_t) (mail_fb->cpu_addr) + DMUB_RB_SIZE); 511 + rb_params.base_address = (void *) ((uint8_t *) (mail_fb->cpu_addr) + DMUB_RB_SIZE); 512 512 rb_params.capacity = DMUB_RB_SIZE; 513 513 dmub_rb_init(&dmub->outbox1_rb, &rb_params); 514 514