diff options
| author | Clement Leger <[email protected]> | 2020-03-02 10:38:57 +0100 |
|---|---|---|
| committer | Bjorn Andersson <[email protected]> | 2020-03-25 22:29:39 -0700 |
| commit | e4ae4b7d01699d0f3ea61bbef119f2d67e5455c0 (patch) | |
| tree | 9304cac3daa43164894625d91d3bb50531d897dc /include | |
| parent | 096ee78669d2bc8fccc40117de8d4e838a0c80db (diff) | |
remoteproc: Use u64 type for boot_addr
elf64 entry is defined as a u64. Since boot_addr is used to store the
elf entry point, change boot_addr type to u64 to support both elf32
and elf64. In the same time, fix users that were using this variable.
Reviewed-by: Bjorn Andersson <[email protected]>
Signed-off-by: Clement Leger <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[bjorn: Fixes up return type of rproc_get_boot_addr()]
Signed-off-by: Bjorn Andersson <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/remoteproc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/remoteproc.h b/include/linux/remoteproc.h index bee559330204..1683d6c386a6 100644 --- a/include/linux/remoteproc.h +++ b/include/linux/remoteproc.h @@ -382,7 +382,7 @@ struct rproc_ops { struct rproc *rproc, const struct firmware *fw); int (*load)(struct rproc *rproc, const struct firmware *fw); int (*sanity_check)(struct rproc *rproc, const struct firmware *fw); - u32 (*get_boot_addr)(struct rproc *rproc, const struct firmware *fw); + u64 (*get_boot_addr)(struct rproc *rproc, const struct firmware *fw); }; /** @@ -498,7 +498,7 @@ struct rproc { int num_traces; struct list_head carveouts; struct list_head mappings; - u32 bootaddr; + u64 bootaddr; struct list_head rvdevs; struct list_head subdevs; struct idr notifyids; |