From: Ruijing Dong Date: Wed, 22 Jun 2022 14:10:11 +0000 (-0400) Subject: drm/amdgpu/vcn: fix no previous prototype warning X-Git-Tag: v6.0-rc1~138^2~16^2~55 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f12d07d6e9f22bbe65d158de1435ec515acfb50a;p=thirdparty%2Fkernel%2Flinux.git drm/amdgpu/vcn: fix no previous prototype warning Declare 'static', as the function is not intended to be used outside of this translation unit. Fixes: 4ed49c954e35 ("drm/amdgpu/vcn: add unified queue ib test") Reported-by: kernel test robot Reviewed-by: James Zhu Signed-off-by: Ruijing Dong Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c index fea4360233514..1bfdfb9207acf 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c @@ -330,7 +330,7 @@ int amdgpu_vcn_sw_fini(struct amdgpu_device *adev) } /* from vcn4 and above, only unified queue is used */ -bool amdgpu_vcn_using_unified_queue(struct amdgpu_ring *ring) +static bool amdgpu_vcn_using_unified_queue(struct amdgpu_ring *ring) { struct amdgpu_device *adev = ring->adev; bool ret = false;