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

Configure Feed

Select the types of activity you want to include in your feed.

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'

Signed-off-by: Sunil Khatri <sunil.khatri@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Sunil Khatri and committed by
Alex Deucher
093bbeb9 ea8094ab

+2 -2
+2 -2
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
··· 373 373 * 0 on success, negative error code otherwise. 374 374 */ 375 375 int amdgpu_bo_create_isp_user(struct amdgpu_device *adev, 376 - struct dma_buf *dbuf, u32 domain, struct amdgpu_bo **bo, 376 + struct dma_buf *dma_buf, u32 domain, struct amdgpu_bo **bo, 377 377 u64 *gpu_addr) 378 378 379 379 { 380 380 struct drm_gem_object *gem_obj; 381 381 int r; 382 382 383 - gem_obj = amdgpu_gem_prime_import(&adev->ddev, dbuf); 383 + gem_obj = amdgpu_gem_prime_import(&adev->ddev, dma_buf); 384 384 *bo = gem_to_amdgpu_bo(gem_obj); 385 385 if (!(*bo)) { 386 386 dev_err(adev->dev, "failed to get valid isp user bo\n");