Skip to contentSkip to conversation

drm/amdgpu: fix html doc generation warning

PATCH In review Sunil Khatri 2 participants 2 messages Oct 2, 2024

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

PATCH 1/1 drm/amdgpu: fix html doc generation warning

Fix the html doc warning due to mix up of the
forward declaration of struct amdgpu_ip_block.

---
 drivers/gpu/drm/amd/include/amd_shared.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/include/amd_shared.h +2 -2
index d892273fdb10..f98b3a544477 100644
@@ -28,6 +28,8 @@
 
 
 #define AMD_MAX_USEC_TIMEOUT		1000000  /* 1000 ms */
+struct amdgpu_ip_block;
+
 
 /*
  * Chip flags
@@ -375,8 +377,6 @@ enum amd_dpm_forced_level;
  * making calls to hooks from each IP block. This list is ordered to ensure
  * that the driver initializes the IP blocks in a safe sequence.
  */
-struct amdgpu_ip_block;
-
 struct amd_ip_funcs {
 	char *name;
 	int (*early_init)(struct amdgpu_ip_block *ip_block);
Signature · 1 line
2.34.1
maintainer Reviewed-by on v1 1/1
#1 lore raw

Am 02.10.24 um 11:26 schrieb Sunil Khatri:

Quoted 13 lines

Fix the html doc warning due to mix up of the
forward declaration of struct amdgpu_ip_block.

---
  drivers/gpu/drm/amd/include/amd_shared.h | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/include/amd_shared.h +0 -0
index d892273fdb10..f98b3a544477 100644

drivers/gpu/drm/amd/include/amd_shared.h line 32

Quoted 5 lines
drivers/gpu/drm/amd/include/amd_shared.h +2 -0
@@ -28,6 +28,8 @@
 
 
  #define AMD_MAX_USEC_TIMEOUT		1000000  /* 1000 ms */
+struct amdgpu_ip_block;
+

Not a most have but probably best to add an empty line between the #define and the forward declaration.

Quoted 12 lines
drivers/gpu/drm/amd/include/amd_shared.h +0 -2
  /*
   * Chip flags
@@ -375,8 +377,6 @@ enum amd_dpm_forced_level;
   * making calls to hooks from each IP block. This list is ordered to ensure
   * that the driver initializes the IP blocks in a safe sequence.
   */
-struct amdgpu_ip_block;
-
  struct amd_ip_funcs {
  	char *name;
  	int (*early_init)(struct amdgpu_ip_block *ip_block);