]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
amdgpu/pp: move PhwVega10_Magic to static const.
authorDave Airlie <airlied@redhat.com>
Wed, 27 Sep 2017 23:32:49 +0000 (09:32 +1000)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 28 Sep 2017 20:03:26 +0000 (16:03 -0400)
This isn't used outside this file.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.h

index 80e41be3bf7bab7e508769a9935a437c8f7a6985..71b94241ea7a95ade6b7ca97ce20af140c22ba5b 100644 (file)
@@ -81,7 +81,7 @@ static const uint32_t channel_number[] = {1, 2, 0, 4, 0, 8, 0, 16, 2};
 static int vega10_force_clock_level(struct pp_hwmgr *hwmgr,
                enum pp_clock_type type, uint32_t mask);
 
-const ULONG PhwVega10_Magic = (ULONG)(PHM_VIslands_Magic);
+static const ULONG PhwVega10_Magic = (ULONG)(PHM_VIslands_Magic);
 
 struct vega10_power_state *cast_phw_vega10_power_state(
                                  struct pp_hw_power_state *hw_ps)
index 676cd77358837ad9c604c93352808285049e13a9..b4b461c3b8ee88b1e3a6fededc8b5b127cd3305e 100644 (file)
@@ -31,7 +31,6 @@
 #include "vega10_ppsmc.h"
 #include "vega10_powertune.h"
 
-extern const uint32_t PhwVega10_Magic;
 #define VEGA10_MAX_HARDWARE_POWERLEVELS 2
 
 #define WaterMarksExist  1