Skip to contentSkip to conversation

x86: address violations of MISRA C Rule 16.3

PATCH In review Federico Serafini 3 participants 13 messages Nov 6, 2024 – Nov 12, 2024

lore
Share & tools
lore
#0 lore raw

cover x86: address violations of MISRA C Rule 16.3

Define pseudo keyword fallthrough for the x86 emulator, use it and tag the rule as clean.

Federico Serafini (3):
x86/emul: define pseudo keyword fallthrough
x86/emul: use pseudo keyword fallthrough
automation/eclair: tag Rule 16.3 as clean

 automation/eclair_analysis/ECLAIR/tagging.ecl |  3 ++-
 xen/arch/x86/x86_emulate/decode.c             |  6 ++++--
 xen/arch/x86/x86_emulate/x86_emulate.c        |  2 ++
 xen/arch/x86/x86_emulate/x86_emulate.h        | 10 ++++++++++
 4 files changed, 18 insertions(+), 3 deletions(-)
Signature · 1 line
2.43.0
#1 lore raw

PATCH 1/3 x86/emul: define pseudo keyword fallthrough

The pseudo keyword fallthrough shall be used to make explicit the fallthrough intention at the end of a case statement (doing this through comments is deprecated).

---
 xen/arch/x86/x86_emulate/x86_emulate.h | 10 ++++++++++
 1 file changed, 10 insertions(+)
xen/arch/x86/x86_emulate/x86_emulate.h +10 -0
index d75658eba0..f49b1e0dd8 100644
@@ -23,6 +23,16 @@
 # error Unknown compilation width
 #endif
 
+/*
+ * Pseudo keyword 'fallthrough' to make explicit the fallthrough intention at
+ * the end of a case statement.
+ */
+#if (!defined(__clang__) && (__GNUC__ >= 7))
+# define fallthrough        __attribute__((__fallthrough__))
+#else
+# define fallthrough        do {} while (0)  /* fallthrough */
+#endif
+
 struct x86_emulate_ctxt;
 
 /*
Signature · 1 line
2.43.0
#2 lore raw

Re: [XEN PATCH 1/3] x86/emul: define pseudo keyword fallthrough

Quoted 8 lines · Federico Serafini

The pseudo keyword fallthrough shall be used to make explicit the fallthrough intention at the end of a case statement (doing this through comments is deprecated).

---
 xen/arch/x86/x86_emulate/x86_emulate.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

When you had asked my privately on Matrix, I specifically said: "Adding the pseudo-keyword to x86-emulate.h (not x86_emulate.h) is probably best, unless problems with that approach turn up." Even if identical re- definitions are deemed fine, I for one consider such bad practice. Yet by playing with this file (and outside of any relevant #ifdef) means there will be such a re-definition when building Xen itself.

In fact the patch subject should also already clarify that the auxiliary definition is only needed for the test and fuzzing harnesses.

xen/arch/x86/x86_emulate/x86_emulate.h line 30

Quoted 11 lines
xen/arch/x86/x86_emulate/x86_emulate.h +5 -0
@@ -23,6 +23,16 @@
 # error Unknown compilation width
 #endif
 
+/*
+ * Pseudo keyword 'fallthrough' to make explicit the fallthrough intention at
+ * the end of a case statement.
+ */
+#if (!defined(__clang__) && (__GNUC__ >= 7))

I realize xen/compiler.h has it like that, but may I ask that you omit the meaningless outer pair of parentheses?

Jan

#3 lore raw

Re: [XEN PATCH 1/3] x86/emul: define pseudo keyword fallthrough

Quoted 17 lines · Jan Beulich
Quoted 8 lines · Federico Serafini

The pseudo keyword fallthrough shall be used to make explicit the fallthrough intention at the end of a case statement (doing this through comments is deprecated).

---
 xen/arch/x86/x86_emulate/x86_emulate.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

When you had asked my privately on Matrix, I specifically said: "Adding the pseudo-keyword to x86-emulate.h (not x86_emulate.h) is probably best, unless problems with that approach turn up." Even if identical re- definitions are deemed fine, I for one consider such bad practice. Yet by playing with this file (and outside of any relevant #ifdef) means there will be such a re-definition when building Xen itself.

Quoted 2 lines

In fact the patch subject should also already clarify that the auxiliary definition is only needed for the test and fuzzing harnesses.

Hi Jan, I don't understand this comment.

You say "playing with this file (and outside of any relevant #ifdef)" but actually the changes are within the #ifndef __X86_EMULATE_H__/#endif. What do you mean?

You say "Adding the pseudo-keyword to x86-emulate.h (not x86_emulate.h) is probably best". I am not very familiar with x86-isms but the only x86-emulate.h I can find is ./tools/tests/x86_emulator/x86-emulate.h which is not a header that would help define anything for the Xen build?

I am not understanding your suggestions. From what I can see this patch looks OK?

Quoted 17 lines

xen/arch/x86/x86_emulate/x86_emulate.h line 30

Quoted 11 lines
xen/arch/x86/x86_emulate/x86_emulate.h +5 -0
@@ -23,6 +23,16 @@
 # error Unknown compilation width
 #endif
 
+/*
+ * Pseudo keyword 'fallthrough' to make explicit the fallthrough intention at
+ * the end of a case statement.
+ */
+#if (!defined(__clang__) && (__GNUC__ >= 7))

I realize xen/compiler.h has it like that, but may I ask that you omit the meaningless outer pair of parentheses?

Jan

#4 lore raw

Re: [XEN PATCH 1/3] x86/emul: define pseudo keyword fallthrough

Quoted 18 lines · Stefano Stabellini
Quoted 17 lines · Jan Beulich
Quoted 8 lines · Federico Serafini

The pseudo keyword fallthrough shall be used to make explicit the fallthrough intention at the end of a case statement (doing this through comments is deprecated).

---
 xen/arch/x86/x86_emulate/x86_emulate.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

When you had asked my privately on Matrix, I specifically said: "Adding the pseudo-keyword to x86-emulate.h (not x86_emulate.h) is probably best, unless problems with that approach turn up." Even if identical re- definitions are deemed fine, I for one consider such bad practice. Yet by playing with this file (and outside of any relevant #ifdef) means there will be such a re-definition when building Xen itself.

Quoted 8 lines
Quoted 2 lines

In fact the patch subject should also already clarify that the auxiliary definition is only needed for the test and fuzzing harnesses.

Hi Jan, I don't understand this comment.

You say "playing with this file (and outside of any relevant #ifdef)" but actually the changes are within the #ifndef __X86_EMULATE_H__/#endif. What do you mean?

"relevant" was specifically to exclude the guard #ifdef. And the remark was to avoid the #define to merely be moved into or framed by an "#ifndef __XEN__".

Quoted 4 lines

You say "Adding the pseudo-keyword to x86-emulate.h (not x86_emulate.h) is probably best". I am not very familiar with x86-isms but the only x86-emulate.h I can find is ./tools/tests/x86_emulator/x86-emulate.h which is not a header that would help define anything for the Xen build?

But that's the whole point: We _have_ "fallthrough" as a pseudo-keyword already for the Xen build. For it to be usable in the emulator files, it particularly needs to be made available for the test and fuzzing harnesses. And that without interfering with what the Xen build has. Hence why it wants to go into precisely that file, where all other build compatibility definitions also live.

Quoted 2 lines

I am not understanding your suggestions. From what I can see this patch looks OK?

No, it is - first and foremost - the wrong file that is being touched.

Jan

#5 lore raw

Re: [XEN PATCH 1/3] x86/emul: define pseudo keyword fallthrough

Quoted 37 lines · Jan Beulich
Quoted 18 lines · Stefano Stabellini
Quoted 17 lines · Jan Beulich
Quoted 8 lines · Federico Serafini

The pseudo keyword fallthrough shall be used to make explicit the fallthrough intention at the end of a case statement (doing this through comments is deprecated).

---
 xen/arch/x86/x86_emulate/x86_emulate.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

When you had asked my privately on Matrix, I specifically said: "Adding the pseudo-keyword to x86-emulate.h (not x86_emulate.h) is probably best, unless problems with that approach turn up." Even if identical re- definitions are deemed fine, I for one consider such bad practice. Yet by playing with this file (and outside of any relevant #ifdef) means there will be such a re-definition when building Xen itself.

Quoted 8 lines
Quoted 2 lines

In fact the patch subject should also already clarify that the auxiliary definition is only needed for the test and fuzzing harnesses.

Hi Jan, I don't understand this comment.

You say "playing with this file (and outside of any relevant #ifdef)" but actually the changes are within the #ifndef __X86_EMULATE_H__/#endif. What do you mean?

"relevant" was specifically to exclude the guard #ifdef. And the remark was to avoid the #define to merely be moved into or framed by an "#ifndef __XEN__".

Quoted 4 lines

You say "Adding the pseudo-keyword to x86-emulate.h (not x86_emulate.h) is probably best". I am not very familiar with x86-isms but the only x86-emulate.h I can find is ./tools/tests/x86_emulator/x86-emulate.h which is not a header that would help define anything for the Xen build?

Quoted 6 lines

But that's the whole point: We _have_ "fallthrough" as a pseudo-keyword already for the Xen build. For it to be usable in the emulator files, it particularly needs to be made available for the test and fuzzing harnesses. And that without interfering with what the Xen build has. Hence why it wants to go into precisely that file, where all other build compatibility definitions also live.

OK. So if I get this right, we need the below instead of patch #1 in this series?

tools/tests/x86_emulator/x86-emulate.h +10 -0
index 00abc829b0..380eb8abff 100644
@@ -233,4 +233,14 @@ void emul_test_put_fpu(
     enum x86_emulate_fpu_type backout,
     const struct x86_emul_fpu_aux *aux);
 
+/*
+ * Pseudo keyword 'fallthrough' to make explicit the fallthrough intention at
+ * the end of a case statement.
+ */
+#if (!defined(__clang__) && (__GNUC__ >= 7))
+# define fallthrough        __attribute__((__fallthrough__))
+#else
+# define fallthrough        do {} while (0)  /* fallthrough */
+#endif
+
 #endif /* X86_EMULATE_H */
#6 lore raw

Re: [XEN PATCH 1/3] x86/emul: define pseudo keyword fallthrough

Quoted 45 lines · Stefano Stabellini
Quoted 37 lines · Jan Beulich
Quoted 18 lines · Stefano Stabellini
Quoted 17 lines · Jan Beulich
Quoted 8 lines · Federico Serafini

The pseudo keyword fallthrough shall be used to make explicit the fallthrough intention at the end of a case statement (doing this through comments is deprecated).

---
 xen/arch/x86/x86_emulate/x86_emulate.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

When you had asked my privately on Matrix, I specifically said: "Adding the pseudo-keyword to x86-emulate.h (not x86_emulate.h) is probably best, unless problems with that approach turn up." Even if identical re- definitions are deemed fine, I for one consider such bad practice. Yet by playing with this file (and outside of any relevant #ifdef) means there will be such a re-definition when building Xen itself.

Quoted 8 lines
Quoted 2 lines

In fact the patch subject should also already clarify that the auxiliary definition is only needed for the test and fuzzing harnesses.

Hi Jan, I don't understand this comment.

You say "playing with this file (and outside of any relevant #ifdef)" but actually the changes are within the #ifndef __X86_EMULATE_H__/#endif. What do you mean?

"relevant" was specifically to exclude the guard #ifdef. And the remark was to avoid the #define to merely be moved into or framed by an "#ifndef __XEN__".

Quoted 4 lines

You say "Adding the pseudo-keyword to x86-emulate.h (not x86_emulate.h) is probably best". I am not very familiar with x86-isms but the only x86-emulate.h I can find is ./tools/tests/x86_emulator/x86-emulate.h which is not a header that would help define anything for the Xen build?

Quoted 6 lines

But that's the whole point: We _have_ "fallthrough" as a pseudo-keyword already for the Xen build. For it to be usable in the emulator files, it particularly needs to be made available for the test and fuzzing harnesses. And that without interfering with what the Xen build has. Hence why it wants to go into precisely that file, where all other build compatibility definitions also live.

Quoted 2 lines

OK. So if I get this right, we need the below instead of patch #1 in this series?

Yes, just with the addition not at the bottom of the file, but where the other compatibility definitions are. Also (nit) perhaps "statement block", matching terminology in xen/compiler.h.

Jan

Quoted 17 lines
tools/tests/x86_emulator/x86-emulate.h +10 -0
@@ -233,4 +233,14 @@ void emul_test_put_fpu(
     enum x86_emulate_fpu_type backout,
     const struct x86_emul_fpu_aux *aux);
 
+/*
+ * Pseudo keyword 'fallthrough' to make explicit the fallthrough intention at
+ * the end of a case statement.
+ */
+#if (!defined(__clang__) && (__GNUC__ >= 7))
+# define fallthrough        __attribute__((__fallthrough__))
+#else
+# define fallthrough        do {} while (0)  /* fallthrough */
+#endif
+
 #endif /* X86_EMULATE_H */
#7 lore raw

Re: [XEN PATCH 1/3] x86/emul: define pseudo keyword fallthrough

In reply to Jan Beulich
Quoted 10 lines · Jan Beulich
Quoted 8 lines · Federico Serafini

The pseudo keyword fallthrough shall be used to make explicit the fallthrough intention at the end of a case statement (doing this through comments is deprecated).

---
  xen/arch/x86/x86_emulate/x86_emulate.h | 10 ++++++++++
  1 file changed, 10 insertions(+)
Quoted 6 lines

When you had asked my privately on Matrix, I specifically said: "Adding the pseudo-keyword to x86-emulate.h (not x86_emulate.h) is probably best, unless problems with that approach turn up." Even if identical re- definitions are deemed fine, I for one consider such bad practice. Yet by playing with this file (and outside of any relevant #ifdef) means there will be such a re-definition when building Xen itself.

Sorry Jan, I misinterpreted your message.
I tested the definition in the x86-emulate.h and there are no problems. I will send a V2.

Quoted 2 lines

In fact the patch subject should also already clarify that the auxiliary definition is only needed for the test and fuzzing harnesses.

Ok.

Quoted 6 lines
Quoted 6 lines
xen/arch/x86/x86_emulate/x86_emulate.h +0 -0
@@ -23,6 +23,16 @@
  # error Unknown compilation width
  #endif
 
Quoted 8 lines

xen/arch/x86/x86_emulate/x86_emulate.h line 30

Quoted 5 lines
xen/arch/x86/x86_emulate/x86_emulate.h +5 -0
+/*
+ * Pseudo keyword 'fallthrough' to make explicit the fallthrough intention at
+ * the end of a case statement.
+ */
+#if (!defined(__clang__) && (__GNUC__ >= 7))

I realize xen/compiler.h has it like that, but may I ask that you omit the meaningless outer pair of parentheses?

Ok.

Signature · 4 lines
Federico Serafini, M.Sc.

Software Engineer, BUGSENG
Ph.D. Student, Ca' Foscari University of Venice
#8 lore raw

PATCH 2/3 x86/emul: use pseudo keyword fallthrough

In reply to Federico Serafini

Make explicit the fallthrough intetion by adding the pseudo keyword where missing and refactor comments not following the agreed syntax.

This satisfies the requirements to deviate violations of MISRA C:2012 Rule 16.3 "An unconditional break statement shall terminate every switch-clause".

No functional change.

---
 xen/arch/x86/x86_emulate/decode.c      | 6 ++++--
 xen/arch/x86/x86_emulate/x86_emulate.c | 2 ++
 2 files changed, 6 insertions(+), 2 deletions(-)
xen/arch/x86/x86_emulate/decode.c +4 -2
index 32b9276dc5..0a0751f2ed 100644
@@ -1356,7 +1356,8 @@ int x86emul_decode(struct x86_emulate_state *s,
                         --disp8scale;
                     break;
                 }
-                /* vcvt{,t}s{s,d}2usi need special casing: fall through */
+                /* vcvt{,t}s{s,d}2usi need special casing. */
+                fallthrough;
             case 0x2c: /* vcvtts{s,d}2si need special casing */
             case 0x2d: /* vcvts{s,d}2si need special casing */
                 if ( evex_encoded() )
@@ -1530,7 +1531,8 @@ int x86emul_decode(struct x86_emulate_state *s,
                         disp8scale -= 1 + (s->evex.pfx == vex_66);
                     break;
                 }
-                /* vcvt{,t}sh2usi needs special casing: fall through */
+                /* vcvt{,t}sh2usi needs special casing. */
+                fallthrough;
             case 0x2c: case 0x2d: /* vcvt{,t}sh2si need special casing */
                 disp8scale = 1;
                 break;
xen/arch/x86/x86_emulate/x86_emulate.c +2 -0
index 30674ec301..c38984b201 100644
@@ -1460,6 +1460,7 @@ x86_emulate(
 
         d = (d & ~DstMask) | DstMem;
         /* Becomes a normal DstMem operation from here on. */
+        fallthrough;
     case DstMem:
         generate_exception_if(ea.type == OP_MEM && evex.z, X86_EXC_UD);
         if ( state->simd_size != simd_none )
@@ -1942,6 +1943,7 @@ x86_emulate(
             break;
         }
         generate_exception_if((modrm_reg & 7) != 0, X86_EXC_UD);
+        fallthrough;
     case 0x88 ... 0x8b: /* mov */
     case 0xa0 ... 0xa1: /* mov mem.offs,{%al,%ax,%eax,%rax} */
     case 0xa2 ... 0xa3: /* mov {%al,%ax,%eax,%rax},mem.offs */
Signature · 1 line
2.43.0
#9 lore raw

Re: [XEN PATCH 2/3] x86/emul: use pseudo keyword fallthrough

Quoted 10 lines · Federico Serafini

Make explicit the fallthrough intetion by adding the pseudo keyword where missing and refactor comments not following the agreed syntax.

This satisfies the requirements to deviate violations of MISRA C:2012 Rule 16.3 "An unconditional break statement shall terminate every switch-clause".

No functional change.

We can certainly take this as is, as a tiny first step. Personally I'm not overly happy though to see a mix of comment- and pseudo-keyword- style annotations in individual files. After all going forward we'll want to use the latter, now that this becomes possible. Yet for that I view it a more than just helpful if bad precedents didn't exist anymore. Being the one to touch the emulator files most, I can say that here more than perhaps anywhere else new code is very often added by copy-and-paste-then-edit.

Therefore question in particular to the other x86 maintainers: Won't we be better off if we fully convert to pseudo-keyword-style right away?

Jan

Quoted 40 lines
xen/arch/x86/x86_emulate/decode.c +4 -2
@@ -1356,7 +1356,8 @@ int x86emul_decode(struct x86_emulate_state *s,
                         --disp8scale;
                     break;
                 }
-                /* vcvt{,t}s{s,d}2usi need special casing: fall through */
+                /* vcvt{,t}s{s,d}2usi need special casing. */
+                fallthrough;
             case 0x2c: /* vcvtts{s,d}2si need special casing */
             case 0x2d: /* vcvts{s,d}2si need special casing */
                 if ( evex_encoded() )
@@ -1530,7 +1531,8 @@ int x86emul_decode(struct x86_emulate_state *s,
                         disp8scale -= 1 + (s->evex.pfx == vex_66);
                     break;
                 }
-                /* vcvt{,t}sh2usi needs special casing: fall through */
+                /* vcvt{,t}sh2usi needs special casing. */
+                fallthrough;
             case 0x2c: case 0x2d: /* vcvt{,t}sh2si need special casing */
                 disp8scale = 1;
                 break;
xen/arch/x86/x86_emulate/x86_emulate.c +2 -0
@@ -1460,6 +1460,7 @@ x86_emulate(
 
         d = (d & ~DstMask) | DstMem;
         /* Becomes a normal DstMem operation from here on. */
+        fallthrough;
     case DstMem:
         generate_exception_if(ea.type == OP_MEM && evex.z, X86_EXC_UD);
         if ( state->simd_size != simd_none )
@@ -1942,6 +1943,7 @@ x86_emulate(
             break;
         }
         generate_exception_if((modrm_reg & 7) != 0, X86_EXC_UD);
+        fallthrough;
     case 0x88 ... 0x8b: /* mov */
     case 0xa0 ... 0xa1: /* mov mem.offs,{%al,%ax,%eax,%rax} */
     case 0xa2 ... 0xa3: /* mov {%al,%ax,%eax,%rax},mem.offs */
Reviewed-by on v1 2/3
#10 lore raw

Re: [XEN PATCH 2/3] x86/emul: use pseudo keyword fallthrough

In reply to Federico Serafini
Quoted 10 lines · Federico Serafini

Make explicit the fallthrough intetion by adding the pseudo keyword where missing and refactor comments not following the agreed syntax.

This satisfies the requirements to deviate violations of MISRA C:2012 Rule 16.3 "An unconditional break statement shall terminate every switch-clause".

No functional change.

Quoted 52 lines
---
 xen/arch/x86/x86_emulate/decode.c      | 6 ++++--
 xen/arch/x86/x86_emulate/x86_emulate.c | 2 ++
 2 files changed, 6 insertions(+), 2 deletions(-)
xen/arch/x86/x86_emulate/decode.c +4 -2
index 32b9276dc5..0a0751f2ed 100644
@@ -1356,7 +1356,8 @@ int x86emul_decode(struct x86_emulate_state *s,
                         --disp8scale;
                     break;
                 }
-                /* vcvt{,t}s{s,d}2usi need special casing: fall through */
+                /* vcvt{,t}s{s,d}2usi need special casing. */
+                fallthrough;
             case 0x2c: /* vcvtts{s,d}2si need special casing */
             case 0x2d: /* vcvts{s,d}2si need special casing */
                 if ( evex_encoded() )
@@ -1530,7 +1531,8 @@ int x86emul_decode(struct x86_emulate_state *s,
                         disp8scale -= 1 + (s->evex.pfx == vex_66);
                     break;
                 }
-                /* vcvt{,t}sh2usi needs special casing: fall through */
+                /* vcvt{,t}sh2usi needs special casing. */
+                fallthrough;
             case 0x2c: case 0x2d: /* vcvt{,t}sh2si need special casing */
                 disp8scale = 1;
                 break;
xen/arch/x86/x86_emulate/x86_emulate.c +2 -0
index 30674ec301..c38984b201 100644
@@ -1460,6 +1460,7 @@ x86_emulate(
 
         d = (d & ~DstMask) | DstMem;
         /* Becomes a normal DstMem operation from here on. */
+        fallthrough;
     case DstMem:
         generate_exception_if(ea.type == OP_MEM && evex.z, X86_EXC_UD);
         if ( state->simd_size != simd_none )
@@ -1942,6 +1943,7 @@ x86_emulate(
             break;
         }
         generate_exception_if((modrm_reg & 7) != 0, X86_EXC_UD);
+        fallthrough;
     case 0x88 ... 0x8b: /* mov */
     case 0xa0 ... 0xa1: /* mov mem.offs,{%al,%ax,%eax,%rax} */
     case 0xa2 ... 0xa3: /* mov {%al,%ax,%eax,%rax},mem.offs */
Signature · 1 line
2.43.0
#11 lore raw

PATCH 3/3 automation/eclair: tag Rule 16.3 as clean

In reply to Federico Serafini

Tag MISRA C:2012 Rule 16.3 as clean for both architectures:
new violations will cause a failure of the CI/CD pipeline.

---
 automation/eclair_analysis/ECLAIR/tagging.ecl | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
automation/eclair_analysis/ECLAIR/tagging.ecl +2 -1
index e1d4ed012a..cb7d5743d2 100644
@@ -64,6 +64,7 @@ MC3R1.R14.1||
 MC3R1.R14.3||
 MC3R1.R14.4||
 MC3R1.R16.2||
+MC3R1.R16.3||
 MC3R1.R16.7||
 MC3R1.R17.1||
 MC3R1.R17.3||
@@ -112,7 +113,7 @@ if(string_equal(target,"x86_64"),
 )
 
 if(string_equal(target,"arm64"),
-    service_selector({"additional_clean_guidelines","MC3R1.R2.1||MC3R1.R5.3||MC3.R11.2||MC3R1.R16.3||MC3R1.R16.6||MC3R1.R20.7"})
+    service_selector({"additional_clean_guidelines","MC3R1.R2.1||MC3R1.R5.3||MC3.R11.2||MC3R1.R16.6||MC3R1.R20.7"})
 )
 
 -reports+={clean:added,"service(clean_guidelines_common||additional_clean_guidelines)"}
Signature · 1 line
2.43.0
Acked-by on v1 3/3
#12 lore raw

Re: [XEN PATCH 3/3] automation/eclair: tag Rule 16.3 as clean

Quoted 4 lines · Federico Serafini

Tag MISRA C:2012 Rule 16.3 as clean for both architectures:
new violations will cause a failure of the CI/CD pipeline.

Pending the first 2 patches being acked:

Quoted 28 lines
---
 automation/eclair_analysis/ECLAIR/tagging.ecl | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
automation/eclair_analysis/ECLAIR/tagging.ecl +2 -1
index e1d4ed012a..cb7d5743d2 100644
@@ -64,6 +64,7 @@ MC3R1.R14.1||
 MC3R1.R14.3||
 MC3R1.R14.4||
 MC3R1.R16.2||
+MC3R1.R16.3||
 MC3R1.R16.7||
 MC3R1.R17.1||
 MC3R1.R17.3||
@@ -112,7 +113,7 @@ if(string_equal(target,"x86_64"),
 )
 
 if(string_equal(target,"arm64"),
-    service_selector({"additional_clean_guidelines","MC3R1.R2.1||MC3R1.R5.3||MC3.R11.2||MC3R1.R16.3||MC3R1.R16.6||MC3R1.R20.7"})
+    service_selector({"additional_clean_guidelines","MC3R1.R2.1||MC3R1.R5.3||MC3.R11.2||MC3R1.R16.6||MC3R1.R20.7"})
 )
 
 -reports+={clean:added,"service(clean_guidelines_common||additional_clean_guidelines)"}
Signature · 1 line
2.43.0