soc: qcom: glink_spi_xprt: Fix compilation error for 32 bit
Conversion of a 64 bit int variable to void pointer is illegal operation when compiling for 32 bit architecture. Added explicit conversion to uintprt_t, so that 32 bit conversion can be done. CRs-Fixed: 1107920 Change-Id: I3854fcb460308c9a77a17198dcb604dd4da135ac Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
This commit is contained in:
parent
a51b7f6000
commit
1618176475
1 changed files with 8 additions and 7 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* Copyright (c) 2016, The Linux Foundation. All rights reserved.
|
/* Copyright (c) 2016-2017, The Linux Foundation. All rights reserved.
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License version 2 and
|
* it under the terms of the GNU General Public License version 2 and
|
||||||
|
@ -789,9 +789,9 @@ static void process_rx_cmd(struct edge_info *einfo,
|
||||||
offset += sizeof(*intents);
|
offset += sizeof(*intents);
|
||||||
einfo->xprt_if.glink_core_if_ptr->
|
einfo->xprt_if.glink_core_if_ptr->
|
||||||
rx_cmd_remote_rx_intent_put_cookie(
|
rx_cmd_remote_rx_intent_put_cookie(
|
||||||
&einfo->xprt_if, cmd->param1,
|
&einfo->xprt_if, cmd->param1,
|
||||||
intents->id, intents->size,
|
intents->id, intents->size,
|
||||||
(void *)(intents->addr));
|
(void *)(uintptr_t)(intents->addr));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -821,9 +821,10 @@ static void process_rx_cmd(struct edge_info *einfo,
|
||||||
case TRACER_PKT_CONT_CMD:
|
case TRACER_PKT_CONT_CMD:
|
||||||
rx_descp = (struct rx_desc *)(rx_data + offset);
|
rx_descp = (struct rx_desc *)(rx_data + offset);
|
||||||
offset += sizeof(*rx_descp);
|
offset += sizeof(*rx_descp);
|
||||||
process_rx_data(einfo, cmd->id, cmd->param1,
|
process_rx_data(einfo, cmd->id, cmd->param1,
|
||||||
cmd->param2, (void *)rx_descp->addr,
|
cmd->param2,
|
||||||
rx_descp->size, rx_descp->size_left);
|
(void *)(uintptr_t)(rx_descp->addr),
|
||||||
|
rx_descp->size, rx_descp->size_left);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case TX_SHORT_DATA_CMD:
|
case TX_SHORT_DATA_CMD:
|
||||||
|
|
Loading…
Add table
Reference in a new issue