[PATCH] drm/amd/pp: Use forward declaration in ppatomfwctrl.h

Rex Zhu Rex.Zhu at amd.com
Tue Apr 3 06:51:52 UTC 2018


Signed-off-by: Rex Zhu <Rex.Zhu at amd.com>
---
 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomfwctrl.c | 2 +-
 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomfwctrl.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/ppatomfwctrl.c b/drivers/gpu/drm/amd/powerplay/hwmgr/ppatomfwctrl.c
index 0adaf36..3443274 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/ppatomfwctrl.c
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/ppatomfwctrl.c
@@ -20,11 +20,11 @@
  * OTHER DEALINGS IN THE SOFTWARE.
  *
  */
-
 #include "ppatomfwctrl.h"
 #include "atomfirmware.h"
 #include "atom.h"
 #include "pp_debug.h"
+#include "hwmgr.h"
 
 static const union atom_voltage_object_v4 *pp_atomfwctrl_lookup_voltage_type_v4(
 		const struct atom_voltage_objects_info_v4_1 *voltage_object_info_table,
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/ppatomfwctrl.h b/drivers/gpu/drm/amd/powerplay/hwmgr/ppatomfwctrl.h
index 8df1e84f..55e28e4 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/ppatomfwctrl.h
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/ppatomfwctrl.h
@@ -24,7 +24,7 @@
 #ifndef PP_ATOMFWCTRL_H
 #define PP_ATOMFWCTRL_H
 
-#include "hwmgr.h"
+struct pp_hwmgr;
 
 typedef enum atom_smu9_syspll0_clock_id BIOS_CLKID;
 
-- 
1.9.1



More information about the amd-gfx mailing list