diff mbox series

drm/amdgpu: fix mismatch warning between the prototype and function name

Message ID 20211216043937.138522-1-ray.huang@amd.com (mailing list archive)
State New, archived
Headers show
Series drm/amdgpu: fix mismatch warning between the prototype and function name | expand

Commit Message

Huang Rui Dec. 16, 2021, 4:39 a.m. UTC
Fix the typo to align with the prototype and function name.

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c:631: warning: expecting
prototype for amdgpu_fence_clear_job_fences(). Prototype was for
amdgpu_fence_driver_clear_job_fences() instead

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Huang Rui <ray.huang@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Christian König Dec. 16, 2021, 8:19 a.m. UTC | #1
Am 16.12.21 um 05:39 schrieb Huang Rui:
> Fix the typo to align with the prototype and function name.
>
> All warnings (new ones prefixed by >>):
>
>>> drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c:631: warning: expecting
> prototype for amdgpu_fence_clear_job_fences(). Prototype was for
> amdgpu_fence_driver_clear_job_fences() instead
>
> Reported-by: kernel test robot <lkp@intel.com>
> Signed-off-by: Huang Rui <ray.huang@amd.com>

Reviewed-by: Christian König <christian.koenig@amd.com>

> ---
>   drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
> index db41d16838b9..9afd11ca2709 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
> @@ -622,7 +622,7 @@ void amdgpu_fence_driver_hw_init(struct amdgpu_device *adev)
>   }
>   
>   /**
> - * amdgpu_fence_clear_job_fences - clear job embedded fences of ring
> + * amdgpu_fence_driver_clear_job_fences - clear job embedded fences of ring
>    *
>    * @ring: fence of the ring to be cleared
>    *
diff mbox series

Patch

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
index db41d16838b9..9afd11ca2709 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
@@ -622,7 +622,7 @@  void amdgpu_fence_driver_hw_init(struct amdgpu_device *adev)
 }
 
 /**
- * amdgpu_fence_clear_job_fences - clear job embedded fences of ring
+ * amdgpu_fence_driver_clear_job_fences - clear job embedded fences of ring
  *
  * @ring: fence of the ring to be cleared
  *