Re: [PATCH] Documentation: exception-tables.rst: fix bracket

From: Jonathan Corbet

Date: Thu Nov 12 2026 - 11:40:56 EST


Manuel Ebner <manuelebnerli@xxxxxxxxxxx> writes:

> Remove needless pair of brackets.
>
> Signed-off-by: Manuel Ebner <manuelebnerli@xxxxxxxxxxx>
> ---
> Documentation/arch/x86/exception-tables.rst | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/arch/x86/exception-tables.rst b/Documentation/arch/x86/exception-tables.rst
> index 6e7177363f..de776bfdd1 100644
> --- a/Documentation/arch/x86/exception-tables.rst
> +++ b/Documentation/arch/x86/exception-tables.rst
> @@ -72,9 +72,9 @@ The preprocessor output (edited to become somewhat readable)::

Please note the above line - this is literal preprocessor output.

> {
> long __gu_err = - 14 , __gu_val = 0;
> const __typeof__(*( ( buf ) )) *__gu_addr = ((buf));
> - if (((((0 + current_set[0])->tss.segment) == 0x18 ) ||
> + if ((((0 + current_set[0])->tss.segment) == 0x18 ) ||
> (((sizeof(*(buf))) <= 0xC0000000UL) &&
> - ((unsigned long)(__gu_addr ) <= 0xC0000000UL - (sizeof(*(buf)))))))
> + ((unsigned long)(__gu_addr ) <= 0xC0000000UL - (sizeof(*(buf))))))
> do {
> __gu_err = 0;
> switch ((sizeof(*(buf)))) {

Removing a pair of parentheses will take this output further from what
the preprocessor produced, and the result is still unreadable, I don't
see why we would do this.

jon