Re: [PATCH 39/40] drm/amd/amdgpu/gmc_v9_0: Remove unused table 'ecc_umc_mcumc_status_addrs'

2020-11-24 Thread Alex Deucher
On Mon, Nov 23, 2020 at 6:20 AM Lee Jones  wrote:
>
> Fixes the following W=1 kernel build warning(s):
>
>  drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c:382:23: warning: 
> ‘ecc_umc_mcumc_status_addrs’ defined but not used [-Wunused-const-variable=]
>
> Cc: Alex Deucher 
> Cc: "Christian König" 
> Cc: David Airlie 
> Cc: Daniel Vetter 
> Cc: amd-gfx@lists.freedesktop.org
> Cc: dri-de...@lists.freedesktop.org
> Signed-off-by: Lee Jones 

Applied.  Thanks!

Alex

> ---
>  drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 35 ---
>  1 file changed, 35 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 
> b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
> index 0c3421d587e87..fbee43b4ba64d 100644
> --- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
> +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
> @@ -379,41 +379,6 @@ static const uint32_t ecc_umc_mcumc_ctrl_mask_addrs[] = {
> (0x001d43e0 + 0x1800),
>  };
>
> -static const uint32_t ecc_umc_mcumc_status_addrs[] = {
> -   (0x000143c2 + 0x),
> -   (0x000143c2 + 0x0800),
> -   (0x000143c2 + 0x1000),
> -   (0x000143c2 + 0x1800),
> -   (0x000543c2 + 0x),
> -   (0x000543c2 + 0x0800),
> -   (0x000543c2 + 0x1000),
> -   (0x000543c2 + 0x1800),
> -   (0x000943c2 + 0x),
> -   (0x000943c2 + 0x0800),
> -   (0x000943c2 + 0x1000),
> -   (0x000943c2 + 0x1800),
> -   (0x000d43c2 + 0x),
> -   (0x000d43c2 + 0x0800),
> -   (0x000d43c2 + 0x1000),
> -   (0x000d43c2 + 0x1800),
> -   (0x001143c2 + 0x),
> -   (0x001143c2 + 0x0800),
> -   (0x001143c2 + 0x1000),
> -   (0x001143c2 + 0x1800),
> -   (0x001543c2 + 0x),
> -   (0x001543c2 + 0x0800),
> -   (0x001543c2 + 0x1000),
> -   (0x001543c2 + 0x1800),
> -   (0x001943c2 + 0x),
> -   (0x001943c2 + 0x0800),
> -   (0x001943c2 + 0x1000),
> -   (0x001943c2 + 0x1800),
> -   (0x001d43c2 + 0x),
> -   (0x001d43c2 + 0x0800),
> -   (0x001d43c2 + 0x1000),
> -   (0x001d43c2 + 0x1800),
> -};
> -
>  static int gmc_v9_0_ecc_interrupt_state(struct amdgpu_device *adev,
> struct amdgpu_irq_src *src,
> unsigned type,
> --
> 2.25.1
>
> ___
> dri-devel mailing list
> dri-de...@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
___
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx


[PATCH 39/40] drm/amd/amdgpu/gmc_v9_0: Remove unused table 'ecc_umc_mcumc_status_addrs'

2020-11-23 Thread Lee Jones
Fixes the following W=1 kernel build warning(s):

 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c:382:23: warning: 
‘ecc_umc_mcumc_status_addrs’ defined but not used [-Wunused-const-variable=]

Cc: Alex Deucher 
Cc: "Christian König" 
Cc: David Airlie 
Cc: Daniel Vetter 
Cc: amd-gfx@lists.freedesktop.org
Cc: dri-de...@lists.freedesktop.org
Signed-off-by: Lee Jones 
---
 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 35 ---
 1 file changed, 35 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 
b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
index 0c3421d587e87..fbee43b4ba64d 100644
--- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
@@ -379,41 +379,6 @@ static const uint32_t ecc_umc_mcumc_ctrl_mask_addrs[] = {
(0x001d43e0 + 0x1800),
 };
 
-static const uint32_t ecc_umc_mcumc_status_addrs[] = {
-   (0x000143c2 + 0x),
-   (0x000143c2 + 0x0800),
-   (0x000143c2 + 0x1000),
-   (0x000143c2 + 0x1800),
-   (0x000543c2 + 0x),
-   (0x000543c2 + 0x0800),
-   (0x000543c2 + 0x1000),
-   (0x000543c2 + 0x1800),
-   (0x000943c2 + 0x),
-   (0x000943c2 + 0x0800),
-   (0x000943c2 + 0x1000),
-   (0x000943c2 + 0x1800),
-   (0x000d43c2 + 0x),
-   (0x000d43c2 + 0x0800),
-   (0x000d43c2 + 0x1000),
-   (0x000d43c2 + 0x1800),
-   (0x001143c2 + 0x),
-   (0x001143c2 + 0x0800),
-   (0x001143c2 + 0x1000),
-   (0x001143c2 + 0x1800),
-   (0x001543c2 + 0x),
-   (0x001543c2 + 0x0800),
-   (0x001543c2 + 0x1000),
-   (0x001543c2 + 0x1800),
-   (0x001943c2 + 0x),
-   (0x001943c2 + 0x0800),
-   (0x001943c2 + 0x1000),
-   (0x001943c2 + 0x1800),
-   (0x001d43c2 + 0x),
-   (0x001d43c2 + 0x0800),
-   (0x001d43c2 + 0x1000),
-   (0x001d43c2 + 0x1800),
-};
-
 static int gmc_v9_0_ecc_interrupt_state(struct amdgpu_device *adev,
struct amdgpu_irq_src *src,
unsigned type,
-- 
2.25.1

___
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx