Re: [PATCH 03/10] drm/amdgpu: add missing function prototype for amdgpu_ras_mca_query_error_status

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Dec 7, 2021 at 10:17 PM Isabella Basso <isabbasso@xxxxxxxxxx> wrote:
>
> This commit fixes the compile-time warning below:
>
>  warning: no previous prototype for ‘amdgpu_ras_mca_query_error_status’
>  [-Wmissing-prototypes]

I think this function can just be made static.  It's not used outside
of amdgpu_ras.c.

Alex

>
> Signed-off-by: Isabella Basso <isabbasso@xxxxxxxxxx>
> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h
> index 1c708122d492..34e651f39bd1 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h
> @@ -620,6 +620,10 @@ int amdgpu_ras_sysfs_remove(struct amdgpu_device *adev,
>
>  void amdgpu_ras_debugfs_create_all(struct amdgpu_device *adev);
>
> +void amdgpu_ras_mca_query_error_status(struct amdgpu_device *adev,
> +                                      struct ras_common_if *ras_block,
> +                                      struct ras_err_data  *err_data);
> +
>  int amdgpu_ras_query_error_status(struct amdgpu_device *adev,
>                 struct ras_query_if *info);
>
> --
> 2.34.1
>




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux