Skip to content
Commit 5f908786 authored by Chen Jiahao's avatar Chen Jiahao Committed by Bjorn Andersson
Browse files

soc: qcom: smem: Fix incompatible types in comparison



This patch fixes the following sparse error:

drivers/soc/qcom/smem.c:738:30: error: incompatible types in comparison expression (different add        ress spaces):
drivers/soc/qcom/smem.c:738:30:    void *
drivers/soc/qcom/smem.c:738:30:    void [noderef] __iomem *

In addr_in_range(), "base" is of type void __iomem *, converting
void *addr to the same type to fix above sparse error.

Fixes: 20bb6c9d ("soc: qcom: smem: map only partitions used by local HOST")
Signed-off-by: default avatarChen Jiahao <chenjiahao16@huawei.com>
Link: https://lore.kernel.org/r/20230801094807.4146779-1-chenjiahao16@huawei.com


Signed-off-by: default avatarBjorn Andersson <andersson@kernel.org>
parent 4d6e0a1b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment