[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] docs/misra/rules.rst: Fix entry for 20.12 rule
- To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Michal Orzel <michal.orzel@xxxxxxx>
- Date: Fri, 1 Mar 2024 09:49:47 +0100
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=9mqY6PXoqHTV48+lmvGVft603ncwA2ceDN0myBvjPAI=; b=K1hIt33QKlLK2PhOaBUD+SRZtaNrJoDr/CsxmmOKBD/jougnHDdVzt8ZC0HuKTGfIsVffer9WyTb2UOeVJexu0oXi0hln1PDzwjZVdDuSYP/2NEDyH/bEw1HV0PNynKD2GIYuR72l8cseH8UBKP9fk3a0pYhORYkpUXD2DQz2OnyESJ+tamA3ammpflsMJZbM2l/sy+w5j6QosHUGOlSmWilojRX2qWOEs2faY26ME7kqGiij5GTp4MJNKXjxR9cVvw/lpuAmzPzT6DuiqVxsPvUogAXcYIafEGeDN18XJbsgMyacc3Dfr/YMf3DR5VY3RVISH/EQj8LZltXnUIipg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QMoLGM6eSxSq0Be+3WYV2TTYH7/lZfSuqSfLi+j3wDd1FsMPMi+K9vlvSttE697Ldsqxy7lqVAfRG9TgN8j5lGYkjwPk57vph+w7AH/iObvbCSgdFPTw+z9LCXJCa3mGTsSPBQosQXrWlTjk5w9c/66ZCNnEs0wDuig1Qj9OjrjB0ioi16xmDuuQXD9Qwa6suJj374Ew9/zvIT8LnKzEFh64tAzvTykho+BkyRA/TNSIDwjeVZ6S48XuFYvsdcERqMNM5ch6eAFuS1PSEPUT1Ky4ZcHOiEH8K6ViztEL1d831HRDMsEVokr9CH8d6zXC3M3TxagzZEqBSIUnd842DQ==
- Cc: Michal Orzel <michal.orzel@xxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, "Jan Beulich" <jbeulich@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, "Stefano Stabellini" <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
- Delivery-date: Fri, 01 Mar 2024 08:50:15 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
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")
Signed-off-by: Michal Orzel <michal.orzel@xxxxxxx>
---
Failed pipeline:
https://gitlab.com/xen-project/xen/-/pipelines/1196428827
---
docs/misra/rules.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/misra/rules.rst b/docs/misra/rules.rst
index c1853669669d..efea063ab941 100644
--- a/docs/misra/rules.rst
+++ b/docs/misra/rules.rst
@@ -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>`_
--
2.25.1
|