Skip to content

Commit

Permalink
xen/arm: smmu-v3: address violations of MISRA C:2012 Rule 16.3
Browse files Browse the repository at this point in the history
Add a break statement at the end of the switch-clauses to address
violations of MISRA C:2012 Rule 16.3 ("An unconditional `break'
statement shall terminate every switch-clause").
No funtional change.

Signed-off-by: Federico Serafini <[email protected]>
Acked-by: Julien Grall <[email protected]>
Reviewed-by: Bertrand Marquis <[email protected]
  • Loading branch information
FedericoSerafini authored and sstabellini committed Jan 5, 2024
1 parent 49818cd commit 5a3ace2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xen/drivers/passthrough/arm/smmu-v3.c
Original file line number Diff line number Diff line change
Expand Up @@ -2200,6 +2200,7 @@ static int arm_smmu_device_hw_probe(struct arm_smmu_device *smmu)
fallthrough;
case IDR0_STALL_MODEL_STALL:
smmu->features |= ARM_SMMU_FEAT_STALLS;
break;
}

if (reg & IDR0_S2P)
Expand Down Expand Up @@ -2301,6 +2302,7 @@ static int arm_smmu_device_hw_probe(struct arm_smmu_device *smmu)
fallthrough;
case IDR5_OAS_48_BIT:
smmu->oas = 48;
break;
}

smmu->oas = min_t(unsigned long, PADDR_BITS, smmu->oas);
Expand Down

0 comments on commit 5a3ace2

Please sign in to comment.