kernel_samsung_a53x/drivers/remoteproc
Arnd Bergmann 801c72475c remoteproc: stm32: use correct format strings on 64-bit
[ Upstream commit 03bd158e1535e68bcd2b1e095b0ebcad7c84bd20 ]

With CONFIG_ARCH_STM32 making it into arch/arm64, a couple of format
strings no longer work, since they rely on size_t being compatible
with %x, or they print an 'int' using %z:

drivers/remoteproc/stm32_rproc.c: In function 'stm32_rproc_mem_alloc':
drivers/remoteproc/stm32_rproc.c:122:22: error: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'size_t' {aka 'long unsigned int'} [-Werror=format=]
drivers/remoteproc/stm32_rproc.c:122:40: note: format string is defined here
  122 |         dev_dbg(dev, "map memory: %pa+%x\n", &mem->dma, mem->len);
      |                                       ~^
      |                                        |
      |                                        unsigned int
      |                                       %lx
drivers/remoteproc/stm32_rproc.c:125:30: error: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'size_t' {aka 'long unsigned int'} [-Werror=format=]
drivers/remoteproc/stm32_rproc.c:125:65: note: format string is defined here
  125 |                 dev_err(dev, "Unable to map memory region: %pa+%x\n",
      |                                                                ~^
      |                                                                 |
      |                                                                 unsigned int
      |                                                                %lx
drivers/remoteproc/stm32_rproc.c: In function 'stm32_rproc_get_loaded_rsc_table':
drivers/remoteproc/stm32_rproc.c:646:30: error: format '%zx' expects argument of type 'size_t', but argument 4 has type 'int' [-Werror=format=]
drivers/remoteproc/stm32_rproc.c:646:66: note: format string is defined here
  646 |                 dev_err(dev, "Unable to map memory region: %pa+%zx\n",
      |                                                                ~~^
      |                                                                  |
      |                                                                  long unsigned int
      |                                                                %x

Fix up all three instances to work across architectures, and enable
compile testing for this driver to ensure it builds everywhere.

Reviewed-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Tested-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Stable-dep-of: 32381bbccba4 ("remoteproc: stm32: Fix incorrect type in assignment for va")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-19 08:44:58 +01:00
..
da8xx_remoteproc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
imx_rproc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ingenic_rproc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig remoteproc: stm32: use correct format strings on 64-bit 2024-11-19 08:44:58 +01:00
keystone_remoteproc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mtk_common.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mtk_scp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mtk_scp_ipi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
omap_remoteproc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
omap_remoteproc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qcom_common.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qcom_common.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qcom_pil_info.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qcom_pil_info.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qcom_q6v5.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qcom_q6v5.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qcom_q6v5_adsp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qcom_q6v5_mss.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qcom_q6v5_pas.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qcom_q6v5_wcss.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qcom_sysmon.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qcom_wcnss.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qcom_wcnss.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qcom_wcnss_iris.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
remoteproc_cdev.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
remoteproc_core.c remoteproc: Add new get_loaded_rsc_table() to rproc_ops 2024-11-19 08:44:58 +01:00
remoteproc_coredump.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
remoteproc_debugfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
remoteproc_elf_helpers.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
remoteproc_elf_loader.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
remoteproc_internal.h remoteproc: Add new get_loaded_rsc_table() to rproc_ops 2024-11-19 08:44:58 +01:00
remoteproc_sysfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
remoteproc_virtio.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
st_remoteproc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
st_slim_rproc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stm32_rproc.c remoteproc: stm32: use correct format strings on 64-bit 2024-11-19 08:44:58 +01:00
ti_k3_dsp_remoteproc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ti_k3_r5_remoteproc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ti_sci_proc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
wkup_m3_rproc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00