[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] docs/misra: fix sphinx-build issues


  • To: Nicola Vetrini <nicola.vetrini@xxxxxxxxxxx>
  • From: Dmytro Prokopchuk1 <dmytro_prokopchuk1@xxxxxxxx>
  • Date: Fri, 15 Aug 2025 07:28:04 +0000
  • Accept-language: en-US, uk-UA, ru-RU
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=0DxiJhF+2MqDibtIQLtfAJPqX4b5UYHrAaicpye+2mQ=; b=XqVM4Iwff5NaI0wlmNyRrOIgTI3TnqAdLyB5P4dlc54dOqv2zn1jNKQKr7dGHF/i/oPNHFQtqasLUtqWNy1HnQuV7UpY9DwfBMvwKitCx/zT1IA6IrAphvDyUEz+uCylg2TVPGX7Swka2ZrPpLWQcFHabzqWSxM+nF6j9a5xk4Ku5gcGqHrlA41qSKP3upc4YF34YHkyzT4htDmekX+tlOY9+f0uJ6N30e0KJR+vJFTAGw/7yWbq1+RYxgH8URs0DR4o8BFcy6HzTgJ67gpLOQyy+UCT+KoPXGviij4nBmKrpZY87UudXop3lLPlY1qWeYJ/HzC2j56PczJ9CrHGxw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=V3zg0zlH4RMm1DzdUxmAeBi+9O1A8yMKzg/H5hk+DNdIACtiBWudQe05qcbun4DdVD+vWQD2kmCmmLmbHq0dtNobC4kLzaJF8bimcsAjaidZOfhgIVPQYYDFKrJdbrQllk4wbAgLNQzT7TruGxP2r0d+XH8Uz39EXklXHQ4trWRJX40ABliXENjDco2wdFtHVliz8cJ8ZRU8zsScktLfTriEJ8eYcwuDvMMajiKaZxCcT6LFBXQaxnXLH2k1PwZm40m4eAKlX4pCvTMtiybgbyNayMJEz2m0jo+JLOGqB2vdPncqhakrsZVZmzptv44BAZZBhqrVkNF1x3Eomv4CWQ==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=epam.com;
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <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:28:22 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHcDbJCdYlsiZdfl0mX5ViIXi0+6LRjS8aAgAAFGoA=
  • Thread-topic: [PATCH] docs/misra: fix sphinx-build issues


On 8/15/25 10:09, Nicola Vetrini wrote:
> 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.
> 
Yes, I see the same warning on my end.
Need to address that in docs/conf.py as well.

Dmytro.
>> ---
>>  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
> 

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.