diff options
| author | LIU Haoyang <tttturtleruss@gmail.com> | 2026-03-05 23:10:58 +0300 |
|---|---|---|
| committer | Alex Shi <alexs@kernel.org> | 2026-04-10 15:09:06 +0300 |
| commit | 29442165759cd557194815cdba391a4bf37db05e (patch) | |
| tree | d140f3705198683bc2e95bc947e09d58ada44e3b | |
| parent | 1eab6493f525910aa7bc383a2a27b68916e3c616 (diff) | |
| download | linux-29442165759cd557194815cdba391a4bf37db05e.tar.xz | |
docs/zh_CN: fix an inconsistent statement in dev-tools/testing-overview
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>
Signed-off-by: Alex Shi <alexs@kernel.org>
| -rw-r--r-- | Documentation/translations/zh_CN/dev-tools/testing-overview.rst | 2 |
1 files changed, 1 insertions, 1 deletions
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警告,并试图把转换的工作推给维护者,他们会很 恼火。你将不得不为每个警告争论是否真的可以溢出。 |
