]> Git Repo - linux.git/commitdiff
drm/amdgpu: Fix defined but not used gfx9_cs_data in gfx_v9_4_3.c
authorSrinivasan Shanmugam <[email protected]>
Wed, 24 May 2023 15:07:26 +0000 (20:37 +0530)
committerAlex Deucher <[email protected]>
Fri, 9 Jun 2023 15:00:53 +0000 (11:00 -0400)
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 <[email protected]>
Cc: Alex Deucher <[email protected]>
Signed-off-by: Srinivasan Shanmugam <[email protected]>
Acked-by: Alex Deucher <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c

index ed41a7862d9f9e7f0cd5d95a129b707631088e59..bdaea50cafe7b296fb9b13044a1393679eebe0e8 100644 (file)
@@ -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"
This page took 0.05107 seconds and 4 git commands to generate.