drm/amdgpu: Update the variable name to dma_buf
Subsystems (2)
PATCH v2 1/2 drm/amdgpu: Update the variable name to dma_buf
Instead of fixing the warning for missing variable its better to update the variable name to match with the style followed in the code.
This will fix the below mentioned warning:
warning: Function parameter or struct member 'dbuf' not described in 'amdgpu_bo_create_isp_user'
warning: Excess function parameter 'dma_buf' description in 'amdgpu_bo_create_isp_user'
--- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +2 -2
@@ -373,14 +373,14 @@ EXPORT_SYMBOL(amdgpu_bo_create_kernel);* 0 on success, negative error code otherwise. */ int amdgpu_bo_create_isp_user (struct amdgpu_device *adev, -struct dma_buf *dbuf,u32 domain,struct amdgpu_bo **bo, +struct dma_buf *dma_buf,u32 domain,struct amdgpu_bo **bo,u64 *gpu_addr) {struct drm_gem_object *gem_obj;int r; - gem_obj =amdgpu_gem_prime_import (&adev->ddev, dbuf); + gem_obj =amdgpu_gem_prime_import (&adev->ddev, dma_buf); *bo =gem_to_amdgpu_bo (gem_obj);if (!(*bo)) {dev_err (adev->dev,"failed to get valid isp user bo\n" );
Signature · 1 line
2.34.1
PATCH v2 2/2 drm/amdgpu: add "restore" missing variable comment
add "restore" missing variable in the fucntions sdma_v4_4_2_page_resume and sdma_v4_4_2_inst_start.
This fixes the warning:
warning: Function parameter or struct member 'restore' not described in 'sdma_v4_4_2_page_resume'
warning: Function parameter or struct member 'restore' not described in 'sdma_v4_4_2_inst_start'
--- drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c +2 -0
@@ -764,6 +764,7 @@ static void sdma_v4_4_2_gfx_resume(struct amdgpu_device *adev, unsigned int i, b* * @adev: amdgpu_device pointer * @i: instance to resume +* @restore: boolean to say restore needed or not * * Set up the page DMA ring buffers and enable them. * Returns 0 for success, error for failure.
@@ -928,6 +929,7 @@ static int sdma_v4_4_2_inst_load_microcode(struct amdgpu_device *adev,* * @adev: amdgpu_device pointer * @inst_mask: mask of dma engine instances to be enabled +* @restore: boolean to say restore needed or not * * Set up the DMA engines and enable them. * Returns 0 for success, error for failure.
Signature · 1 line
2.34.1
Am 22.11.24 um 09:03 schrieb Sunil Khatri:
Quoted 9 lines
Instead of fixing the warning for missing variable its better to update the variable name to match with the style followed in the code.
This will fix the below mentioned warning:
warning: Function parameter or struct member 'dbuf' not described in 'amdgpu_bo_create_isp_user'
warning: Excess function parameter 'dma_buf' description in 'amdgpu_bo_create_isp_user'Signed-off-by Sunil Khatri <[email protected]>
Quoted 25 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +2
-2@@ -373,14 +373,14 @@ EXPORT_SYMBOL(amdgpu_bo_create_kernel);* 0 on success, negative error code otherwise. */ int amdgpu_bo_create_isp_user (struct amdgpu_device *adev, -struct dma_buf *dbuf,u32 domain,struct amdgpu_bo **bo, +struct dma_buf *dma_buf,u32 domain,struct amdgpu_bo **bo,u64 *gpu_addr) {struct drm_gem_object *gem_obj;int r; - gem_obj =amdgpu_gem_prime_import (&adev->ddev, dbuf); + gem_obj =amdgpu_gem_prime_import (&adev->ddev, dma_buf); *bo =gem_to_amdgpu_bo (gem_obj);if (!(*bo)) {dev_err (adev->dev,"failed to get valid isp user bo\n" );