RE: [PATCH 1/3] drm/amdgpu: fix warning

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

 



[AMD Official Use Only]

Thanks! The series is:

Reviewed-by: Tao Zhou <tao.zhou1@xxxxxxx>

> -----Original Message-----
> From: amd-gfx <amd-gfx-bounces@xxxxxxxxxxxxxxxxxxxxx> On Behalf Of Alex
> Deucher
> Sent: Tuesday, January 11, 2022 4:19 AM
> To: amd-gfx@xxxxxxxxxxxxxxxxxxxxx
> Cc: Deucher, Alexander <Alexander.Deucher@xxxxxxx>; Chai, Thomas
> <YiPeng.Chai@xxxxxxx>
> Subject: [PATCH 1/3] drm/amdgpu: fix warning
> 
> warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-
> statement]
> 
> Fixes: 8c50db2f64ee ("drm/amdgpu: Adjust error inject function code style in
> amdgpu_ras.c")
> Cc: yipechai <YiPeng.Chai@xxxxxxx>
> Signed-off-by: Alex Deucher <alexander.deucher@xxxxxxx>
> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c
> b/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c
> index aa8d614009d4..478457637d29 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c
> @@ -949,7 +949,7 @@ static void amdgpu_xgmi_query_ras_error_count(struct
> amdgpu_device *adev,
>  /* Trigger XGMI/WAFL error */
>  static int amdgpu_ras_error_inject_xgmi(struct amdgpu_device *adev,  void
> *inject_if)  {
> -	int ret = 0;;
> +	int ret = 0;
>  	struct ta_ras_trigger_error_input *block_info =  (struct
> ta_ras_trigger_error_input *)inject_if;
> 
>  	if (amdgpu_dpm_set_df_cstate(adev, DF_CSTATE_DISALLOW))
> --
> 2.33.1




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

  Powered by Linux