Skip to contentSkip to conversation

docs/misra/rules.rst: Fix entry for 20.12 rule

PATCH In review Michal Orzel 3 participants 3 messages Mar 1, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docs/misra/rules.rst: Fix entry for 20.12 rule

Commit 4cac80e22600 broke the CI cppcheck jobs by adding an entry for a rule 20.12 with "Severity" and "Summary" fields placed in reverse order. This leads to an error as reported by convert_misra_doc.py:
No summary for rule 20.12

Fixes 4cac80e22600 ("docs/misra/rules.rst: add rule 16.6 and 20.12")

---
Failed pipeline:
https://gitlab.com/xen-project/xen/-/pipelines/1196428827

---
 docs/misra/rules.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
docs/misra/rules.rst +1 -1
index c1853669669d..efea063ab941 100644
@@ -561,10 +561,10 @@ maintainers if you want to suggest a change.
      -
 
    * - `Rule 20.12 <https://gitlab.com/MISRA/MISRA-C/MISRA-C-2012/Example-Suite/-/blob/master/R_20_12.c>`_
+     - Required
      - A macro parameter used as an operand to the # or ## operators,
        which is itself subject to further macro replacement, shall only
        be used as an operand to these operators
-     - Required
      - Variadic macros are allowed to violate the rule.
 
    * - `Rule 20.13 <https://gitlab.com/MISRA/MISRA-C/MISRA-C-2012/Example-Suite/-/blob/master/R_20_13.c>`_
Signature · 1 line
2.25.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · Michal Orzel

Commit 4cac80e22600 broke the CI cppcheck jobs by adding an entry for a rule 20.12 with "Severity" and "Summary" fields placed in reverse order. This leads to an error as reported by convert_misra_doc.py:
No summary for rule 20.12

Quoted 6 lines
Fixes 4cac80e22600 ("docs/misra/rules.rst: add rule 16.6 and 20.12")

---
Failed pipeline:
https://gitlab.com/xen-project/xen/-/pipelines/1196428827
---

#2 lore raw
Quoted 7 lines · Luca Fancellu
Quoted 7 lines · Michal Orzel

Commit 4cac80e22600 broke the CI cppcheck jobs by adding an entry for a rule 20.12 with "Severity" and "Summary" fields placed in reverse order. This leads to an error as reported by convert_misra_doc.py:
No summary for rule 20.12

Quoted 7 lines
Quoted 6 lines
Fixes 4cac80e22600 ("docs/misra/rules.rst: add rule 16.6 and 20.12")

---
Failed pipeline:
https://gitlab.com/xen-project/xen/-/pipelines/1196428827
---

Thanks for the fast turnaround.  Lets hope the next run on staging fairs better.

~Andrew