drm/amdgpu: make function uvd_v6_0_enc_get_destroy_msg static
authorColin Ian King <colin.king@canonical.com>
Wed, 11 Oct 2017 09:21:11 +0000 (10:21 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 19 Oct 2017 19:26:57 +0000 (15:26 -0400)
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>
drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c

index 60af731..71299c6 100644 (file)
@@ -268,8 +268,9 @@ err:
  *
  * Close up a stream for HW test or if userspace failed to do so
  */
-int uvd_v6_0_enc_get_destroy_msg(struct amdgpu_ring *ring, uint32_t handle,
-                                bool direct, struct dma_fence **fence)
+static int uvd_v6_0_enc_get_destroy_msg(struct amdgpu_ring *ring,
+                                       uint32_t handle,
+                                       bool direct, struct dma_fence **fence)
 {
        const unsigned ib_size_dw = 16;
        struct amdgpu_job *job;