* [PATCH V2] docs/zh_CN: fix an inconsistent statement in dev-tools/testing-overview
@ 2026-03-05 20:10 LIU Haoyang
2026-03-06 1:29 ` Dongliang Mu
0 siblings, 1 reply; 3+ messages in thread
From: LIU Haoyang @ 2026-03-05 20:10 UTC (permalink / raw)
To: Alex Shi, Yanteng Si, Dongliang Mu, Jonathan Corbet, Shuah Khan
Cc: LIU Haoyang, linux-doc, linux-kernel
This patch fixes an inconsistent describtion in testing-overview.rst,
which should be ``kmalloc`` instead of ``kmalloc_arry`` according to
the original text.
Signed-off-by: LIU Haoyang <tttturtleruss@gmail.com>
---
V1 -> V2: fix some typos in the commit message
Documentation/translations/zh_CN/dev-tools/testing-overview.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/translations/zh_CN/dev-tools/testing-overview.rst b/Documentation/translations/zh_CN/dev-tools/testing-overview.rst
index 286ed6b01f65..8bdc51b47b5e 100644
--- a/Documentation/translations/zh_CN/dev-tools/testing-overview.rst
+++ b/Documentation/translations/zh_CN/dev-tools/testing-overview.rst
@@ -154,7 +154,7 @@ Smatch和Coccinelle的强项
Coccinelle可能是最容易写检查的。它在预处理器之前工作,所以用Coccinelle
检查宏中的错误更容易。Coccinelle还能为你创建补丁,这是其他工具无法做到的。
-例如,用Coccinelle你可以从 ``kmalloc_array(x, size, GFP_KERNEL)``
+例如,用Coccinelle你可以从 ``kmalloc(x * size, GFP_KERNEL)``
到 ``kmalloc_array(x, size, GFP_KERNEL)`` 进行大规模转换,这真的很
有用。如果你只是创建一个Smatch警告,并试图把转换的工作推给维护者,他们会很
恼火。你将不得不为每个警告争论是否真的可以溢出。
--
2.53.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH V2] docs/zh_CN: fix an inconsistent statement in dev-tools/testing-overview
2026-03-05 20:10 [PATCH V2] docs/zh_CN: fix an inconsistent statement in dev-tools/testing-overview LIU Haoyang
@ 2026-03-06 1:29 ` Dongliang Mu
2026-03-07 14:07 ` Alex Shi
0 siblings, 1 reply; 3+ messages in thread
From: Dongliang Mu @ 2026-03-06 1:29 UTC (permalink / raw)
To: LIU Haoyang, Alex Shi, Yanteng Si, Jonathan Corbet, Shuah Khan
Cc: linux-doc, linux-kernel
On 3/6/26 4:10 AM, LIU Haoyang wrote:
> This patch fixes an inconsistent describtion in testing-overview.rst,
> which should be ``kmalloc`` instead of ``kmalloc_arry`` according to
> the original text.
>
> Signed-off-by: LIU Haoyang <tttturtleruss@gmail.com>
Reviewed-by: Dongliang Mu <dzm91@hust.edu.cn>
This inconsistent statement is introduced in the commit
e07e9f22259ede8258c00cf3358a44eefa1ad7ff.
> ---
> V1 -> V2: fix some typos in the commit message
>
> Documentation/translations/zh_CN/dev-tools/testing-overview.rst | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Documentation/translations/zh_CN/dev-tools/testing-overview.rst b/Documentation/translations/zh_CN/dev-tools/testing-overview.rst
> index 286ed6b01f65..8bdc51b47b5e 100644
> --- a/Documentation/translations/zh_CN/dev-tools/testing-overview.rst
> +++ b/Documentation/translations/zh_CN/dev-tools/testing-overview.rst
> @@ -154,7 +154,7 @@ Smatch和Coccinelle的强项
> Coccinelle可能是最容易写检查的。它在预处理器之前工作,所以用Coccinelle
> 检查宏中的错误更容易。Coccinelle还能为你创建补丁,这是其他工具无法做到的。
>
> -例如,用Coccinelle你可以从 ``kmalloc_array(x, size, GFP_KERNEL)``
> +例如,用Coccinelle你可以从 ``kmalloc(x * size, GFP_KERNEL)``
> 到 ``kmalloc_array(x, size, GFP_KERNEL)`` 进行大规模转换,这真的很
> 有用。如果你只是创建一个Smatch警告,并试图把转换的工作推给维护者,他们会很
> 恼火。你将不得不为每个警告争论是否真的可以溢出。
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH V2] docs/zh_CN: fix an inconsistent statement in dev-tools/testing-overview
2026-03-06 1:29 ` Dongliang Mu
@ 2026-03-07 14:07 ` Alex Shi
0 siblings, 0 replies; 3+ messages in thread
From: Alex Shi @ 2026-03-07 14:07 UTC (permalink / raw)
To: Dongliang Mu, LIU Haoyang, Alex Shi, Yanteng Si, Jonathan Corbet,
Shuah Khan
Cc: linux-doc, linux-kernel
Applied, Thanks
On 2026/3/6 09:29, Dongliang Mu wrote:
>
> On 3/6/26 4:10 AM, LIU Haoyang wrote:
>> This patch fixes an inconsistent describtion in testing-overview.rst,
>> which should be ``kmalloc`` instead of ``kmalloc_arry`` according to
>> the original text.
>>
>> Signed-off-by: LIU Haoyang <tttturtleruss@gmail.com>
>
> Reviewed-by: Dongliang Mu <dzm91@hust.edu.cn>
>
> This inconsistent statement is introduced in the commit
> e07e9f22259ede8258c00cf3358a44eefa1ad7ff.
>
>> ---
>> V1 -> V2: fix some typos in the commit message
>>
>> Documentation/translations/zh_CN/dev-tools/testing-overview.rst | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/Documentation/translations/zh_CN/dev-tools/testing-
>> overview.rst b/Documentation/translations/zh_CN/dev-tools/testing-
>> overview.rst
>> index 286ed6b01f65..8bdc51b47b5e 100644
>> --- a/Documentation/translations/zh_CN/dev-tools/testing-overview.rst
>> +++ b/Documentation/translations/zh_CN/dev-tools/testing-overview.rst
>> @@ -154,7 +154,7 @@ Smatch和Coccinelle的强项
>> Coccinelle可能是最容易写检查的。它在预处理器之前工作,所以用Coccinelle
>> 检查宏中的错误更容易。Coccinelle还能为你创建补丁,这是其他工具无法做
>> 到的。
>> -例如,用Coccinelle你可以从 ``kmalloc_array(x, size, GFP_KERNEL)``
>> +例如,用Coccinelle你可以从 ``kmalloc(x * size, GFP_KERNEL)``
>> 到 ``kmalloc_array(x, size, GFP_KERNEL)`` 进行大规模转换,这真的很
>> 有用。如果你只是创建一个Smatch警告,并试图把转换的工作推给维护者,他
>> 们会很
>> 恼火。你将不得不为每个警告争论是否真的可以溢出。
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-03-07 14:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-05 20:10 [PATCH V2] docs/zh_CN: fix an inconsistent statement in dev-tools/testing-overview LIU Haoyang
2026-03-06 1:29 ` Dongliang Mu
2026-03-07 14:07 ` Alex Shi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox