Skip to contentSkip to conversation

drm: amd: display: fix kernel-doc struct warning

PATCH In review Randy Dunlap 5 participants 7 messages Apr 20, 2020 – Apr 22, 2020

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

PATCH 1/1 drm: amd: display: fix kernel-doc struct warning

Fix a kernel-doc warning of missing struct field desription:

../drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h:331: warning: Function parameter or member 'hdcp_workqueue' not described in 'amdgpu_display_manager'

Fixes 52704fcaf74b ("drm/amd/display: Initialize HDCP work queue")
Cc Bhawanpreet Lakha <[email protected]>
Cc Harry Wentland <[email protected]>
Cc Alex Deucher <[email protected]>
Cc Leo Li <[email protected]>
---
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h |    1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h +1 -0
@@ -139,6 +139,7 @@ struct amdgpu_dm_backlight_caps {
  * @backlight_link: Link on which to control backlight
  * @backlight_caps: Capabilities of the backlight device
  * @freesync_module: Module handling freesync calculations
+ * @hdcp_workqueue: workqueue for display manager interaction with HDCP module
  * @fw_dmcu: Reference to DMCU firmware
  * @dmcu_fw_version: Version of the DMCU firmware
  * @soc_bounding_box: SOC bounding box values provided by gpu_info FW

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw

PATCH 1/1 drm: amdgpu: fix kernel-doc struct warning

Fix a kernel-doc warning of missing struct field desription:

../drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c:92: warning: Function parameter or member 'vm' not described in 'amdgpu_vm_eviction_lock'

Fixes a269e44989f3 ("drm/amdgpu: Avoid reclaim fs while eviction lock")
Cc Signed-off-by: Alex Sierra <[email protected]>
Cc Felix Kuehling <[email protected]>
Cc Christian König <[email protected]>
Cc Alex Deucher <[email protected]>
Cc David (ChunMing) Zhou <[email protected]>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +1 -1
@@ -82,7 +82,7 @@ struct amdgpu_prt_cb {
 	struct dma_fence_cb cb;
 };
 
-/**
+/*
  * vm eviction_lock can be taken in MMU notifiers. Make sure no reclaim-FS
  * happens while holding this lock anywhere to prevent deadlocks when
  * an MMU notifier runs in reclaim-FS context.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Reviewed-by on v1 1/1
#2 lore raw

Re: [PATCH] drm: amdgpu: fix kernel-doc struct warning

Quoted 4 lines · Randy Dunlap

Fix a kernel-doc warning of missing struct field desription:

../drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c:92: warning: Function parameter or member 'vm' not described in 'amdgpu_vm_eviction_lock'

Quoted 8 lines
Fixes a269e44989f3 ("drm/amdgpu: Avoid reclaim fs while eviction lock")
Cc Signed-off-by: Alex Sierra <[email protected]>
Cc Felix Kuehling <[email protected]>
Cc Christian König <[email protected]>
Cc Alex Deucher <[email protected]>
Cc David (ChunMing) Zhou <[email protected]>

Harry

Quoted 8 lines
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c struct amdgpu_prt_cb { · line 88

Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +1 -1
@@ -82,7 +82,7 @@ struct amdgpu_prt_cb {
 	struct dma_fence_cb cb;
 };
 
-/**
+/*
  * vm eviction_lock can be taken in MMU notifiers. Make sure no reclaim-FS
  * happens while holding this lock anywhere to prevent deadlocks when
  * an MMU notifier runs in reclaim-FS context.

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

maintainer
#3 lore raw

Re: [PATCH] drm: amdgpu: fix kernel-doc struct warning

In reply to Randy Dunlap

Am 20.04.20 um 03:50 schrieb Randy Dunlap:

Quoted 3 lines

Fix a kernel-doc warning of missing struct field desription:

../drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c:92: warning: Function parameter or member 'vm' not described in 'amdgpu_vm_eviction_lock'

Can't we just document the function parameter instead? Should only be one IIRC.

Thanks,
Christian.

Quoted 16 lines
Fixes a269e44989f3 ("drm/amdgpu: Avoid reclaim fs while eviction lock")
Cc Signed-off-by: Alex Sierra <[email protected]>
Cc Felix Kuehling <[email protected]>
Cc Christian König <[email protected]>
Cc Alex Deucher <[email protected]>
Cc David (ChunMing) Zhou <[email protected]>
---
  drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c struct amdgpu_prt_cb { · line 88

Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +1 -1
@@ -82,7 +82,7 @@ struct amdgpu_prt_cb {
  	struct dma_fence_cb cb;
  };
 
-/**
+/*
   * vm eviction_lock can be taken in MMU notifiers. Make sure no reclaim-FS
   * happens while holding this lock anywhere to prevent deadlocks when
   * an MMU notifier runs in reclaim-FS context.

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reviewed-by
#4 lore raw

Re: [PATCH] drm: amdgpu: fix kernel-doc struct warning

Am 21.04.20 um 16:33 schrieb Christian König:

Quoted 6 lines

Am 20.04.20 um 03:50 schrieb Randy Dunlap:

Quoted 3 lines

Fix a kernel-doc warning of missing struct field desription:

../drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c:92: warning: Function parameter or member 'vm' not described in 'amdgpu_vm_eviction_lock'

Can't we just document the function parameter instead? Should only be one IIRC.

On the other hand forget that, the format doesn't match a proper kernel-doc for a function anyway.

Quoted 17 lines

Thanks,
Christian.

Quoted 13 lines
Fixes a269e44989f3 ("drm/amdgpu: Avoid reclaim fs while eviction lock")
Cc Signed-off-by: Alex Sierra <[email protected]>
Cc Felix Kuehling <[email protected]>
Cc Christian König <[email protected]>
Cc Alex Deucher <[email protected]>
Cc David (ChunMing) Zhou <[email protected]>

---
  drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c |    2 +-

  1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 15 lines
Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +0 -0
@@ -82,7 +82,7 @@ struct amdgpu_prt_cb {
       struct dma_fence_cb cb;
   };

  -/**
+/*
   * vm eviction_lock can be taken in MMU notifiers. Make sure no reclaim-FS
   * happens while holding this lock anywhere to prevent deadlocks when
   * an MMU notifier runs in reclaim-FS context.

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Applied
#5 lore raw

Re: [PATCH] drm: amdgpu: fix kernel-doc struct warning

Quoted 8 lines · Christian König

Am 21.04.20 um 16:33 schrieb Christian König:

Quoted 6 lines

Am 20.04.20 um 03:50 schrieb Randy Dunlap:

Quoted 4 lines

Fix a kernel-doc warning of missing struct field desription:

../drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c:92: warning: Function parameter or member 'vm' not described in 'amdgpu_vm_eviction_lock'

Quoted 8 lines
Quoted 2 lines

Can't we just document the function parameter instead? Should only be one IIRC.

On the other hand forget that, the format doesn't match a proper kernel-doc for a function anyway.

Applied. Thanks!

Alex

Quoted 34 lines
Quoted 17 lines

Thanks,
Christian.

Quoted 13 lines
Fixes a269e44989f3 ("drm/amdgpu: Avoid reclaim fs while eviction lock")
Cc Signed-off-by: Alex Sierra <[email protected]>
Cc Felix Kuehling <[email protected]>
Cc Christian König <[email protected]>
Cc Alex Deucher <[email protected]>
Cc David (ChunMing) Zhou <[email protected]>
---
  drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 16 lines
Quoted 11 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +1 -0
@@ -82,7 +82,7 @@ struct amdgpu_prt_cb {
      struct dma_fence_cb cb;
  };
  -/**
+/*
   * vm eviction_lock can be taken in MMU notifiers. Make sure no

reclaim-FS
* happens while holding this lock anywhere to prevent deadlocks when
* an MMU notifier runs in reclaim-FS context.

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Quoted 4 lines

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Reviewed-by on v1 1/1
#6 lore raw
In reply to Randy Dunlap
Quoted 11 lines · Randy Dunlap

Fix a kernel-doc warning of missing struct field desription:

../drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h:331: warning: Function parameter or member 'hdcp_workqueue' not described in 'amdgpu_display_manager'

Fixes 52704fcaf74b ("drm/amd/display: Initialize HDCP work queue")
Cc Bhawanpreet Lakha <[email protected]>
Cc Harry Wentland <[email protected]>
Cc Alex Deucher <[email protected]>
Cc Leo Li <[email protected]>

Harry

Quoted 8 lines
---
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h |    1 +
 1 file changed, 1 insertion(+)

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h struct amdgpu_dm_backlight_caps { · line 145

Quoted 7 lines
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h +1 -0
@@ -139,6 +139,7 @@ struct amdgpu_dm_backlight_caps {
  * @backlight_link: Link on which to control backlight
  * @backlight_caps: Capabilities of the backlight device
  * @freesync_module: Module handling freesync calculations
+ * @hdcp_workqueue: workqueue for display manager interaction with HDCP module
  * @fw_dmcu: Reference to DMCU firmware
  * @dmcu_fw_version: Version of the DMCU firmware
  * @soc_bounding_box: SOC bounding box values provided by gpu_info FW

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx