[PATCH 4/5] docs: fix repeated prepositions across documentation

1 view
Skip to first unread message

Adrien Reynard

unread,
May 8, 2026, 12:38:09 PM (12 days ago) May 8
to Andrey Ryabinin, Alexander Potapenko, Andrey Konovalov, Dmitry Vyukov, Vincenzo Frascino, Jonathan Corbet, Shuah Khan, David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni, Simon Horman, Richard Weinberger, Anton Ivanov, Johannes Berg, open list:KASAN, open list:DOCUMENTATION PROCESS, open list:DOCUMENTATION, open list, open list:NETWORKING [GENERAL], open list:USER-MODE LINUX (UML), Adrien Reynard
Signed-off-by: Adrien Reynard <reynard....@gmail.com>
---
Documentation/dev-tools/kasan.rst | 2 +-
Documentation/networking/switchdev.rst | 2 +-
Documentation/virt/uml/user_mode_linux_howto_v2.rst | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Documentation/dev-tools/kasan.rst b/Documentation/dev-tools/kasan.rst
index 4968b2aa60c8..3a8bd40ad905 100644
--- a/Documentation/dev-tools/kasan.rst
+++ b/Documentation/dev-tools/kasan.rst
@@ -392,7 +392,7 @@ reserved to tag freed memory regions.
If the hardware does not support MTE (pre ARMv8.5), Hardware Tag-Based KASAN
will not be enabled. In this case, all KASAN boot parameters are ignored.

-Note that enabling CONFIG_KASAN_HW_TAGS always results in in-kernel TBI being
+Note that enabling CONFIG_KASAN_HW_TAGS always results in-kernel TBI being
enabled. Even when ``kasan.mode=off`` is provided or when the hardware does not
support MTE (but supports TBI).

diff --git a/Documentation/networking/switchdev.rst b/Documentation/networking/switchdev.rst
index 2966b7122f05..948bce44ca9b 100644
--- a/Documentation/networking/switchdev.rst
+++ b/Documentation/networking/switchdev.rst
@@ -162,7 +162,7 @@ The switchdev driver can know a particular port's position in the topology by
monitoring NETDEV_CHANGEUPPER notifications. For example, a port moved into a
bond will see its upper master change. If that bond is moved into a bridge,
the bond's upper master will change. And so on. The driver will track such
-movements to know what position a port is in in the overall topology by
+movements to know what position a port is in the overall topology by
registering for netdevice events and acting on NETDEV_CHANGEUPPER.

L2 Forwarding Offload
diff --git a/Documentation/virt/uml/user_mode_linux_howto_v2.rst b/Documentation/virt/uml/user_mode_linux_howto_v2.rst
index c37e8e594d12..7b08738c30aa 100644
--- a/Documentation/virt/uml/user_mode_linux_howto_v2.rst
+++ b/Documentation/virt/uml/user_mode_linux_howto_v2.rst
@@ -1092,7 +1092,7 @@ be formatted as plain text.

Developing always goes hand in hand with debugging. First of all,
you can always run UML under gdb and there will be a whole section
-later on on how to do that. That, however, is not the only way to
+later on how to do that. That, however, is not the only way to
debug a Linux kernel. Quite often adding tracing statements and/or
using UML specific approaches such as ptracing the UML kernel process
are significantly more informative.
--
2.54.0

Shuah Khan

unread,
May 8, 2026, 1:23:47 PM (12 days ago) May 8
to Adrien Reynard, Andrey Ryabinin, Alexander Potapenko, Andrey Konovalov, Dmitry Vyukov, Vincenzo Frascino, Jonathan Corbet, David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni, Simon Horman, Richard Weinberger, Anton Ivanov, Johannes Berg, open list:KASAN, open list:DOCUMENTATION PROCESS, open list:DOCUMENTATION, open list, open list:NETWORKING [GENERAL], open list:USER-MODE LINUX (UML), Shuah Khan
On 5/8/26 10:38, Adrien Reynard wrote:

Missing commit log

