[PATCH 3/3] drm/amdkfd: Add proper prefix to functions

Michel Dänzer michel at daenzer.net
Fri Oct 19 07:20:30 UTC 2018


On 2018-10-18 11:15 p.m., Lin, Amber wrote:
> Add amdgpu_amdkfd_ prefix to amdgpu functions served for amdkfd usage.
> 
> Signed-off-by: Amber Lin <Amber.Lin at amd.com>
> 
>  [...]
> 
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
> index c31a884..4e384ab 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
> @@ -268,7 +268,7 @@ void amdgpu_amdkfd_gpu_reset(struct kgd_dev *kgd)
>  		amdgpu_device_gpu_recover(adev, NULL);
>  }
>  
> -int alloc_gtt_mem(struct kgd_dev *kgd, size_t size,
> +int amdgpu_amdkfd_alloc_gtt_mem(struct kgd_dev *kgd, size_t size,
>  			void **mem_obj, uint64_t *gpu_addr,
>  			void **cpu_ptr, bool mqd_gfx9)

In cases like this, please fix up the indentation of continuation lines
to match the modified first line.


-- 
Earthling Michel Dänzer               |               http://www.amd.com
Libre software enthusiast             |             Mesa and X developer


More information about the amd-gfx mailing list