diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-10-11 05:21:11 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-10-19 15:26:57 -0400 |
commit | f15507a1ac0dcdbda0c6c4fe4dc168bfe0034535 (patch) | |
tree | 2c36a8df42e1a54821beccc71bbe59671be1ec16 /drivers/gpu/drm/amd | |
parent | 37a49343b467a8a475fc86d9e9e267f6fc679ac0 (diff) |
drm/amdgpu: make function uvd_v6_0_enc_get_destroy_msg static
The function uvd_v6_0_enc_get_destroy_msg is local to the source and
does not need to be in global scope, so make it static.
Cleans up sparse warning:
symbol 'uvd_v6_0_enc_get_destroy_msg' was not declared. Should it be
static?
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c b/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c index 60af7310a234..71299c67c517 100644 --- a/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c +++ b/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c | |||
@@ -268,8 +268,9 @@ err: | |||
268 | * | 268 | * |
269 | * Close up a stream for HW test or if userspace failed to do so | 269 | * Close up a stream for HW test or if userspace failed to do so |
270 | */ | 270 | */ |
271 | int uvd_v6_0_enc_get_destroy_msg(struct amdgpu_ring *ring, uint32_t handle, | 271 | static int uvd_v6_0_enc_get_destroy_msg(struct amdgpu_ring *ring, |
272 | bool direct, struct dma_fence **fence) | 272 | uint32_t handle, |
273 | bool direct, struct dma_fence **fence) | ||
273 | { | 274 | { |
274 | const unsigned ib_size_dw = 16; | 275 | const unsigned ib_size_dw = 16; |
275 | struct amdgpu_job *job; | 276 | struct amdgpu_job *job; |