Signed-off-by: Andrea Bastoni <[email protected]>
---
hypervisor/arch/arm64/smmu-v3.c | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/hypervisor/arch/arm64/smmu-v3.c b/hypervisor/arch/arm64/smmu-v3.c
index 5f75e862..4551c512 100644
--- a/hypervisor/arch/arm64/smmu-v3.c
+++ b/hypervisor/arch/arm64/smmu-v3.c
@@ -405,7 +405,7 @@ static void queue_inc_prod(struct arm_smmu_queue *q)
static void queue_write(u64 *dst, u64 *src, u32 n_dwords)
{
- int i;
+ u32 i;
for (i = 0; i < n_dwords; ++i)
*dst++ = *src++;
@@ -1045,7 +1045,8 @@ static int arm_smmuv3_cell_init(struct cell *cell)
struct arm_smmu_device *smmu = &smmu_devices[0];
struct jailhouse_iommu *iommu;
struct arm_smmu_cmdq_ent cmd;
- int ret, i, j, sid;
+ int ret, sid;
+ unsigned int i, j;
if (!iommu_count_units())
return 0;
@@ -1075,7 +1076,8 @@ static void arm_smmuv3_cell_exit(struct cell *cell)
struct arm_smmu_device *smmu = &smmu_devices[0];
struct jailhouse_iommu *iommu;
struct arm_smmu_cmdq_ent cmd;
- int i, j, sid;
+ int sid;
+ unsigned int i, j;
if (!iommu_count_units())
return;
@@ -1100,7 +1102,8 @@ static int arm_smmuv3_init(void)
{
struct arm_smmu_device *smmu = &smmu_devices[0];
struct jailhouse_iommu *iommu;
- int ret, i;
+ int ret;
+ unsigned int i;
iommu = &system_config->platform_info.iommu_units[0];
for (i = 0; i < iommu_count_units(); iommu++, smmu++, i++) {
--
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/20201028210933.138379-13-andrea.bastoni%40tum.de.