From 3447e16b78270dd37d4e22cd0141ddbbefd11a4a Mon Sep 17 00:00:00 2001 From: lucaswei Date: Thu, 3 Feb 2022 16:56:25 -0700 Subject: [PATCH] drivers: media: Fix -Wpointer-to-int-cast. drivers/media/platform/msm/cvp/hfi_response_handler.c:507:36: warning: cast to smaller integer type 'unsigned int' from 'void *' [-Wvoid-pointer-to-int-cast] inst = cvp_get_inst_from_id(core, (unsigned int)session_id); ^~~~~~~~~~~~~~~~~~~~~~~~ Change-Id: Iadb69f5ba617ce2c7410475bcd9bc024e3a40017 --- drivers/media/platform/msm/cvp/hfi_response_handler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/msm/cvp/hfi_response_handler.c b/drivers/media/platform/msm/cvp/hfi_response_handler.c index db857c210f3f..daee7f4908f8 100644 --- a/drivers/media/platform/msm/cvp/hfi_response_handler.c +++ b/drivers/media/platform/msm/cvp/hfi_response_handler.c @@ -504,7 +504,7 @@ static int hfi_process_session_cvp_msg(u32 device_id, } session_id = (void *)(uintptr_t)get_msg_session_id(pkt); core = list_first_entry(&cvp_driver->cores, struct msm_cvp_core, list); - inst = cvp_get_inst_from_id(core, (unsigned int)session_id); + inst = cvp_get_inst_from_id(core, (uintptr_t)session_id); if (!inst) { dprintk(CVP_ERR, "%s: invalid session\n", __func__);