drm/amdgpu: fix html doc generation warning
Subsystems (2)
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.
Signed-off-by Sunil Khatri <[email protected]>
--- 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
@@ -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
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 structamdgpu_ip_block.Signed-off-by Sunil Khatri <[email protected]>--- 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
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.
Reviewed-by Christian König <[email protected]> either way.
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);