[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [PATCH] docs: Format (void *) to fix reStructuredText emphasis warnings
- To: Nicola Vetrini <nicola.vetrini@xxxxxxxxxxx>
- From: Bernhard Kaindl <bernhard.kaindl@xxxxxxxxxx>
- Date: Wed, 29 Apr 2026 07:33:57 +0000
- Accept-language: en-GB, en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.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=gd8n0gVGRnwJgk5/jNLaNpWwMkUJDhbZWIsAqyGDX9E=; b=dpw5NyxELGWmBH5ehW1vlLr0EOJsaSEI9AjbJMxqeiWcJgujsQtk4V6ae8YKyAEbHZlay6tr7WOEll3w8DLUZJ8reA4295O/TkgmTn+WYDgerNSNnMe7h6C6kJDQ/LMG6v9IHvFZYlBkqYnF8pIAJn13TVCMWtRXo5usGLEcvrVnVmrvcCmkhg2tKdzGTKDaMOwQm/YgunkaFXFywvZmj8hIy9c9iLn0Lg6FWSJJy0Nk6FPVORS9r2DlwunNXCLLhknmjbOJpeCotsY5Ad1BgR+p+TjX/lmEj4lr/YGQau2TlKPMbkeoWN9joWjTgOWiwZwTCz/IeBvmJR28Z7Yi2w==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=i4vUdG/q5PMZc6lR6SLWMm3JOQ056zM/S8pl2VHl8hMF0B8C/eUILtoeZT+efrT+9T8kVnTTNR07TPneTmiE24Nfg112TsqlboE9oinOjrL4YYjYmmKGjrM1dHYig66MHgSsuJDR04W/AdQOMmxFoNHvVTvnv+NkORbhym9m4i3mj3xJTOPKDdmki9etiqrTusN26OyIsIqoPv7YSg+h/qjk7VkmysNPz7kmq8jzWSjHKxpwVE5opt20DKGtHJ+xuzOh3bRAJqIchAJnLt3m5Mp06p5JJsfLfDPO0K6i8CJ9iZSBFtHNkSRqctzkCkYAwMyC5c86zvRqjM1/7dUMlw==
- Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=selector1 header.d=citrix.com header.i="@citrix.com" header.h="From:Date:Subject:Message-ID:Content-Type:MIME-Version:x-ms-exchange-senderadcheck"
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
- Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Andrew Cooper <andrew.cooper@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, Roger Pau Monne <roger.pau@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>
- Delivery-date: Wed, 29 Apr 2026 07:34:07 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHc1z20FhXjWBnhSUiHAkPe/4C6NrX06uYAgAAAwNA=
- Thread-topic: [PATCH] docs: Format (void *) to fix reStructuredText emphasis warnings
Nicola Vetrini <nicola.vetrini@xxxxxxxxxxx> wrote:
> Reviewed-by: Nicola Vetrini <nicola.vetrini@xxxxxxxxxxx>
Thanks!
>
> See nit below
[...]
>
> There are further instance below which should similarly be rendered with
> a monospaced font, as they are code
>
> e.g.
>
> The conversion from ‘void noreturn (*)(…)’ to ‘void (*)(…)’ is safe
> because the semantics of the ‘noreturn’ attribute
Correct, those would be further TODOs, but they don't cause warnings.
> Perhaps those don't cause warnings, but if we want to visualize this as
> code in a monospaced font, then it probably should be uniformly used in
> the document. We haven't been 100% consistent when writing these
> documents originally; partly due to the fact that different people were
> involved, but this could be an occasion to remedy that.
>
> But perhaps that is best done in a follow-up patch, so feel free to take
> my r-by for this patch.
Yes, they should be follow-ups. I saw this and other further TODOs but think
these are best co-ordinated with you.
There would be a lot that could be done in that way by others (that does not
have to be me) and they are quite simple.
Other reasons why those should be follow-ups are that there is a lot of grey
zones
after that, e.g. a sentence that mentions 'unsigned long' may be formatted as
``unsigned long`` for consistency with ``void noreturn (*)(…)`` (and so on).
Bernhard
PS: All combined, that could make for a very nice, improved document, but that
should ideally be done by someone who cares for the Misra Documents, or at least
in close cooperation, I think, the effort/time spent is merged in the end.
I just submitted small set of improvements for code blocks and formatting
literals
for demonstrating what can be improved in this direction:
https://patchwork.kernel.org/project/xen-devel/list/?series=1087288
|