]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
remoteproc: Use size_t instead of int for rproc_mem_entry len
authorClement Leger <cleger@kalray.eu>
Mon, 2 Mar 2020 09:38:56 +0000 (10:38 +0100)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 26 Mar 2020 05:29:39 +0000 (22:29 -0700)
commit096ee78669d2bc8fccc40117de8d4e838a0c80db
treeb243d112b03423e668c66be93157096abedaf5a0
parent9ce3bf225e5a908756b90b8f7bbc38834427296b
remoteproc: Use size_t instead of int for rproc_mem_entry len

Now that rproc_da_to_va uses a size_t for length, use a size_t for len
field of rproc_mem_entry. Function used to create such structures now
takes a size_t instead of int to allow full size range to be handled.

Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Clement Leger <cleger@kalray.eu>
Link: https://lore.kernel.org/r/20200302093902.27849-3-cleger@kalray.eu
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/remoteproc_core.c
drivers/remoteproc/remoteproc_debugfs.c
include/linux/remoteproc.h