Skip to contentSkip to conversation

Revert "drm: Add directive to format code in comment"

PATCH Applied Bagas Sanjaya 3 participants 5 messages Sep 12, 2025 – Sep 13, 2025

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

PATCH 1/1 Revert "drm: Add directive to format code in comment"

Commit 6cc44e9618f03f ("drm: Add directive to format code in comment") fixes original Sphinx indentation warning as introduced in 471920ce25d50b ("drm/gpuvm: Add locking helpers"), by means of using code-block:: directive. It semantically conflicts with earlier bb324f85f72284 ("drm/gpuvm: Wrap drm_gpuvm_sm_map_exec_lock() expected usage in literal code block") that did the same using double colon syntax instead. These duplicated literal code block directives causes the original warnings not being fixed.

Revert 6cc44e9618f03f to keep things rolling without these warnings.

Fixes 6cc44e9618f0 ("drm: Add directive to format code in comment")
Fixes 471920ce25d5 ("drm/gpuvm: Add locking helpers")
---
 drivers/gpu/drm/drm_gpuvm.c | 2 --
 1 file changed, 2 deletions(-)
drivers/gpu/drm/drm_gpuvm.c +0 -2
index db9b089ef62c85..86853535fb7bd7 100644
@@ -2432,8 +2432,6 @@ static const struct drm_gpuvm_ops lock_ops = {
  *
  * The expected usage is::
  *
- * .. code-block:: c
- *
  *    vm_bind {
  *        struct drm_exec exec;
  *

base-commit: 9a3f210737e958c3f45a4ce0d7f1ff330af3965f

Signature · 1 line
An old man doll... just what I always wanted! - Clara
reviewer Reviewed-by Tested-by on v1 1/1
#1 lore raw
Quoted 9 lines · Bagas Sanjaya

Commit 6cc44e9618f03f ("drm: Add directive to format code in comment") fixes original Sphinx indentation warning as introduced in 471920ce25d50b ("drm/gpuvm: Add locking helpers"), by means of using code-block:: directive. It semantically conflicts with earlier bb324f85f72284 ("drm/gpuvm: Wrap drm_gpuvm_sm_map_exec_lock() expected usage in literal code block") that did the same using double colon syntax instead. These duplicated literal code block directives causes the original warnings not being fixed.

Quoted 5 lines

Revert 6cc44e9618f03f to keep things rolling without these warnings.

Fixes 6cc44e9618f0 ("drm: Add directive to format code in comment")
Fixes 471920ce25d5 ("drm/gpuvm: Add locking helpers")

Thanks!

Quoted 19 lines
---
 drivers/gpu/drm/drm_gpuvm.c | 2 --
 1 file changed, 2 deletions(-)
drivers/gpu/drm/drm_gpuvm.c +0 -2
index db9b089ef62c85..86853535fb7bd7 100644
@@ -2432,8 +2432,6 @@ static const struct drm_gpuvm_ops lock_ops = {
  *
  * The expected usage is::
  *
- * .. code-block:: c
- *
  *    vm_bind {
  *        struct drm_exec exec;
  *

base-commit: 9a3f210737e958c3f45a4ce0d7f1ff330af3965f

Signature · 1 line
~Randy
maintainer Acked-by on v1 1/1
#2 lore raw
In reply to Bagas Sanjaya
Quoted 9 lines · Bagas Sanjaya

Commit 6cc44e9618f03f ("drm: Add directive to format code in comment") fixes original Sphinx indentation warning as introduced in 471920ce25d50b ("drm/gpuvm: Add locking helpers"), by means of using code-block:: directive. It semantically conflicts with earlier bb324f85f72284 ("drm/gpuvm: Wrap drm_gpuvm_sm_map_exec_lock() expected usage in literal code block") that did the same using double colon syntax instead. These duplicated literal code block directives causes the original warnings not being fixed.

Quoted 5 lines

Revert 6cc44e9618f03f to keep things rolling without these warnings.

Fixes 6cc44e9618f0 ("drm: Add directive to format code in comment")
Fixes 471920ce25d5 ("drm/gpuvm: Add locking helpers")

Need me to pick this one up? Otherwise,

#3 lore raw
Quoted 10 lines · Danilo Krummrich
Quoted 9 lines · Bagas Sanjaya

Commit 6cc44e9618f03f ("drm: Add directive to format code in comment") fixes original Sphinx indentation warning as introduced in 471920ce25d50b ("drm/gpuvm: Add locking helpers"), by means of using code-block:: directive. It semantically conflicts with earlier bb324f85f72284 ("drm/gpuvm: Wrap drm_gpuvm_sm_map_exec_lock() expected usage in literal code block") that did the same using double colon syntax instead. These duplicated literal code block directives causes the original warnings not being fixed.

Quoted 8 lines
Quoted 5 lines

Revert 6cc44e9618f03f to keep things rolling without these warnings.

Fixes 6cc44e9618f0 ("drm: Add directive to format code in comment")
Fixes 471920ce25d5 ("drm/gpuvm: Add locking helpers")

Need me to pick this one up? Otherwise,

Of course!

Signature · 1 line
An old man doll... just what I always wanted! - Clara
maintainer Applied
#4 lore raw
In reply to Bagas Sanjaya
Quoted 9 lines · Bagas Sanjaya

Commit 6cc44e9618f03f ("drm: Add directive to format code in comment") fixes original Sphinx indentation warning as introduced in 471920ce25d50b ("drm/gpuvm: Add locking helpers"), by means of using code-block:: directive. It semantically conflicts with earlier bb324f85f72284 ("drm/gpuvm: Wrap drm_gpuvm_sm_map_exec_lock() expected usage in literal code block") that did the same using double colon syntax instead. These duplicated literal code block directives causes the original warnings not being fixed.

Quoted 5 lines

Revert 6cc44e9618f03f to keep things rolling without these warnings.

Fixes 6cc44e9618f0 ("drm: Add directive to format code in comment")
Fixes 471920ce25d5 ("drm/gpuvm: Add locking helpers")

Applied to drm-misc-fixes, thanks!