> Signed-off-by: Adrien Reynard <reynard....@gmail.com>
> ---
> Documentation/dev-tools/kasan.rst | 2 +-
> Documentation/networking/switchdev.rst | 2 +-
> Documentation/virt/uml/user_mode_linux_howto_v2.rst | 2 +-
> 3 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/Documentation/dev-tools/kasan.rst b/Documentation/dev-tools/kasan.rst
> index 4968b2aa60c8..3a8bd40ad905 100644
> --- a/Documentation/dev-tools/kasan.rst
> +++ b/Documentation/dev-tools/kasan.rst
> @@ -392,7 +392,7 @@ reserved to tag freed memory regions.
> If the hardware does not support MTE (pre ARMv8.5), Hardware Tag-Based KASAN
> will not be enabled. In this case, all KASAN boot parameters are ignored.
>
> -Note that enabling CONFIG_KASAN_HW_TAGS always results in in-kernel TBI being
> +Note that enabling CONFIG_KASAN_HW_TAGS always results in-kernel TBI being

This is correct the way it is - no need to change this. "results in in-kernel"

> enabled. Even when ``kasan.mode=off`` is provided or when the hardware does not
> support MTE (but supports TBI).
>
> diff --git a/Documentation/networking/switchdev.rst b/Documentation/networking/switchdev.rst
> index 2966b7122f05..948bce44ca9b 100644
> --- a/Documentation/networking/switchdev.rst
> +++ b/Documentation/networking/switchdev.rst
> @@ -162,7 +162,7 @@ The switchdev driver can know a particular port's position in the topology by
> monitoring NETDEV_CHANGEUPPER notifications. For example, a port moved into a
> bond will see its upper master change. If that bond is moved into a bridge,
> the bond's upper master will change. And so on. The driver will track such
> -movements to know what position a port is in in the overall topology by
> +movements to know what position a port is in the overall topology by

This looks fine.

> registering for netdevice events and acting on NETDEV_CHANGEUPPER.
>
> L2 Forwarding Offload
> diff --git a/Documentation/virt/uml/user_mode_linux_howto_v2.rst b/Documentation/virt/uml/user_mode_linux_howto_v2.rst
> index c37e8e594d12..7b08738c30aa 100644
> --- a/Documentation/virt/uml/user_mode_linux_howto_v2.rst
> +++ b/Documentation/virt/uml/user_mode_linux_howto_v2.rst
> @@ -1092,7 +1092,7 @@ be formatted as plain text.
>
> Developing always goes hand in hand with debugging. First of all,
> you can always run UML under gdb and there will be a whole section
> -later on on how to do that. That, however, is not the only way to
> +later on how to do that. That, however, is not the only way to

This change is not needed. If at all add a comma after "later" to make
a distinction between the use two back to back "on"s

"later on,"

> debug a Linux kernel. Quite often adding tracing statements and/or
> using UML specific approaches such as ptracing the UML kernel process
> are significantly more informative.

With these changes:

Reviewed-by: Shuah Khan <sk...@linuxfoundation.org>

thanks,
-- Shuah

Randy Dunlap

unread,
May 8, 2026, 1:44:18 PM (12 days ago) May 8
to Shuah Khan, Adrien Reynard, Andrey Ryabinin, Alexander Potapenko, Andrey Konovalov, Dmitry Vyukov, Vincenzo Frascino, Jonathan Corbet, David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni, Simon Horman, Richard Weinberger, Anton Ivanov, Johannes Berg, open list:KASAN, open list:DOCUMENTATION PROCESS, open list:DOCUMENTATION, open list, open list:NETWORKING [GENERAL], open list:USER-MODE LINUX (UML)


On 5/8/26 10:23 AM, Shuah Khan wrote:
> On 5/8/26 10:38, Adrien Reynard wrote:
>
> Missing commit log
>
>> Signed-off-by: Adrien Reynard <reynard....@gmail.com>
>> ---
>>   Documentation/dev-tools/kasan.rst                   | 2 +-
>>   Documentation/networking/switchdev.rst              | 2 +-
>>   Documentation/virt/uml/user_mode_linux_howto_v2.rst | 2 +-
>>   3 files changed, 3 insertions(+), 3 deletions(-)
>>
>> diff --git a/Documentation/dev-tools/kasan.rst b/Documentation/dev-tools/kasan.rst
>> index 4968b2aa60c8..3a8bd40ad905 100644
>> --- a/Documentation/dev-tools/kasan.rst
>> +++ b/Documentation/dev-tools/kasan.rst
>> @@ -392,7 +392,7 @@ reserved to tag freed memory regions.
>>   If the hardware does not support MTE (pre ARMv8.5), Hardware Tag-Based KASAN
>>   will not be enabled. In this case, all KASAN boot parameters are ignored.
>>   -Note that enabling CONFIG_KASAN_HW_TAGS always results in in-kernel TBI being
>> +Note that enabling CONFIG_KASAN_HW_TAGS always results in-kernel TBI being
>
> This is correct the way it is - no need to change this. "results in in-kernel"

