remoteproc: remove rproc_elf32_sanity_check
authorClement Leger <cleger@kalray.eu>
Wed, 22 Apr 2020 09:30:17 +0000 (11:30 +0200)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 23 Apr 2020 04:57:26 +0000 (21:57 -0700)
commite29ff72b779426c7fe462ead93c7ad77fe562935
tree7f5308716c7698d36c802346d96970862f499a34
parent305ac5a766b1d0dd8a4052c8c92e5464888eaa10
remoteproc: remove rproc_elf32_sanity_check

Since checks are present in the remoteproc elf loader before calling
da_to_va, loading a elf64 will work on 32bits flavors of kernel.
Indeed, if a segment size is larger than what size_t can hold, the
loader will return an error so the functionality is equivalent to
what exists today.

Acked-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Clement Leger <cleger@kalray.eu>
Link: https://lore.kernel.org/r/20200422093017.10985-1-cleger@kalray.eu
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/remoteproc_core.c
drivers/remoteproc/remoteproc_elf_loader.c
drivers/remoteproc/remoteproc_internal.h
drivers/remoteproc/st_remoteproc.c
drivers/remoteproc/st_slim_rproc.c
drivers/remoteproc/stm32_rproc.c