Skip to content

Commit

Permalink
treewide: fix pointer-to-int warnings generated by Clang
Browse files Browse the repository at this point in the history
  • Loading branch information
kristofpetho authored and schqiushui committed Apr 24, 2021
1 parent c6c43ff commit 6756121
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
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 @@ -457,7 +457,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__);
Expand Down
4 changes: 2 additions & 2 deletions drivers/misc/qseecom.c
Original file line number Diff line number Diff line change
Expand Up @@ -3705,8 +3705,8 @@ static int __qseecom_send_cmd(struct qseecom_dev_handle *data,
(uint32_t)(__qseecom_uvirt_to_kphys(
data, (uintptr_t)req->resp_buf));
} else {
send_data_req.req_ptr = (uint32_t)req->cmd_req_buf;
send_data_req.rsp_ptr = (uint32_t)req->resp_buf;
send_data_req.req_ptr = (uintptr_t)req->cmd_req_buf;
send_data_req.rsp_ptr = (uintptr_t)req->resp_buf;
}

send_data_req.req_len = req->cmd_req_len;
Expand Down
2 changes: 1 addition & 1 deletion drivers/platform/msm/ipa/ipa_v3/ipahal/ipahal_hw_stats.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ static struct ipahal_stats_init_pyld *ipahal_generate_init_pyld_flt_rt_v4_5(
void *params, bool is_atomic_ctx)
{
struct ipahal_stats_init_pyld *pyld;
int num = (int)(params);
int num = (int)(long)(params);

if (num > IPA_MAX_FLT_RT_CNT_INDEX ||
num <= 0) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ unsigned char SelectDownload(UINT8 GyroSelect, UINT8 ActSelect, UINT8 MasterSlav

// 高速化対応Download
TRACE("DataPM( %08x ), LengthPM( %08x ) , Parity( %08x ), DataDM( %08x ) , LengthDMA( %08x ) , LengthDMB( %08x ) \n"
, (int)ptr->DataPM , (int)ptr->LengthPM , (int)ptr->Parity , (int)ptr->DataDM , (int)ptr->LengthDMA , (int)ptr->LengthDMB );
, (int)(long)ptr->DataPM , (int)ptr->LengthPM , (int)ptr->Parity , (int)(long)ptr->DataDM , (int)ptr->LengthDMA , (int)ptr->LengthDMB );
return( DownloadToEP3( ptr->DataPM, ptr->LengthPM, ptr->Parity, ptr->DataDM, ptr->LengthDMA , ptr->LengthDMB ) );
}

2 changes: 1 addition & 1 deletion techpack/video/msm/vidc/hfi_iris2.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ void __setup_ucregion_memory_map_iris2(struct venus_hfi_device *device, u32 sid)
(u32)device->qdss.align_device_addr, sid);
/* update queues vaddr for debug purpose */
__write_register(device, CPU_CS_VCICMDARG0_IRIS2,
(u32)device->iface_q_table.align_virtual_addr, sid);
(u32)(u64)device->iface_q_table.align_virtual_addr, sid);
__write_register(device, CPU_CS_VCICMDARG1_IRIS2,
(u32)((u64)device->iface_q_table.align_virtual_addr >> 32),
sid);
Expand Down

0 comments on commit 6756121

Please sign in to comment.