Skip to contentSkip to conversation

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

PATCH In review Rex Zhu 2 participants 2 messages Apr 3, 2018 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

Rex Zhu

author
#0 lore raw

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

---
 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(-)
drivers/gpu/drm/amd/powerplay/hwmgr/ppatomfwctrl.c +1 -1
index 0adaf36..3443274 100644
@@ -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,
drivers/gpu/drm/amd/powerplay/hwmgr/ppatomfwctrl.h +1 -1
index 8df1e84f..55e28e4 100644
@@ -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;
 
Signature · 6 lines
1.9.1

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

A message that is not in the archive (sent off-list or not yet received): 1522738312-16851-1-git-send-email-Rex.Zhu-5C7GfCeVMHo@public.gmane.org

Reviewed-by
#2 lore raw
Quoted 1 line · Rex Zhu
Quoted 38 lines
---
 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(-)
drivers/gpu/drm/amd/powerplay/hwmgr/ppatomfwctrl.c +1 -1
index 0adaf36..3443274 100644
@@ -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,
drivers/gpu/drm/amd/powerplay/hwmgr/ppatomfwctrl.h +1 -2
index 8df1e84f..55e28e4 100644
@@ -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

Quoted 4 lines

_______________________________________________
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