soc: qcom: smem: Fix incompatible types in comparison
authorChen Jiahao <chenjiahao16@huawei.com>
Tue, 1 Aug 2023 09:48:07 +0000 (17:48 +0800)
committerBjorn Andersson <andersson@kernel.org>
Thu, 3 Aug 2023 15:07:20 +0000 (08:07 -0700)
commit5f908786cf44fcb397cfe0f322ef2f41b0909e2a
tree0af24e3ba28083c33a3106f368d0aebf15f45b25
parent4d6e0a1bf8f7a6b44d20162e29a87d0bd9526bb0
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: 20bb6c9de1b7 ("soc: qcom: smem: map only partitions used by local HOST")
Signed-off-by: Chen Jiahao <chenjiahao16@huawei.com>
Link: https://lore.kernel.org/r/20230801094807.4146779-1-chenjiahao16@huawei.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/soc/qcom/smem.c