[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] docs/misra: fix sphinx-build issues
- To: Dmytro Prokopchuk1 <dmytro_prokopchuk1@xxxxxxxx>
- From: Nicola Vetrini <nicola.vetrini@xxxxxxxxxxx>
- Date: Fri, 15 Aug 2025 09:09:47 +0200
- Arc-authentication-results: i=1; bugseng.com; arc=none smtp.remote-ip=162.55.131.47
- Arc-message-signature: i=1; d=bugseng.com; s=openarc; a=rsa-sha256; c=relaxed/relaxed; t=1755241788; h=DKIM-Signature:MIME-Version:Date:From:To:Cc:Subject:In-Reply-To: References:Message-ID:X-Sender:Organization:Content-Type: Content-Transfer-Encoding; bh=KFiRFFK7OFgSMVoQTACXyR8v6u0l5skmrJA/2+R6tUo=; b=hPoiQZtspB6O70lvz9BzaMLYnYHeg0kSyR1QXs1yymbf63FkkvMlGmP6eznkYezyDZNr T+FtKkzgPhfOyPzCHTHI5WrRAHDWVmeqNz73koQTbvEjcEc71FaoVLVEfNrlmDWzJZ6fV 9z8r0rAFy213TPbE+zU2HVdODNEEnZyUaiW2Cf5bBuI6xUlxrZC3wgFeRi+Xb9KH74gNl Ym6PqvubRSkXtxLCJUAfoGkMJSeXt2KjLTxpTS4QgLAVONTi7qsiSQajRe2n9Z5qCq0Ju xy7TXfYQODAZBwBKjHn6hmTC5en+H2cLr5vNGgRBg3IJDyCKdOSsRer7uUgldrf53YuL/ jBbCENZGSuC8qDosV6Ox8akeM4NlESUQHlNO2Co0D6pJpuyTVrza54CT2Do7nf8aqoj4F GfUDQ+6CETy1oCsnrDKa134WA/sNICZKllUitpe2FA2geikPxLRW0P89uH4ebLylPgzbi 2+OMBN+PeNMFUauPSju9j5z9C2qiB/4MARoGKweNm6FHjQsV8TsbuKvrJvIoGCFBc1pfO RWmYfqtBdmoU5C2XcLai0qR8ucO9bqN20+x8Y2Dljh+oCCehqsGKXPT7maZy3Hoi+NWvc nrmhm2oIDB+8PNLUw5xNvYMYTWN+FU5QlYGHAqRZxVIXNKHACoS9/vua8mTJ3ZI=
- Arc-seal: i=1; d=bugseng.com; s=openarc; a=rsa-sha256; cv=none; t=1755241788; b=idRZ+J/Ymvkbav0qXAOUvaNWsUx2sHuBUz57PGFgcMp71uleFyVveQWS0+M5yFSMWBoF ztkniDOkAP+9mGdjLz5QyyBaDFr0oXupOmVj2qDvArYc1eJ3ffz6/N4+6LrSvVEQjgteO r2rqp0+LhshcAZQ+S8z66oUpZRb5hQ1WlrraJ/gUhCGFQnL9sxfEzz88p+QwAilJbxXkZ Ysajn8O3AHpl64yIZNkz5lEaye4L+XgOgCKhEPvwW6i9KV9+VZfFgxUezgNq/W+jdHl0v jJl/JpF0sxFHB5Sw/Plm61ZJ06h4Q+sE7mOlhLRI6Do2Nj403Wbrstzc1A5mgONXVidZd v0vxXcPFqR/VvIGy7xuC6q2ptswv+V+gQzDE+o9BacUr3Xpzk4+PcKmOGoDtbdX5RGfnk eAz0UWao1A+3+734ksMDN5gCnj3Re4uc9Esbctw+V7Mr0i4vzSMltwH2r1+ApBPWRnDC+ 1NNwprzumSDq9sU0O4610ImMced/aIpomOrt1Yby6sya4ml+IT6nKljYzd0PIfItLZXx6 DNsIkyhX5PTGeMQmn07zzTgPYwrNKu+qe01eIeSK5ugdiQ1SZkJ91hjRGXU9/orexI/CQ bWHSjD2SG2dsgniIABvgZm7eLWVxYnNEvmixg7p1vVAi7i51DdbBu/UDkC4UHNg=
- Authentication-results: bugseng.com; arc=none smtp.remote-ip=162.55.131.47
- Cc: xen-devel@xxxxxxxxxxxxxxxxxxxx, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>
- Delivery-date: Fri, 15 Aug 2025 07:10:06 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 2025-08-15 09:00, Dmytro Prokopchuk1 wrote:
Fix the following issues:
1. xen/docs/misra/deviations.rst:90: WARNING: Inline interpreted text
or
phrase reference start-string without end-string. [docutils]
2. xen/docs/misra/deviations.rst:54: ERROR: Error parsing content block
for the "list-table" directive: uniform two-level bullet list expected,
but row 6 does not contain the same number of items as row 1 (2 vs 3).
* - R2.1
- Calls to the `__builtin_unreachable()` function inside the
expansion of
the `ASSERT_UNREACHABLE()` macro may cause a function to be marked
as
non-returning. This behavior occurs only in configurations where
assertions are enabled. To address this, the `noreturn` property
for
`__builtin_unreachable()` is overridden in these contexts,
resulting in
the absence of reports that do not have an impact on safety,
despite
being true positives.
Xen expects developers to ensure code remains safe and reliable in
builds,
even when debug-only assertions like `ASSERT_UNREACHABLE() are
removed.
3. xen/docs/misra/rules.rst:127: WARNING: Inline interpreted text or
phrase
reference start-string without end-string. [docutils]
Signed-off-by: Dmytro Prokopchuk <dmytro_prokopchuk1@xxxxxxxx>
Reviewed-by: Nicola Vetrini <nicola.vetrini@xxxxxxxxxxx>
I recall that Andrew wanted to add a doc build test to avoid introducing
warnings. On that front, with my Sphinx version I also see this build
warning:
Running Sphinx v8.1.3
WARNING: Calling get_html_theme_path is deprecated. If you are calling
it to define html_theme_path, you are safe to remove that code.
---
docs/misra/deviations.rst | 3 ++-
docs/misra/rules.rst | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/docs/misra/deviations.rst b/docs/misra/deviations.rst
index 3c46a1e47a..2be49076e1 100644
--- a/docs/misra/deviations.rst
+++ b/docs/misra/deviations.rst
@@ -95,7 +95,8 @@ Deviations related to MISRA C:2012 Rules:
the absence of reports that do not have an impact on safety,
despite
being true positives.
Xen expects developers to ensure code remains safe and reliable
in builds,
- even when debug-only assertions like `ASSERT_UNREACHABLE() are
removed.
+ even when debug-only assertions like `ASSERT_UNREACHABLE()` are
removed.
+ - ECLAIR has been configured to ignore those statements.
* - R2.2
- Proving compliance with respect to Rule 2.2 is generally
impossible:
diff --git a/docs/misra/rules.rst b/docs/misra/rules.rst
index 6812eb7e8a..382331447e 100644
--- a/docs/misra/rules.rst
+++ b/docs/misra/rules.rst
@@ -124,7 +124,7 @@ maintainers if you want to suggest a change.
they are used to generate definitions for asm modules
- Declarations without initializer are safe, as they are not
executed
- - Functions that are no-return due to calls to the
`ASSERT_UNREACHABLE()'
+ - Functions that are no-return due to calls to the
'ASSERT_UNREACHABLE()'
macro in debug build configurations are not considered
violations::
static inline bool
--
Nicola Vetrini, B.Sc.
Software Engineer
BUGSENG (https://bugseng.com)
LinkedIn: https://www.linkedin.com/in/nicola-vetrini-a42471253
|