diff options
author | Huang Rui <ray.huang@amd.com> | 2017-08-04 04:56:38 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-08-15 14:46:13 -0400 |
commit | fa04b6ba14a12decd475f291be471387051af722 (patch) | |
tree | d9ee2938d3cd86e0318197df41923277404d00bc /drivers/gpu | |
parent | 07f65bb22fcc97a89f85570001512adb5d7973bd (diff) |
drm/amdgpu: set gfx_v9_0_ip_funcs as static
We won't use this member in other files, so set it static.
Signed-off-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gfx_v9_0.h | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c index c8180c193ab3..b39f81dda847 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | |||
@@ -4096,7 +4096,7 @@ static int gfx_v9_0_kiq_irq(struct amdgpu_device *adev, | |||
4096 | return 0; | 4096 | return 0; |
4097 | } | 4097 | } |
4098 | 4098 | ||
4099 | const struct amd_ip_funcs gfx_v9_0_ip_funcs = { | 4099 | static const struct amd_ip_funcs gfx_v9_0_ip_funcs = { |
4100 | .name = "gfx_v9_0", | 4100 | .name = "gfx_v9_0", |
4101 | .early_init = gfx_v9_0_early_init, | 4101 | .early_init = gfx_v9_0_early_init, |
4102 | .late_init = gfx_v9_0_late_init, | 4102 | .late_init = gfx_v9_0_late_init, |
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.h b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.h index 56ef652a575d..fa5a3fbaf6ab 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.h +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.h | |||
@@ -24,7 +24,6 @@ | |||
24 | #ifndef __GFX_V9_0_H__ | 24 | #ifndef __GFX_V9_0_H__ |
25 | #define __GFX_V9_0_H__ | 25 | #define __GFX_V9_0_H__ |
26 | 26 | ||
27 | extern const struct amd_ip_funcs gfx_v9_0_ip_funcs; | ||
28 | extern const struct amdgpu_ip_block_version gfx_v9_0_ip_block; | 27 | extern const struct amdgpu_ip_block_version gfx_v9_0_ip_block; |
29 | 28 | ||
30 | void gfx_v9_0_select_se_sh(struct amdgpu_device *adev, u32 se_num, u32 sh_num); | 29 | void gfx_v9_0_select_se_sh(struct amdgpu_device *adev, u32 se_num, u32 sh_num); |