Received: by 2002:a05:6a10:ffa2:0:0:0:0 with SMTP id hs34csp4954727pxb; Tue, 22 Feb 2022 14:26:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJw4RKnOzF5mLoIghEPqqAZpBiFKjLI9N4+fSkDZ6G6E//pIFo9/y2LcRDREjyZ5RdrIT1Tf X-Received: by 2002:a63:5911:0:b0:36c:4394:5bfa with SMTP id n17-20020a635911000000b0036c43945bfamr20947687pgb.519.1645568773875; Tue, 22 Feb 2022 14:26:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645568773; cv=none; d=google.com; s=arc-20160816; b=gijbDGpQfFhuyHxEoL4Yakc+yiMmGGVgDHv8LbNQums1GgOO1A9gkwGuqdPfAizzSX TDgZqek/qhw2KFjzRsSKotnZjLIAzFSFMqlFA+YrSnh8g2/9AzFzEhKZLOpIgZ2uqQ3V P6F4l98gpw+crnkKhyYXDYYaHo0XLhDGb5hxYoaTKoCmaZNf2hVnkVlwy6osTLpsY77+ HTfhk2JPJWmMhIk68CQF2UeoVjsQAy/8SjvIEbQAxiJll5NVJbolP4VjGZX1PsGst9No 9Ujq+/ba50q26Vh0+5lt2HQFY0JoJf/6M+kXZTQdw/ewIh0bLUNMsWilLy0aQyxChc8J Hahg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=p40txYoRuDqRToAk//92DsV14CqomtL3Q8ARQVWa/nE=; b=0SP0X3fmoDMuPxbSsnM5B4WIVqw31Yo+Z3CBLUhW+03kbwOKGQGv3bxSUFmJGx8fcg L7WSIIUjBdw3A2q+jlYpLT4pBVNxEYVNtnRUGOOqy4fxKNhMgsdgmDEalYbsNwlRjzQM 0TJyMHpDIItxAIYd6z73R8J1FqxUBpCCSyOzmAvXLVUT+fZXiP2oW90SzQhBXTQALjcV Dc5abwJKUjA0t43jFMpvBR0YBTrro3i3FqghKzGrZbpV4aLhZqEplppO0VdSSejZOMhZ pmEgCvCjI26/YUJlsTAPaODmLwyKSHeKcpqwDXQykmpdIXQgtSeu3i2h9r8CFSHTTGky udQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=TkCFnrgW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k74si7182484pga.591.2022.02.22.14.25.48; Tue, 22 Feb 2022 14:26:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=TkCFnrgW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234077AbiBVQk7 (ORCPT + 99 others); Tue, 22 Feb 2022 11:40:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232671AbiBVQk5 (ORCPT ); Tue, 22 Feb 2022 11:40:57 -0500 Received: from mail-oi1-x236.google.com (mail-oi1-x236.google.com [IPv6:2607:f8b0:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54B0D160412 for ; Tue, 22 Feb 2022 08:40:32 -0800 (PST) Received: by mail-oi1-x236.google.com with SMTP id x193so15188778oix.0 for ; Tue, 22 Feb 2022 08:40:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=p40txYoRuDqRToAk//92DsV14CqomtL3Q8ARQVWa/nE=; b=TkCFnrgW0aoLHODg9trdPkzSCZhWdz2TpEfAoMCyxt+YUGogRXWkGP51I4Pvac+mW1 lDSXdMyHaAnGC5BFOVYuGq7XQ0L9Smf8ey4INkOhItVXkekZQqk2BYpaX7elAkS/R01i nF3Gj41+2U3ukwABWrB0UaoXZNcF5TSffK7YT4AF2nHAty6DEVRQ6OC6PHihbR8rjd4w z914Z2jKY2lAuzRd6z6xcm178A7g9Liup+3zN+pYqHCqbt4NLhBY7+Rz7RUmhfp3oY7p BGdY6U+9i774sAXJ1GNG0907qbMtwmq3lVw8AtF0fjTJuBwRmZigbZANGbyr5vFz6vRk 3V0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=p40txYoRuDqRToAk//92DsV14CqomtL3Q8ARQVWa/nE=; b=dmhWmlFuDUHaeXQoycMcOZ/hUXTL8ozlFSPP0xte0kpTu4DSGZox1Pq5Ycxz3s4/ZX y72FUAHB3GSfaPbEL6dlmbrXxGgDH9FD8ZN1WyU0mZ/1SRahIBDo3RbVDe962tLUXn2f /5P6lVLHVpfSzcP3k7sOCL7ogbFFW577z1uFzXxPPbigQwj8OydMmgq6SDcMRVbXoGUW AvakiTFFjxHxPwCYEt2UUbu8z5fjYtv14ja4pss3ElcRb1YWqBqybRvHBP9m2UkZAjEE pNTZK+McEsBTeLcz1fhB0wbOmjS6neg3EjBBAW8NBYoxEhYMl6kOg/TVLPJTi/EPwGZ+ ipaQ== X-Gm-Message-State: AOAM532ja3kO3eCzxHp3XLcWJY6f2HJ6OvchHdWYfbGthYzAzRNaLIp9 acITwlq2DumPLT+OUJFRuqZTiES6SRwBU8w7SuI= X-Received: by 2002:a05:6808:612:b0:2d5:1c6a:db4 with SMTP id y18-20020a056808061200b002d51c6a0db4mr2488935oih.199.1645548031784; Tue, 22 Feb 2022 08:40:31 -0800 (PST) MIME-Version: 1.0 References: <20220222131701.356117-1-maira.canal@usp.br> <20220222131701.356117-9-maira.canal@usp.br> In-Reply-To: <20220222131701.356117-9-maira.canal@usp.br> From: Alex Deucher Date: Tue, 22 Feb 2022 11:40:20 -0500 Message-ID: Subject: Re: [PATCH 08/10] drm/amd/display: Remove unused variable To: =?UTF-8?B?TWHDrXJhIENhbmFs?= Cc: "Deucher, Alexander" , Christian Koenig , xinhui pan , Hawking Zhang , John Clements , Tao Zhou , "Chai, Thomas" , "Tuikov, Luben" , "Stanley.Yang" , Dennis Li , "Joshi, Mukul" , "Wentland, Harry" , "Leo (Sunpeng) Li" , "Siqueira, Rodrigo" , Anthony Koo , Magali Lemes , LKML , Maling list - DRI developers , mwen@igalia.com, amd-gfx list , Isabella Basso Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Applied. Thanks! On Tue, Feb 22, 2022 at 8:18 AM Ma=C3=ADra Canal wrote= : > > Remove the variable clamshell_closed from the function > dcn10_align_pixel_clocks. > > This was pointed by clang with the following warning: > > drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hw_sequencer.c:2063:= 7: > warning: variable 'clamshell_closed' set but not used > [-Wunused-but-set-variable] > bool clamshell_closed =3D false; > ^ > > Signed-off-by: Ma=C3=ADra Canal > --- > drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c b/= drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c > index 8dc1afc03961..559aa45f27e7 100644 > --- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c > +++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c > @@ -2060,14 +2060,11 @@ static int dcn10_align_pixel_clocks(struct dc *dc= , int group_size, > uint32_t embedded_pix_clk_100hz; > uint16_t embedded_h_total; > uint16_t embedded_v_total; > - bool clamshell_closed =3D false; > uint32_t dp_ref_clk_100hz =3D > dc->res_pool->dp_clock_source->ctx->dc->clk_mgr->dprefclk= _khz*10; > > if (dc->config.vblank_alignment_dto_params && > dc->res_pool->dp_clock_source->funcs->override_dp_pix_clk= ) { > - clamshell_closed =3D > - (dc->config.vblank_alignment_dto_params >> 63); > embedded_h_total =3D > (dc->config.vblank_alignment_dto_params >> 32) & = 0x7FFF; > embedded_v_total =3D > -- > 2.35.1 >