Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3667446imw; Mon, 18 Jul 2022 12:16:54 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tbT5LAm32xNTBuWSz/TZOzfHkGaOsjvaedbFG9vs1MD6v+bEOJ6hVudehMLXDjKN4zntYR X-Received: by 2002:a63:2c0d:0:b0:411:4fd7:ecba with SMTP id s13-20020a632c0d000000b004114fd7ecbamr25095434pgs.64.1658171814548; Mon, 18 Jul 2022 12:16:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658171814; cv=none; d=google.com; s=arc-20160816; b=hXVajk/8W4HwRR2hhlngZmSIX5gyqjQEpTV+RiFCZ/tEnIGhbyXAnfmIgFkKkGB3gg wgQTgh7MdTHLsIVaZRl7aWU2wyiGgFSYWBMQUzlzckc0S9ryg3UzmsGf2Bg14m5dYydg XOrbXL2WjT45uZmRVX5j16q5xu284yet4q8e/o+qjCvtt3NR1T1F+nAVK5VnHpqB9kBA 2OzMLvKWcLW3B6Fqjhv6dEg4yH9TerkcK3q8N/Yv0uQhNG4EixQhuSR9JilCR8CJKV0s fYZAUf2Y4VZqRM/0bESOL3IjVuDkf3PoPFs7L4ywqWHpObG6Do0rzaaIRV9jus1HRj7s nP0A== 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=QQCeFWAFeeYdE8AjB15uv+68TOpyaBwb6vwqnHcmGmg=; b=XbIcwnAdoVjegLPXpAmUV1SqIPShGfsPt0ssAqCNnbyx06Ici7cK2DbEHZQvKe23WU O+HP+DlBCfSsqPQZhIO8r2NvgxW1lw3Bcy96kTKjl/VrC9eco/4yVpC8JNRFRcgHTxW1 WKuBEQk92/k9QtO6lh6s+7MsDII+yuhEc9S3Sj/6nQ6yETLaj575brnZk1HpJIK/Zd98 CI7boyLt2With7sD37fQZGsVJ6ByBRra5xju3E+NjQ4i9WXhtnAvGPmleYlrlXITTHYe dTmK9QbJsPNkUfGA1/NAt3FhRKiWk1qMxbG4VLDX2VM2UZ4c8Ych5FsIhongqDyHmLcT Gc4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=OrKeVKLU; 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 d15-20020a63fd0f000000b0040cf84add25si14558570pgh.878.2022.07.18.12.16.40; Mon, 18 Jul 2022 12:16:54 -0700 (PDT) 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=OrKeVKLU; 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 S234610AbiGRSxo (ORCPT + 99 others); Mon, 18 Jul 2022 14:53:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233750AbiGRSxn (ORCPT ); Mon, 18 Jul 2022 14:53:43 -0400 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9AD302613F for ; Mon, 18 Jul 2022 11:53:42 -0700 (PDT) Received: by mail-ed1-x52b.google.com with SMTP id w12so16553539edd.13 for ; Mon, 18 Jul 2022 11:53:42 -0700 (PDT) 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=QQCeFWAFeeYdE8AjB15uv+68TOpyaBwb6vwqnHcmGmg=; b=OrKeVKLURvey9dO5WC2LaIReRqt7JeYxJsb/rxtAYnzaWF/YswmZK+RmgID5pk5hJ+ kwlW7xQy+/+uWXFRS9wo4msdp85Hp6C34wrtXKeRwWMqUr2My1sj8+3e3bEjU7jVOQI1 xktxra0gDL4AEWJ1Mdug6zemBkkhvI9b4OxuaHgQ36ncjSDTjolCYNKJJrsqyYmbuVQG fZFtl8bNT1l/QlkNJ4uo65jqgfe+NYJP34lF0uZ2bse8xDLKSOEkBBwhiWWd5f3qIVz7 l8Ch2Ij6oDNz9+AFTY0Dqd851oN1jQu836XjaboYL3eT0qqK54oz20rGTXwlPP8zMCA7 /IVQ== 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=QQCeFWAFeeYdE8AjB15uv+68TOpyaBwb6vwqnHcmGmg=; b=Q4XaTO8pCHYKrQ2H6Kstc8edPBmqBxy21iU0BACtonSZUOqmpO60eYrkgqte6Fs2mI SsmWu7t1DU+0q6vFhk5tcQZsMH1bP2a0116tHiv/muDd/j3RwPqlAa9QOFrUmt6u0CXI Jh8ZodHpVnsQx5xv+zGZ2LiE+apts5Gtr0HhKVSL0cCjsO3aT8WXhvnmGg7zVTDPE/AI FIyjQZ9SHpYlf98D438HZl2D2+bwIvWLH5hmuIGarJxzosWJAURrnIMqr6CQVN+2skaE DNEMN9t307UefXoQvbiLSTv3bzaxRW+yLWadnk+fD3NGO3EWlh37RF/w9hUZ6dNALI9N eDHw== X-Gm-Message-State: AJIora8xhAXigIYbBN1CsRHQtz5SFtYvh9capoQ32KJJxGMyvwCMz5+s LWB6u8kSMR79YJZSpkL4YcvuRevAxuooPu2jZjo= X-Received: by 2002:a05:6402:2895:b0:43b:1e47:c132 with SMTP id eg21-20020a056402289500b0043b1e47c132mr32853099edb.425.1658170421073; Mon, 18 Jul 2022 11:53:41 -0700 (PDT) MIME-Version: 1.0 References: <20220714164507.561751-1-mairacanal@riseup.net> <20220714164507.561751-3-mairacanal@riseup.net> In-Reply-To: <20220714164507.561751-3-mairacanal@riseup.net> From: Alex Deucher Date: Mon, 18 Jul 2022 14:53:29 -0400 Message-ID: Subject: Re: [PATCH 03/12] drm/amd/display: Remove unused clk_src variable To: =?UTF-8?B?TWHDrXJhIENhbmFs?= Cc: Harry Wentland , Leo Li , Rodrigo Siqueira , Alex Deucher , Christian Koenig , xinhui pan , David Airlie , Daniel Vetter , Nicholas Kazlauskas , Dmytro Laktyushkin , Aurabindo Pillai , Magali Lemes , Tales Lelo da Aparecida , LKML , amd-gfx list , Melissa Wen , Isabella Basso , andrealmeid@riseup.net 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 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! Alex On Thu, Jul 14, 2022 at 12:45 PM Ma=C3=ADra Canal w= rote: > > Remove the variable clk_src from the function dcn3_get_pix_clk_dividers. > > This was pointed by clang with the following warning: > > drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_clock_source.c:1279:25: = warning: > variable 'clk_src' set but not used [-Wunused-but-set-variable] > struct dce110_clk_src *clk_src; > ^ > 1 warning generated. > > Signed-off-by: Ma=C3=ADra Canal > --- > drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c b/driv= ers/gpu/drm/amd/display/dc/dce/dce_clock_source.c > index 5cc7cc0b2f2d..d55da1ab1ac2 100644 > --- a/drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c > +++ b/drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c > @@ -1276,9 +1276,7 @@ static uint32_t dcn3_get_pix_clk_dividers( > struct pll_settings *pll_settings) > { > unsigned long long actual_pix_clk_100Hz =3D pix_clk_params ? pix_= clk_params->requested_pix_clk_100hz : 0; > - struct dce110_clk_src *clk_src; > > - clk_src =3D TO_DCE110_CLK_SRC(cs); > DC_LOGGER_INIT(); > > if (pix_clk_params =3D=3D NULL || pll_settings =3D=3D NULL > -- > 2.36.1 >