Partial fix, Wconversion will complain anyway due to the return int.

Signed-off-by: Andrea Bastoni <[email protected]>
---
 hypervisor/arch/arm64/smmu.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/hypervisor/arch/arm64/smmu.c b/hypervisor/arch/arm64/smmu.c
index 41c0ffb4..26d5024a 100644
--- a/hypervisor/arch/arm64/smmu.c
+++ b/hypervisor/arch/arm64/smmu.c
@@ -370,7 +370,8 @@ static int arm_smmu_device_cfg_probe(struct arm_smmu_device 
*smmu)
 static int arm_smmu_find_sme(u16 id, struct arm_smmu_device *smmu)
 {
        struct arm_smmu_smr *smrs = smmu->smrs;
-       int i, free_idx = -EINVAL;
+       int free_idx = -EINVAL;
+       unsigned int i;
 
        /* Stream indexing is blissfully easy */
        if (!smrs)
-- 
2.28.0

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/20201022175826.199614-23-andrea.bastoni%40tum.de.

Reply via email to