drm/amdgpu: Add parameter documentation for amdgpu_sync_fence
authorSrinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Fri, 21 Mar 2025 01:23:47 +0000 (06:53 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 21 Mar 2025 16:16:36 +0000 (12:16 -0400)
The 'flags' parameter, which specifies memory allocation behavior while
creating a sync entry,

Fixes the below with gcc W=1:
drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c:162: warning: Function parameter or struct member 'flags' not described in 'amdgpu_sync_fence'

Cc: Christian König <christian.koenig@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c

index c5f9db6b32a496b2cb1b949a429b20240dfde9a8..5576ed0b508f056ad03357f4a09265f8b57aaf8d 100644 (file)
@@ -154,6 +154,7 @@ static bool amdgpu_sync_add_later(struct amdgpu_sync *sync, struct dma_fence *f)
  *
  * @sync: sync object to add fence to
  * @f: fence to sync to
+ * @flags: memory allocation flags to use when allocating sync entry
  *
  * Add the fence to the sync object.
  */