[PATCH] drm/amdgpu/sdma5: silence a warning

Nirmoy nirmodas at amd.com
Tue Mar 31 14:39:17 UTC 2020


On 3/31/20 4:32 PM, Alex Deucher wrote:
> This isn't actually a valid warning, but initialize the variable
> to silence the compiler.
>
> Signed-off-by: Alex Deucher <alexander.deucher at amd.com>


Acked-by: Nirmoy Das <nirmoy.das at amd.com>


> ---
>   drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c b/drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c
> index f485b97ed760..06411fd099ff 100644
> --- a/drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c
> +++ b/drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c
> @@ -554,7 +554,7 @@ static void sdma_v5_0_rlc_stop(struct amdgpu_device *adev)
>    */
>   static void sdma_v5_0_ctx_switch_enable(struct amdgpu_device *adev, bool enable)
>   {
> -	u32 f32_cntl, phase_quantum = 0;
> +	u32 f32_cntl = 0, phase_quantum = 0;
>   	int i;
>   
>   	if (amdgpu_sdma_phase_quantum) {


More information about the amd-gfx mailing list