Commit 04cc0828 authored by Suman Anna's avatar Suman Anna
Browse files

rpmsg: rpc: define and use a device address type



The current rpmsg_rpc code uses a phys_addr_t type for variables
storing the remote processor device addresses. The phys_addr_t
type can either be a 32-bit or a 64-bit integer type (based on
CONFIG_PHYS_ADDR_T_64BIT). Define a new address type, dev_addr_t,
and use this for remote processor addresses instead of phys_addr_t,
so as to not to confuse with either the actual physical addresses
or the MPU virtual addresses. The new type is defined to be a 32-bit
integer type as all the existing OMAP remote processors use 32-bit
addresses only.

This fixes couple of build warnings of the type "cast to pointer from
integer of different size" when CONFIG_ARM_LPAE is enabled.

Reviewed-by: default avatarLokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: default avatarSuman Anna <s-anna@ti.com>
parent d21f48b4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment