[PATCH V2 2/2] drm/amdgpu: To eliminate the warning of no previous prototype for 'amdgpu_ras_block_match_default'
Zhou1, Tao
Tao.Zhou1 at amd.com
Thu Jan 13 10:49:14 UTC 2022
[AMD Official Use Only]
The subject can be simplified as "fix compile warning for ras_block_match_default", with that fixed the series is:
Reviewed-by: Tao Zhou <tao.zhou1 at amd.com>
> -----Original Message-----
> From: Chai, Thomas <YiPeng.Chai at amd.com>
> Sent: Thursday, January 13, 2022 6:32 PM
> To: amd-gfx at lists.freedesktop.org
> Cc: Chai, Thomas <YiPeng.Chai at amd.com>; Zhang, Hawking
> <Hawking.Zhang at amd.com>; Zhou1, Tao <Tao.Zhou1 at amd.com>; Clements,
> John <John.Clements at amd.com>; Chai, Thomas <YiPeng.Chai at amd.com>
> Subject: [PATCH V2 2/2] drm/amdgpu: To eliminate the warning of no previous
> prototype for 'amdgpu_ras_block_match_default'
>
> To eliminate the warning of no previous prototype for
> 'amdgpu_ras_block_match_default'.
>
> Fix compile warnings.
>
> Signed-off-by: yipechai <YiPeng.Chai at amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
> b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
> index 394a18e3c6af..7afeec4255bd 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
> @@ -869,7 +869,8 @@ static int amdgpu_ras_enable_all_features(struct
> amdgpu_device *adev, }
> /* feature ctl end */
>
> -int amdgpu_ras_block_match_default(struct amdgpu_ras_block_object*
> block_obj, enum amdgpu_ras_block block)
> +static int amdgpu_ras_block_match_default(struct amdgpu_ras_block_object
> *block_obj,
> + enum amdgpu_ras_block block)
> {
> if(!block_obj)
> return -EINVAL;
> --
> 2.25.1
More information about the amd-gfx
mailing list