[PATCH] drm/amd/pp: Use forward declaration in ppatomfwctrl.h
Alex Deucher
alexdeucher at gmail.com
Tue Apr 3 15:14:56 UTC 2018
On Tue, Apr 3, 2018 at 2:51 AM, Rex Zhu <Rex.Zhu at amd.com> wrote:
> Signed-off-by: Rex Zhu <Rex.Zhu at amd.com>
Reviewed-by: Alex Deucher <alexander.deucher 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
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
More information about the amd-gfx
mailing list