soc: qcom: smem: Fix incompatible types in comparison
Subsystems (2)
PATCH 1/1 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.
--- drivers/soc/qcom/smem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/soc/qcom/smem.c +1 -1
@@ -735,7 +735,7 @@ EXPORT_SYMBOL_GPL(qcom_smem_get_free_space);static bool addr_in_range (void __iomem *base,size_t size,void *addr) { -return base && (addr >= base && addr < base + size); +return base && ((void __iomem *)addr >= base && (void __iomem *)addr < base + size); }/**
Signature · 1 line
2.34.1
Quoted 10 lines · Chen Jiahao
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.[...]
Applied, thanks!
[1/1] soc: qcom: smem: Fix incompatible types in comparison
commit: 5f908786cf44fcb397cfe0f322ef2f41b0909e2a
Best regards,
Signature · 1 line
Bjorn Andersson <[email protected]>