Skip to content

Commit

Permalink
drivers: media: cvp: Fix -Wvoid-pointer-to-int-cast
Browse files Browse the repository at this point in the history
../../../../../../kernel/xiaomi/alioth/drivers/media/platform/msm/cvp/hfi_response_handler.c:494: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);
                                          ^~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
  • Loading branch information
palaych committed Aug 26, 2021
1 parent b67c795 commit 48c0dff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/platform/msm/cvp/hfi_response_handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,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, (uint64_t)session_id);

if (!inst) {
dprintk(CVP_ERR, "%s: invalid session\n", __func__);
Expand Down

0 comments on commit 48c0dff

Please sign in to comment.