diff options
author | Elliot Berman <quic_eberman@quicinc.com> | 2023-02-13 10:18:29 -0800 |
---|---|---|
committer | Bjorn Andersson <andersson@kernel.org> | 2023-03-15 16:52:11 -0700 |
commit | 968a26a07f75377afbd4f7bb18ef587a1443c244 (patch) | |
tree | 3729abdf61062fbb46d58d858722519fc66780a4 /drivers/misc | |
parent | 9e4a7652d7028d40b2dd6636d400ca6266d641ef (diff) | |
download | lwn-968a26a07f75377afbd4f7bb18ef587a1443c244.tar.gz lwn-968a26a07f75377afbd4f7bb18ef587a1443c244.zip |
firmware: qcom_scm: Use fixed width src vm bitmap
The maximum VMID for assign_mem is 63. Use a u64 to represent this
bitmap instead of architecture-dependent "unsigned int" which varies in
size on 32-bit and 64-bit platforms.
Acked-by: Kalle Valo <kvalo@kernel.org> (ath10k)
Tested-by: Gokul krishna Krishnakumar <quic_gokukris@quicinc.com>
Signed-off-by: Elliot Berman <quic_eberman@quicinc.com>
Reviewed-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230213181832.3489174-1-quic_eberman@quicinc.com
Diffstat (limited to 'drivers/misc')
-rw-r--r-- | drivers/misc/fastrpc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/fastrpc.c b/drivers/misc/fastrpc.c index a701132638cf..f48466960f1b 100644 --- a/drivers/misc/fastrpc.c +++ b/drivers/misc/fastrpc.c @@ -262,7 +262,7 @@ struct fastrpc_channel_ctx { int domain_id; int sesscount; int vmcount; - u32 perms; + u64 perms; struct qcom_scm_vmperm vmperms[FASTRPC_MAX_VMIDS]; struct rpmsg_device *rpdev; struct fastrpc_session_ctx session[FASTRPC_MAX_SESSIONS]; |