]> xenbits.xensource.com Git - people/aperard/xen-unstable.git/commitdiff
xen/arm: tlbflush: fix violations of MISRA C:2012 Rule 3.1
authorNicola Vetrini <nicola.vetrini@bugseng.com>
Thu, 29 Jun 2023 10:06:15 +0000 (12:06 +0200)
committerJulien Grall <jgrall@amazon.com>
Thu, 29 Jun 2023 19:36:14 +0000 (20:36 +0100)
In the files `xen/arch/arm/include/asm/arm(32|64)/flushtlb.h' there are a
few occurrences of nested '//' character sequences inside C-style comment
blocks, which violate Rule 3.1. The patch aims to resolve those by changing
the inner comments to arm asm comments, delimited by ';' instead.

Signed-off-by: Nicola Vetrini <nicola.vetrini@bugseng.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Reviewed-by: Luca Fancellu <luca.fancellu@arm.com>
xen/arch/arm/include/asm/arm32/flushtlb.h
xen/arch/arm/include/asm/arm64/flushtlb.h

index 22ee3b317b4db8394721f9bdeb292bed5cd6b94f..61c25a31899834d8da7d1545956ea6525e4391ff 100644 (file)
@@ -4,10 +4,10 @@
 /*
  * Every invalidation operation use the following patterns:
  *
- * DSB ISHST        // Ensure prior page-tables updates have completed
- * TLBI...          // Invalidate the TLB
- * DSB ISH          // Ensure the TLB invalidation has completed
- * ISB              // See explanation below
+ * DSB ISHST        ; Ensure prior page-tables updates have completed
+ * TLBI...          ; Invalidate the TLB
+ * DSB ISH          ; Ensure the TLB invalidation has completed
+ * ISB              ; See explanation below
  *
  * For Xen page-tables the ISB will discard any instructions fetched
  * from the old mappings.
index 56c6fc763b56afdcdf6a4f617a8664aa6150ee89..45642201d147e2a012d7371448a5dd413d051fe1 100644 (file)
@@ -4,10 +4,10 @@
 /*
  * Every invalidation operation use the following patterns:
  *
- * DSB ISHST        // Ensure prior page-tables updates have completed
- * TLBI...          // Invalidate the TLB
- * DSB ISH          // Ensure the TLB invalidation has completed
- * ISB              // See explanation below
+ * DSB ISHST        ; Ensure prior page-tables updates have completed
+ * TLBI...          ; Invalidate the TLB
+ * DSB ISH          ; Ensure the TLB invalidation has completed
+ * ISB              ; See explanation below
  *
  * ARM64_WORKAROUND_REPEAT_TLBI:
  * Modification of the translation table for a virtual address might lead to