[PATCH 2/3] drm/amdgpu: add a forward declaration for struct amdgpu_iv_entry
Alex Deucher
alexander.deucher at amd.com
Mon Jan 10 20:19:28 UTC 2022
To prevent:
warning: ‘struct amdgpu_iv_entry’ declared inside parameter list will not be visible outside of this definition or declaration
Fixes: 0f60e1036d85 ("drm/amdgpu: Modify the compilation failed problem when other ras blocks' .h include amdgpu_ras.h")
Cc: yipechai <YiPeng.Chai at amd.com>
Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h
index f604a2235a9c..7a4d82378205 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h
@@ -29,6 +29,8 @@
#include "ta_ras_if.h"
#include "amdgpu_ras_eeprom.h"
+struct amdgpu_iv_entry;
+
#define AMDGPU_RAS_FLAG_INIT_BY_VBIOS (0x1 << 0)
enum amdgpu_ras_block {
--
2.33.1
More information about the amd-gfx
mailing list