aboutsummaryrefslogtreecommitdiff
path: root/lib/test-string_helpers.c
diff options
context:
space:
mode:
authorSudeep Holla <[email protected]>2022-04-04 11:24:19 +0100
committerSudeep Holla <[email protected]>2022-04-04 23:06:37 +0100
commitbf36619a5463fbe6d3ecde37bb13680b532a253b (patch)
treecb3575eec308d29e92a379976ee970c34ff4b9ea /lib/test-string_helpers.c
parentf1ad601d1f4a8f5dac69706d641f3a88beccc488 (diff)
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/[email protected] Cc: Etienne Carriere <[email protected]> Cc: Cristian Marussi <[email protected]> Reported-by: kernel test robot <[email protected]> Signed-off-by: Sudeep Holla <[email protected]>
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions