Message ID | 20201110193112.988999-7-lee.jones@linaro.org |
---|---|
State | Accepted |
Commit | 3c8ea32252767a4b430e4747e2200c7fd8b13525 |
Headers | show |
Series | Rid W=1 warnings from GPU | expand |
On Tue, Nov 10, 2020 at 2:31 PM Lee Jones <lee.jones@linaro.org> wrote: > > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/radeon/trinity_dpm.c:146:18: warning: ‘trinity_sysls_default’ defined but not used [-Wunused-const-variable=] > drivers/gpu/drm/radeon/trinity_dpm.c:131:18: warning: ‘trinity_mgcg_shls_disable’ defined but not used [-Wunused-const-variable=] > drivers/gpu/drm/radeon/trinity_dpm.c:120:18: warning: ‘trinity_mgcg_shls_enable’ defined but not used [-Wunused-const-variable=] > > Cc: Alex Deucher <alexander.deucher@amd.com> > Cc: "Christian König" <christian.koenig@amd.com> > Cc: David Airlie <airlied@linux.ie> > Cc: Daniel Vetter <daniel@ffwll.ch> > Cc: amd-gfx@lists.freedesktop.org > Cc: dri-devel@lists.freedesktop.org > Signed-off-by: Lee Jones <lee.jones@linaro.org> Applied. Thanks! Alex > --- > drivers/gpu/drm/radeon/trinity_dpm.c | 44 ---------------------------- > 1 file changed, 44 deletions(-) > > diff --git a/drivers/gpu/drm/radeon/trinity_dpm.c b/drivers/gpu/drm/radeon/trinity_dpm.c > index 4d93b84aa7397..e005c18aac00e 100644 > --- a/drivers/gpu/drm/radeon/trinity_dpm.c > +++ b/drivers/gpu/drm/radeon/trinity_dpm.c > @@ -116,55 +116,11 @@ static const u32 trinity_mgcg_shls_default[] = > 0x00009220, 0x00090008, 0xffffffff, > 0x00009294, 0x00000000, 0xffffffff > }; > - > -static const u32 trinity_mgcg_shls_enable[] = > -{ > - /* Register, Value, Mask */ > - 0x0000802c, 0xc0000000, 0xffffffff, > - 0x000008f8, 0x00000000, 0xffffffff, > - 0x000008fc, 0x00000000, 0x000133FF, > - 0x000008f8, 0x00000001, 0xffffffff, > - 0x000008fc, 0x00000000, 0xE00B03FC, > - 0x00009150, 0x96944200, 0xffffffff > -}; > - > -static const u32 trinity_mgcg_shls_disable[] = > -{ > - /* Register, Value, Mask */ > - 0x0000802c, 0xc0000000, 0xffffffff, > - 0x00009150, 0x00600000, 0xffffffff, > - 0x000008f8, 0x00000000, 0xffffffff, > - 0x000008fc, 0xffffffff, 0x000133FF, > - 0x000008f8, 0x00000001, 0xffffffff, > - 0x000008fc, 0xffffffff, 0xE00B03FC > -}; > #endif > > #ifndef TRINITY_SYSLS_SEQUENCE > #define TRINITY_SYSLS_SEQUENCE 100 > > -static const u32 trinity_sysls_default[] = > -{ > - /* Register, Value, Mask */ > - 0x000055e8, 0x00000000, 0xffffffff, > - 0x0000d0bc, 0x00000000, 0xffffffff, > - 0x0000d8bc, 0x00000000, 0xffffffff, > - 0x000015c0, 0x000c1401, 0xffffffff, > - 0x0000264c, 0x000c0400, 0xffffffff, > - 0x00002648, 0x000c0400, 0xffffffff, > - 0x00002650, 0x000c0400, 0xffffffff, > - 0x000020b8, 0x000c0400, 0xffffffff, > - 0x000020bc, 0x000c0400, 0xffffffff, > - 0x000020c0, 0x000c0c80, 0xffffffff, > - 0x0000f4a0, 0x000000c0, 0xffffffff, > - 0x0000f4a4, 0x00680fff, 0xffffffff, > - 0x00002f50, 0x00000404, 0xffffffff, > - 0x000004c8, 0x00000001, 0xffffffff, > - 0x0000641c, 0x00000000, 0xffffffff, > - 0x00000c7c, 0x00000000, 0xffffffff, > - 0x00006dfc, 0x00000000, 0xffffffff > -}; > - > static const u32 trinity_sysls_disable[] = > { > /* Register, Value, Mask */ > -- > 2.25.1 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel
diff --git a/drivers/gpu/drm/radeon/trinity_dpm.c b/drivers/gpu/drm/radeon/trinity_dpm.c index 4d93b84aa7397..e005c18aac00e 100644 --- a/drivers/gpu/drm/radeon/trinity_dpm.c +++ b/drivers/gpu/drm/radeon/trinity_dpm.c @@ -116,55 +116,11 @@ static const u32 trinity_mgcg_shls_default[] = 0x00009220, 0x00090008, 0xffffffff, 0x00009294, 0x00000000, 0xffffffff }; - -static const u32 trinity_mgcg_shls_enable[] = -{ - /* Register, Value, Mask */ - 0x0000802c, 0xc0000000, 0xffffffff, - 0x000008f8, 0x00000000, 0xffffffff, - 0x000008fc, 0x00000000, 0x000133FF, - 0x000008f8, 0x00000001, 0xffffffff, - 0x000008fc, 0x00000000, 0xE00B03FC, - 0x00009150, 0x96944200, 0xffffffff -}; - -static const u32 trinity_mgcg_shls_disable[] = -{ - /* Register, Value, Mask */ - 0x0000802c, 0xc0000000, 0xffffffff, - 0x00009150, 0x00600000, 0xffffffff, - 0x000008f8, 0x00000000, 0xffffffff, - 0x000008fc, 0xffffffff, 0x000133FF, - 0x000008f8, 0x00000001, 0xffffffff, - 0x000008fc, 0xffffffff, 0xE00B03FC -}; #endif #ifndef TRINITY_SYSLS_SEQUENCE #define TRINITY_SYSLS_SEQUENCE 100 -static const u32 trinity_sysls_default[] = -{ - /* Register, Value, Mask */ - 0x000055e8, 0x00000000, 0xffffffff, - 0x0000d0bc, 0x00000000, 0xffffffff, - 0x0000d8bc, 0x00000000, 0xffffffff, - 0x000015c0, 0x000c1401, 0xffffffff, - 0x0000264c, 0x000c0400, 0xffffffff, - 0x00002648, 0x000c0400, 0xffffffff, - 0x00002650, 0x000c0400, 0xffffffff, - 0x000020b8, 0x000c0400, 0xffffffff, - 0x000020bc, 0x000c0400, 0xffffffff, - 0x000020c0, 0x000c0c80, 0xffffffff, - 0x0000f4a0, 0x000000c0, 0xffffffff, - 0x0000f4a4, 0x00680fff, 0xffffffff, - 0x00002f50, 0x00000404, 0xffffffff, - 0x000004c8, 0x00000001, 0xffffffff, - 0x0000641c, 0x00000000, 0xffffffff, - 0x00000c7c, 0x00000000, 0xffffffff, - 0x00006dfc, 0x00000000, 0xffffffff -}; - static const u32 trinity_sysls_disable[] = { /* Register, Value, Mask */
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/radeon/trinity_dpm.c:146:18: warning: ‘trinity_sysls_default’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/radeon/trinity_dpm.c:131:18: warning: ‘trinity_mgcg_shls_disable’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/radeon/trinity_dpm.c:120:18: warning: ‘trinity_mgcg_shls_enable’ defined but not used [-Wunused-const-variable=] Cc: Alex Deucher <alexander.deucher@amd.com> Cc: "Christian König" <christian.koenig@amd.com> Cc: David Airlie <airlied@linux.ie> Cc: Daniel Vetter <daniel@ffwll.ch> Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones <lee.jones@linaro.org> --- drivers/gpu/drm/radeon/trinity_dpm.c | 44 ---------------------------- 1 file changed, 44 deletions(-)