ack.

>>   enabled. Even when ``kasan.mode=off`` is provided or when the hardware does not
>>   support MTE (but supports TBI).
>>   diff --git a/Documentation/networking/switchdev.rst b/Documentation/networking/switchdev.rst
>> index 2966b7122f05..948bce44ca9b 100644
>> --- a/Documentation/networking/switchdev.rst
>> +++ b/Documentation/networking/switchdev.rst
>> @@ -162,7 +162,7 @@ The switchdev driver can know a particular port's position in the topology by
>>   monitoring NETDEV_CHANGEUPPER notifications.  For example, a port moved into a
>>   bond will see its upper master change.  If that bond is moved into a bridge,
>>   the bond's upper master will change.  And so on.  The driver will track such
>> -movements to know what position a port is in in the overall topology by
>> +movements to know what position a port is in the overall topology by
>
> This looks fine.

Change not needed.

>>   registering for netdevice events and acting on NETDEV_CHANGEUPPER.
>>     L2 Forwarding Offload
>> diff --git a/Documentation/virt/uml/user_mode_linux_howto_v2.rst b/Documentation/virt/uml/user_mode_linux_howto_v2.rst
>> index c37e8e594d12..7b08738c30aa 100644
>> --- a/Documentation/virt/uml/user_mode_linux_howto_v2.rst
>> +++ b/Documentation/virt/uml/user_mode_linux_howto_v2.rst
>> @@ -1092,7 +1092,7 @@ be formatted as plain text.
>>     Developing always goes hand in hand with debugging. First of all,
>>   you can always run UML under gdb and there will be a whole section
>> -later on on how to do that. That, however, is not the only way to
>> +later on how to do that. That, however, is not the only way to
>
> This change is not needed. If at all add a comma after "later" to make
> a distinction between the use two back to back "on"s
>
>  "later on,"

We disagree. :)
This change LGTM.

--
~Randy

David Laight

unread,
May 8, 2026, 2:29:00 PM (12 days ago) May 8
to Adrien Reynard, Andrey Ryabinin, Alexander Potapenko, Andrey Konovalov, Dmitry Vyukov, Vincenzo Frascino, Jonathan Corbet, Shuah Khan, David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni, Simon Horman, Richard Weinberger, Anton Ivanov, Johannes Berg, open list:KASAN, open list:DOCUMENTATION PROCESS, open list:DOCUMENTATION, open list, open list:NETWORKING [GENERAL], open list:USER-MODE LINUX (UML)
On Fri, 8 May 2026 18:38:03 +0200
Adrien Reynard <reynard....@gmail.com> wrote:

Nope, all these are correct as is.
I'm not looking at any more.

Andrew Lunn

unread,
May 8, 2026, 6:42:15 PM (12 days ago) May 8
to Shuah Khan, Adrien Reynard, Andrey Ryabinin, Alexander Potapenko, Andrey Konovalov, Dmitry Vyukov, Vincenzo Frascino, Jonathan Corbet, David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni, Simon Horman, Richard Weinberger, Anton Ivanov, Johannes Berg, open list:KASAN, open list:DOCUMENTATION PROCESS, open list:DOCUMENTATION, open list, open list:NETWORKING [GENERAL], open list:USER-MODE LINUX (UML)
Fine as in the change is correct, or fine in that the original is
correct and the change is wrong?

Because the change is wrong, there should be two in's here. Please
search the archive for an explanation why.

This is the second time in a week i've had to deal with "improvements"
like this actually breaking stuff. Which also shows that the submitter
did not search to see if somebody has tried to fix this once already,
and failed.

Can we get the tool changed to add a warning, something like:

WARNING: This tool uses very simple pattern matching to look for
repeated words. It does not understand the complexity of English,
and will often result in false positive reports. Please assume it is
wrong until proven otherwise.

Andrew

Randy Dunlap

unread,
May 8, 2026, 6:52:50 PM (12 days ago) May 8
to Andrew Lunn, Shuah Khan, Adrien Reynard, Andrey Ryabinin, Alexander Potapenko, Andrey Konovalov, Dmitry Vyukov, Vincenzo Frascino, Jonathan Corbet, David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni, Simon Horman, Richard Weinberger, Anton Ivanov, Johannes Berg, open list:KASAN, open list:DOCUMENTATION PROCESS, open list:DOCUMENTATION, open list, open list:NETWORKING [GENERAL], open list:USER-MODE LINUX (UML)
There was no commit log and no cover letter AFAIK.
Do we know what tool was used?

Adrien, how did you discover these repeated words?

(If it's my script from 2021, I'll gladly update it.)

--
~Randy

Andrew Lunn

unread,
May 9, 2026, 3:40:06 PM (11 days ago) May 9
to Randy Dunlap, Shuah Khan, Adrien Reynard, Andrey Ryabinin, Alexander Potapenko, Andrey Konovalov, Dmitry Vyukov, Vincenzo Frascino, Jonathan Corbet, David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni, Simon Horman, Richard Weinberger, Anton Ivanov, Johannes Berg, open list:KASAN, open list:DOCUMENTATION PROCESS, open list:DOCUMENTATION, open list, open list:NETWORKING [GENERAL], open list:USER-MODE LINUX (UML)
> > Can we get the tool changed to add a warning, something like:
> >
> > WARNING: This tool uses very simple pattern matching to look for
> > repeated words. It does not understand the complexity of English,
> > and will often result in false positive reports. Please assume it is
> > wrong until proven otherwise.
>
> There was no commit log and no cover letter AFAIK.
> Do we know what tool was used?
>
> Adrien, how did you discover these repeated words?
>
> (If it's my script from 2021, I'll gladly update it.)

Thinking about it some more, i think the warning might actually need
to be different.

If this tool has been around since 2021, all the real problems have
been solved, leaving only the false positives. So the warning probably
needs to be much stronger, saying that it probably only reports false
positives, unless the code is new.

Maybe we also want to extend the tool to have a list all the known
false positives?

Andrew

Randy Dunlap

unread,
May 9, 2026, 4:41:36 PM (11 days ago) May 9
to Andrew Lunn, Shuah Khan, Adrien Reynard, Andrey Ryabinin, Alexander Potapenko, Andrey Konovalov, Dmitry Vyukov, Vincenzo Frascino, Jonathan Corbet, David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni, Simon Horman, Richard Weinberger, Anton Ivanov, Johannes Berg, open list:KASAN, open list:DOCUMENTATION PROCESS, open list:DOCUMENTATION, open list, open list:NETWORKING [GENERAL], open list:USER-MODE LINUX (UML)


On 5/9/26 12:39 PM, Andrew Lunn wrote:
>>> Can we get the tool changed to add a warning, something like:
>>>
>>> WARNING: This tool uses very simple pattern matching to look for
>>> repeated words. It does not understand the complexity of English,
>>> and will often result in false positive reports. Please assume it is
>>> wrong until proven otherwise.
>>
>> There was no commit log and no cover letter AFAIK.
>> Do we know what tool was used?
>>
>> Adrien, how did you discover these repeated words?
>>
>> (If it's my script from 2021, I'll gladly update it.)

Adrien is not using my script -- they developed their own script.

> Thinking about it some more, i think the warning might actually need
> to be different.
>
> If this tool has been around since 2021, all the real problems have
> been solved, leaving only the false positives. So the warning probably
> needs to be much stronger, saying that it probably only reports false
> positives, unless the code is new.

Makes some sense.


> Maybe we also want to extend the tool to have a list all the known
> false positives?

I'm not crazy about that one. And we have no evidence that I am aware
of that my script is causing any of these patches.


--
~Randy

Reply all
Reply to author
Forward
0 new messages