Re: [PATCH v2 03/10] drm/amdgpu: fix amdgpu_ras_mca_query_error_status scope

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

 



Applied.  Thanks!

Alex

On Thu, Dec 9, 2021 at 12:01 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]
>
> Changes since v1:
> - As suggested by Alexander Deucher:
>   1. Make function static instead of adding prototype.
>
> Signed-off-by: Isabella Basso <isabbasso@xxxxxxxxxx>
> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
> index 00f94f6b5287..dc2a8d58d578 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
> @@ -867,9 +867,9 @@ static int amdgpu_ras_enable_all_features(struct amdgpu_device *adev,
>  /* feature ctl end */
>
>
> -void amdgpu_ras_mca_query_error_status(struct amdgpu_device *adev,
> -                                      struct ras_common_if *ras_block,
> -                                      struct ras_err_data  *err_data)
> +static void amdgpu_ras_mca_query_error_status(struct amdgpu_device *adev,
> +                                             struct ras_common_if *ras_block,
> +                                             struct ras_err_data  *err_data)
>  {
>         switch (ras_block->sub_block_index) {
>         case AMDGPU_RAS_MCA_BLOCK__MP0:
> --
> 2.34.1
>




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

  Powered by Linux