Commit 006b84bc authored by Min-Hua Chen's avatar Min-Hua Chen Committed by Jonathan Corbet

docs: sparse: convert sparse.txt to RST

Follow Randy's advice [1] to move
Documentation/translations/zh_TW/dev-tools/sparse.txt
to
Documentation/translations/zh_TW/dev-tools/sparse.rst

[1] https://lore.kernel.org/lkml/bfab7c5b-e4d3-d8d9-afab-f43c0cdf26cf@infradead.org/Suggested-by: default avatarJonathan Corbet <corbet@lwn.net>
Suggested-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Acked-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Signed-off-by: default avatarMin-Hua Chen <minhuadotchen@gmail.com>
[jc: fixed htmldocs warning]
Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/20230902052512.12184-3-minhuadotchen@gmail.com
parent 253f68f4
...@@ -27,7 +27,7 @@ Copyright 2006 Bob Copeland <me@bobcopeland.com> ...@@ -27,7 +27,7 @@ Copyright 2006 Bob Copeland <me@bobcopeland.com>
使用 sparse 工具做類型檢查 使用 sparse 工具做類型檢查
~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~
"__bitwise" 是一種類型屬性,所以你應該這樣使用它 "__bitwise" 是一種類型屬性,所以你應該這樣使用它::
typedef int __bitwise pm_request_t; typedef int __bitwise pm_request_t;
...@@ -47,7 +47,7 @@ Copyright 2006 Bob Copeland <me@bobcopeland.com> ...@@ -47,7 +47,7 @@ Copyright 2006 Bob Copeland <me@bobcopeland.com>
坦白來說,你並不需要使用枚舉類型。上面那些實際都可以濃縮成一個特殊的"int 坦白來說,你並不需要使用枚舉類型。上面那些實際都可以濃縮成一個特殊的"int
__bitwise"類型。 __bitwise"類型。
所以更簡單的辦法只要這樣做 所以更簡單的辦法只要這樣做::
typedef int __bitwise pm_request_t; typedef int __bitwise pm_request_t;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment