[PATCH] drm/amdgpu: Fix defined but not used gfx9_cs_data in gfx_v9_4_3.c

Alex Deucher alexdeucher at gmail.com
Wed May 24 15:24:41 UTC 2023


On Wed, May 24, 2023 at 11:22 AM Srinivasan Shanmugam
<srinivasan.shanmugam at amd.com> wrote:
>
> gcc with W=1
> In file included from drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c:33:
> drivers/gpu/drm/amd/amdgpu/clearstate_gfx9.h:939:36: warning: ‘gfx9_cs_data’ defined but not used [-Wunused-const-variable=]
>   939 | static const struct cs_section_def gfx9_cs_data[] = {
>       |
>
> gfx9_cs_data is not used in gfx_v9_4_3.c, hence remove its
> include in gfx_v9_4_3.c
>
> Cc: Christian König <christian.koenig at amd.com>
> Cc: Alex Deucher <alexander.deucher at amd.com>
> Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam at amd.com>

Acked-by: Alex Deucher <alexander.deucher at amd.com>

> ---
>  drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c
> index ed41a7862d9f..bdaea50cafe7 100644
> --- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c
> +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c
> @@ -29,7 +29,6 @@
>  #include "soc15_common.h"
>  #include "vega10_enum.h"
>
> -#include "clearstate_gfx9.h"
>  #include "v9_structs.h"
>
>  #include "ivsrcid/gfx/irqsrcs_gfx_9_0.h"
> --
> 2.25.1
>


More information about the amd-gfx mailing list