Documentation: deprecated.rst: add to syntax highlighting
Subsystems (2)
PATCH 1/1 Documentation: deprecated.rst: add to syntax highlighting
Mark key words 'gfp' and 'GFP_KERNEL' for syntax-highlighting.
---
Suggestion:
https://lore.kernel.org/all/[email protected]/
--- Documentation/process/deprecated.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/process/deprecated.rst +1 -1
@@ -404,7 +404,7 @@ become, respectively:: ptr = kmalloc_flex(*ptr, flex_member, count [, gfp] ); __auto_type ptr = kmalloc_obj(struct foo [, gfp] ); -The argument gfp is optional, the default value is GFP_KERNEL. +The argument `gfp` is optional, the default value is `GFP_KERNEL`. If `ptr->flex_member` is annotated with __counted_by(), the allocation will automatically fail if `count` is larger than the maximum representable value that can be stored in the counter member associated
Signature · 1 line
2.54.0
Quoted 16 lines · On Wed, 9 Sep 2026 16:12:54 +0200 Manuel Ebner <[email protected]>…
Mark key words 'gfp' and '
GFP_KERNEL' for syntax-highlighting.Suggested-by SJ Park <[email protected]>Signed-off-by Manuel Ebner <[email protected]>---
Suggestion:
https://lore.kernel.org/all/[email protected]/--- Documentation/process/deprecated.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Documentation/process/deprecated.rst +0
-0
Documentation/process/deprecated.rst become, respectively:: · line 410
Quoted 8 lines
Documentation/process/deprecated.rst +1
-1@@ -404,7 +404,7 @@ become, respectively:: ptr = kmalloc_flex(*ptr, flex_member, count [, gfp] ); __auto_type ptr = kmalloc_obj(struct foo [, gfp] ); -The argument gfp is optional, the default value is GFP_KERNEL. +The argument `gfp` is optional, the default value is `GFP_KERNEL`. If `ptr->flex_member` is annotated with __counted_by(), the allocation will automatically fail if `count` is larger than the maximum representable value that can be stored in the counter member associated
I suggested the change to only 'gfp' and 'GFP_KERNEL' because those are what newly added by your patch. Because this is a separate patch, what about scoping for larger area?
I wouldn't request you to update whole inconsistencies in this doc. Making only the paragraph more consistent looks making sense to me. So, how about doing same to "__counted_by()", too, as it is also in the same paragraph?
Thanks,
SJ
[...]
Quoted 2 lines · SJ Park
only the paragraph more consistent looks making sense to me. So, how about doing same to "
__counted_by()", too, as it is also in the same paragraph?
I think that'll get auto-marked by our tooling already because of the trailing "()".
Signature · 1 line
Kees Cook
Quoted 6 lines · On Wed, 9 Sep 2026 09:14:25 -0700 Kees Cook <[email protected]> wrote:
Quoted 2 lines · SJ Park
only the paragraph more consistent looks making sense to me. So, how about doing same to "
__counted_by()", too, as it is also in the same paragraph?I think that'll get auto-marked by our tooling already because of the trailing "()".
You're right, thank you Kees!
Thanks,
SJ
[...]
Quoted 16 lines · Manuel Ebner
Mark key words 'gfp' and '
GFP_KERNEL' for syntax-highlighting.Suggested-by SJ Park <[email protected]>Signed-off-by Manuel Ebner <[email protected]>---
Suggestion:
https://lore.kernel.org/all/[email protected]/--- Documentation/process/deprecated.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Documentation/process/deprecated.rst +0
-0
Documentation/process/deprecated.rst become, respectively:: · line 410
Quoted 8 lines
Documentation/process/deprecated.rst +1
-1@@ -404,7 +404,7 @@ become, respectively:: ptr = kmalloc_flex(*ptr, flex_member, count [, gfp] ); __auto_type ptr = kmalloc_obj(struct foo [, gfp] ); -The argument gfp is optional, the default value is GFP_KERNEL. +The argument `gfp` is optional, the default value is `GFP_KERNEL`. If `ptr->flex_member` is annotated with __counted_by(), the allocation will automatically fail if `count` is larger than the maximum representable value that can be stored in the counter member associated
Single backquotes in rst mean "interpreted text" [1], not markdown style code.
BR,
Jani.
[1] https://docutils.sourceforge.io/docs/ref/rst/roles.html
Signature · 1 line
Jani Nikula, Intel
Quoted 20 lines · On Wed, 09 Sep 2026 20:00:47 +0300 Jani Nikula <[email protected]> wrote:
Quoted 19 lines · Manuel Ebner
Mark key words 'gfp' and '
GFP_KERNEL' for syntax-highlighting.Suggested-by SJ Park <[email protected]>Signed-off-by Manuel Ebner <[email protected]>---
Suggestion:
https://lore.kernel.org/all/[email protected]/--- Documentation/process/deprecated.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Documentation/process/deprecated.rst +0
-0@@ -404,7 +404,7 @@ become, respectively:: ptr = kmalloc_flex(*ptr, flex_member, count [, gfp] ); __auto_type ptr = kmalloc_obj(struct foo [, gfp] );
Quoted 8 lines
Documentation/process/deprecated.rst become, respectively:: · line 410
Quoted 5 lines
Documentation/process/deprecated.rst +1
-1-The argument gfp is optional, the default value is GFP_KERNEL. +The argument `gfp` is optional, the default value is `GFP_KERNEL`. If `ptr->flex_member` is annotated with __counted_by(), the allocation will automatically fail if `count` is larger than the maximum representable value that can be stored in the counter member associatedSingle backquotes in rst mean "interpreted text" [1], not markdown style code.
Because multiple other parts in the doc are using single backquotes, I feel this patch is improving the consistency. Using double backquotes would also be nice. I have no strong opinion here.
Thanks,
SJ
[...]