Skip to contentSkip to conversation

drm/amdgpu/vcn: fix no previous prototype warning

PATCH In review Ruijing Dong 2 participants 2 messages Jun 22, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdgpu/vcn: fix no previous prototype warning

Declare 'static', as the function is not indended to be used outside of this translation unit.

Fixes 748483dbc215 ("drm/amdgpu/vcn: add unified queue ib test")
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c +1 -1
index fea436023351..1bfdfb9207ac 100644
@@ -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;
Signature · 1 line
2.25.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 27 lines · Ruijing Dong

Declare 'static', as the function is not indended to be used outside of this translation unit.

Fixes 748483dbc215 ("drm/amdgpu/vcn: add unified queue ib test")
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c +1 -2
index fea436023351..1bfdfb9207ac 100644
@@ -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;
--

2.25.1