Commit 48c4aaeef621 ("drm/amdgpu/ttm: Make buffer copy source readonly")
introduces a new parameter @readonly in function amdgpu_ttm_map_buffer()
but doesn't update the documentation, leading to the following warning:Warning: drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c:209 function parameter 'readonly' not described in 'amdgpu_ttm_map_buffer' Add the missing description to the kernel doc comments for the readonly parameter. Signed-off-by: Arnaud Bonnet <[email protected]> --- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c index 0f86777250fc..d3a875a32af1 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c @@ -195,6 +195,7 @@ amdgpu_ttm_job_submit(struct amdgpu_device *adev, struct amdgpu_ttm_buffer_entit * @addr: resulting address inside the MC address space * @vm_needs_flush: out, set true if a GART window was programmed (VMID 0 flush * needed) or false for a direct address + * @readonly: true if the mapping should be created with non-writeable pages * * Setup one of the GART windows to access a specific piece of memory or return * the physical address for local memory. -- 2.53.0
