Skip to contentSkip to conversation

drm/amdgpu: fix some kerneldoc in the VM code

PATCH In review Christian König 2 participants 2 messages Mar 25, 2022

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

PATCH 1/1 drm/amdgpu: fix some kerneldoc in the VM code

Fix two incorrect kerneldocs for the recent VM code changes.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c    | 2 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +1 -1
index 48f326609976..fa4def290dec 100644
@@ -89,7 +89,7 @@ struct amdgpu_prt_cb {
 };
 
 /**
- * amdgpu_vm_tlb_seq_cb - Helper to increment the TLB flush sequence
+ * struct amdgpu_vm_tlb_seq_cb - Helper to increment the TLB flush sequence
  */
 struct amdgpu_vm_tlb_seq_cb {
 	/**
drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c +1 -1
index a821ada5f8ca..ecd8a3d60803 100644
@@ -620,7 +620,7 @@ static int amdgpu_vm_pt_alloc(struct amdgpu_device *adev,
 }
 
 /**
- * amdgpu_vm_free_table - fre one PD/PT
+ * amdgpu_vm_pt_free - fre one PD/PT
  *
  * @entry: PDE to free
  */
Signature · 1 line
2.25.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 29 lines · Christian König

Fix two incorrect kerneldocs for the recent VM code changes.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c    | 2 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +1 -1
index 48f326609976..fa4def290dec 100644
@@ -89,7 +89,7 @@ struct amdgpu_prt_cb {
 };
 
 /**
- * amdgpu_vm_tlb_seq_cb - Helper to increment the TLB flush sequence
+ * struct amdgpu_vm_tlb_seq_cb - Helper to increment the TLB flush sequence
  */
 struct amdgpu_vm_tlb_seq_cb {
        /**
drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c +0 -0
index a821ada5f8ca..ecd8a3d60803 100644

drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c static int amdgpu_vm_pt_alloc(struct amdgpu_device *adev, · line 623

Quoted 5 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c +1 -1
@@ -620,7 +620,7 @@ static int amdgpu_vm_pt_alloc(struct amdgpu_device *adev,
 }
 
 /**
- * amdgpu_vm_free_table - fre one PD/PT
+ * amdgpu_vm_pt_free - fre one PD/PT

typo: fre -> free
With that fixed:

Quoted 6 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c +0 -1
  *
  * @entry: PDE to free
  */
--

2.25.1