Skip to contentSkip to conversation

docs/zh_CN: fix an inconsistent statement in dev-tools/testing-overview

PATCH Applied LIU Haoyang 3 participants 3 messages Mar 5 – Mar 7

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 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.

---
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(-)
Documentation/translations/zh_CN/dev-tools/testing-overview.rst +1 -1
index 286ed6b01f65..8bdc51b47b5e 100644
@@ -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警告,并试图把转换的工作推给维护者,他们会很
 恼火。你将不得不为每个警告争论是否真的可以溢出。
Signature · 1 line
2.53.0
reviewer Reviewed-by on v2 1/1
#1 lore raw
Quoted 5 lines · LIU Haoyang

This patch fixes an inconsistent describtion in testing-overview.rst, which should be ``kmalloc`` instead of ``kmalloc_arry`` according to the original text.

This inconsistent statement is introduced in the commit e07e9f22259ede8258c00cf3358a44eefa1ad7ff.

Quoted 19 lines

---
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(-)
Documentation/translations/zh_CN/dev-tools/testing-overview.rst +1 -1
index 286ed6b01f65..8bdc51b47b5e 100644
@@ -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警告,并试图把转换的工作推给维护者,他们会很
  恼火。你将不得不为每个警告争论是否真的可以溢出。
Applied
#2 lore raw

Applied, Thanks

Quoted 30 lines · Dongliang Mu
Quoted 5 lines · LIU Haoyang

This patch fixes an inconsistent describtion in testing-overview.rst, which should be ``kmalloc`` instead of ``kmalloc_arry`` according to the original text.

This inconsistent statement is introduced in the commit e07e9f22259ede8258c00cf3358a44eefa1ad7ff.

Quoted 18 lines

---
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(-)
Documentation/translations/zh_CN/dev-tools/testing-overview.rst +0 -0
index 286ed6b01f65..8bdc51b47b5e 100644
@@ -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警告,并试图把转换的工作推给维护者,他 们会很 恼火。你将不得不为每个警告争论是否真的可以溢出。