Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu/vce: make some functions static

They are not used outside of the file they are defined in.

Reviewed-by: James Zhu <James.Zhu@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

+10 -10
+10 -5
drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c
··· 80 80 MODULE_FIRMWARE(FIRMWARE_VEGA20); 81 81 82 82 static void amdgpu_vce_idle_work_handler(struct work_struct *work); 83 + static int amdgpu_vce_get_create_msg(struct amdgpu_ring *ring, uint32_t handle, 84 + struct amdgpu_bo *bo, 85 + struct dma_fence **fence); 86 + static int amdgpu_vce_get_destroy_msg(struct amdgpu_ring *ring, uint32_t handle, 87 + bool direct, struct dma_fence **fence); 83 88 84 89 /** 85 90 * amdgpu_vce_init - allocate memory, load vce firmware ··· 433 428 * 434 429 * Open up a stream for HW test 435 430 */ 436 - int amdgpu_vce_get_create_msg(struct amdgpu_ring *ring, uint32_t handle, 437 - struct amdgpu_bo *bo, 438 - struct dma_fence **fence) 431 + static int amdgpu_vce_get_create_msg(struct amdgpu_ring *ring, uint32_t handle, 432 + struct amdgpu_bo *bo, 433 + struct dma_fence **fence) 439 434 { 440 435 const unsigned ib_size_dw = 1024; 441 436 struct amdgpu_job *job; ··· 513 508 * 514 509 * Close up a stream for HW test or if userspace failed to do so 515 510 */ 516 - int amdgpu_vce_get_destroy_msg(struct amdgpu_ring *ring, uint32_t handle, 517 - bool direct, struct dma_fence **fence) 511 + static int amdgpu_vce_get_destroy_msg(struct amdgpu_ring *ring, uint32_t handle, 512 + bool direct, struct dma_fence **fence) 518 513 { 519 514 const unsigned ib_size_dw = 1024; 520 515 struct amdgpu_job *job;
-5
drivers/gpu/drm/amd/amdgpu/amdgpu_vce.h
··· 58 58 int amdgpu_vce_entity_init(struct amdgpu_device *adev); 59 59 int amdgpu_vce_suspend(struct amdgpu_device *adev); 60 60 int amdgpu_vce_resume(struct amdgpu_device *adev); 61 - int amdgpu_vce_get_create_msg(struct amdgpu_ring *ring, uint32_t handle, 62 - struct amdgpu_bo *bo, 63 - struct dma_fence **fence); 64 - int amdgpu_vce_get_destroy_msg(struct amdgpu_ring *ring, uint32_t handle, 65 - bool direct, struct dma_fence **fence); 66 61 void amdgpu_vce_free_handles(struct amdgpu_device *adev, struct drm_file *filp); 67 62 int amdgpu_vce_ring_parse_cs(struct amdgpu_cs_parser *p, uint32_t ib_idx); 68 63 int amdgpu_vce_ring_parse_cs_vm(struct amdgpu_cs_parser *p, uint32_t ib_idx);