diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1998-drm-amdgpu-make-function-uvd_v6_0_enc_get_destroy_ms.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1998-drm-amdgpu-make-function-uvd_v6_0_enc_get_destroy_ms.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1998-drm-amdgpu-make-function-uvd_v6_0_enc_get_destroy_ms.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1998-drm-amdgpu-make-function-uvd_v6_0_enc_get_destroy_ms.patch new file mode 100644 index 00000000..015024db --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1998-drm-amdgpu-make-function-uvd_v6_0_enc_get_destroy_ms.patch @@ -0,0 +1,42 @@ +From 27ef4058ffa4eb6e9db5a757dfe72b3dc5a762b5 Mon Sep 17 00:00:00 2001 +From: Colin Ian King <colin.king@canonical.com> +Date: Wed, 11 Oct 2017 10:21:11 +0100 +Subject: [PATCH 1998/4131] drm/amdgpu: make function + uvd_v6_0_enc_get_destroy_msg static +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +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 | 5 +++-- + 1 file 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 931ba9e..920910a 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 @@ static int uvd_v6_0_enc_get_create_msg(struct amdgpu_ring *ring, uint32_t handle + * + * 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; +-- +2.7.4 + |