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
|
||||
* it under the terms of the GNU General Public License version 2 and
|
||||
|
@ -791,7 +791,7 @@ static void process_rx_cmd(struct edge_info *einfo,
|
|||
rx_cmd_remote_rx_intent_put_cookie(
|
||||
&einfo->xprt_if, cmd->param1,
|
||||
intents->id, intents->size,
|
||||
(void *)(intents->addr));
|
||||
(void *)(uintptr_t)(intents->addr));
|
||||
}
|
||||
break;
|
||||
|
||||
|
@ -822,7 +822,8 @@ static void process_rx_cmd(struct edge_info *einfo,
|
|||
rx_descp = (struct rx_desc *)(rx_data + offset);
|
||||
offset += sizeof(*rx_descp);
|
||||
process_rx_data(einfo, cmd->id, cmd->param1,
|
||||
cmd->param2, (void *)rx_descp->addr,
|
||||
cmd->param2,
|
||||
(void *)(uintptr_t)(rx_descp->addr),
|
||||
rx_descp->size, rx_descp->size_left);
|
||||
break;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue