linux/drivers/firmware/arm_scmi
Sudeep Holla bf36619a54 firmware: arm_scmi: Fix sparse warnings in OPTEE transport driver
The sparse checker complains about converting pointers between address
spaces.  We correctly stored an __iomem pointer in struct scmi_optee_channel,
but discarded the __iomem when returning it from get_channel_shm, causing one
warning. Then we passed the non-__iomem pointer return from get_channel_shm
at two other places, where an __iomem pointer is expected, causing couple of
other warnings

Add the appropriate __iomem annotations at all places where it is missing.

optee.c:414:20: warning: incorrect type in return expression (different address spaces)
optee.c:414:20:    expected struct scmi_shared_mem *
optee.c:414:20:    got struct scmi_shared_mem [noderef] __iomem *shmem
optee.c:426:26: warning: incorrect type in argument 1 (different address spaces)
optee.c:426:26:    expected struct scmi_shared_mem [noderef] __iomem *shmem
optee.c:426:26:    got struct scmi_shared_mem *shmem
optee.c:441:30: warning: incorrect type in argument 1 (different address spaces)
optee.c:441:30:    expected struct scmi_shared_mem [noderef] __iomem *shmem
optee.c:441:30:    got struct scmi_shared_mem *shmem

Link: https://lore.kernel.org/r/20220404102419.1159705-1-sudeep.holla@arm.com
Cc: Etienne Carriere <etienne.carriere@linaro.org>
Cc: Cristian Marussi <cristian.marussi@arm.com>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
2022-04-04 23:06:37 +01:00
..
base.c firmware: arm_scmi: Fix base agent discover response 2021-11-17 11:24:50 +00:00
bus.c bus: Make remove callback return void 2021-07-21 11:53:42 +02:00
clock.c firmware: arm_scmi: Replace zero-length array with flexible-array member 2022-04-04 23:06:37 +01:00
common.h firmware: arm_scmi: Add new parameter to mark_txdone 2021-12-21 10:59:38 +00:00
driver.c firmware: arm_scmi: Remove clear channel call on the TX channel 2022-04-04 08:25:58 +01:00
Kconfig firmware: arm_scmi: Add atomic mode support to virtio transport 2022-02-21 10:36:48 +00:00
mailbox.c firmware: arm_scmi: Add new parameter to mark_txdone 2021-12-21 10:59:38 +00:00
Makefile firmware: arm_scmi: Disable ftrace for Clang Thumb2 builds 2022-02-08 23:06:40 +00:00
msg.c firmware: arm_scmi: Add message passing abstractions for transports 2021-08-05 10:23:23 +01:00
notify.c firmware: arm_scmi: Fix kernel doc warnings about return values 2021-07-13 11:39:54 +01:00
notify.h firmware: arm_scmi: Remove duplicate declaration of struct scmi_protocol_handle 2021-04-27 11:57:26 +01:00
optee.c firmware: arm_scmi: Fix sparse warnings in OPTEE transport driver 2022-04-04 23:06:37 +01:00
perf.c firmware: arm_scmi: Add protocol modularization support 2021-03-30 16:35:16 +01:00
power.c firmware: arm_scmi: Add protocol modularization support 2021-03-30 16:35:16 +01:00
reset.c firmware: arm_scmi: Add protocol modularization support 2021-03-30 16:35:16 +01:00
scmi_pm_domain.c firmware: arm_scmi: pm: Propagate return value to caller 2021-11-17 11:24:50 +00:00
sensors.c firmware: arm_scmi: Fix type error in sensor protocol 2021-11-17 11:24:50 +00:00
shmem.c firmware: arm_scmi: Rename .clear_notification() transport_ops 2020-04-20 17:25:26 +01:00
smc.c firmware: arm_scmi: Add new parameter to mark_txdone 2021-12-21 10:59:38 +00:00
system.c firmware: arm_scmi: Add protocol modularization support 2021-03-30 16:35:16 +01:00
virtio.c firmware: arm_scmi: Add atomic mode support to virtio transport 2022-02-21 10:36:48 +00:00
voltage.c firmware: arm_scmi: Fix type error assignment in voltage protocol 2021-11-17 11:24:50 +00:00