From: Federico Serafini Date: Wed, 20 Dec 2023 11:03:07 +0000 (+0100) Subject: xen/arm: smmu-v3: address violations of MISRA C:2012 Rule 16.3 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=5a3ace21f3d779b291a2d305824b2820d88de7f1;p=people%2Fandrewcoop%2Fxen.git xen/arm: smmu-v3: address violations of MISRA C:2012 Rule 16.3 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 Acked-by: Julien Grall Reviewed-by: Bertrand Marquis features |= ARM_SMMU_FEAT_STALLS; + break; } if (reg & IDR0_S2P) @@ -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);