Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1107843pxb; Thu, 4 Mar 2021 03:34:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJwETdD8xdMIh/JNpwr4hTSPeR2EA/Wy/nA+ZbCFt2XyosFhQMjhQn2H46hXv61ce5rLyCdz X-Received: by 2002:a05:6402:38d:: with SMTP id o13mr3712558edv.337.1614857692165; Thu, 04 Mar 2021 03:34:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614857692; cv=none; d=google.com; s=arc-20160816; b=YVjan8NL/IBEXzehSPHflcF9428/Qe9n2sLLRoZNAnoBIXt0QQonvpA95KpLek9sEn NY/WqcsDCBQiwUViTkBAkI5fBvBvCHRBaD7ctK7mwfs2IBkO+V/enKa0qLUMVajl6HSx i1QOO9G9jK07wFYiMYkPWVtjaQvZeUZjn+spn4vbsaM6unT5DQsR70r1mFplxnH5tnmP jq4oOXwGiwNijN144/DyZJf3os5CBt6nRW6T2X5sjOeobI7DcpJZdVzOR59g2NZo6F2R ApETql1dqf+pni00sViBUdXsOhcR53GXdJUwYE0xSN3NEmhNbIi3Tahex/Va9As9vsmi /5qQ== 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=03LVkMkDFQRNhHiuk8kPbyos2+C08G21+Pb9aPcNsbI=; b=LRIf3yxzRvPITqbfqfPi5M78pyo0H4r3nUn1yV6t1mU8VlZSRgkAgvDZWHFJOBu/9z msc9AW+Nk62NU3xoRzvLQtZ4MKzQUG5ZZdK7akTNoBQOgRRxPNDp6udTbzDw9dyGX64X yQN/jxVYEM6X/xExcsus3JMAYcM/j46N7sfGfg5QFFg6T/DPQa9mxa3tGwYkPojGLILZ G4dbnnTLNfI9d8+ja3shporimc+sK0AYMsy3OEm+MaXURjV5jFeG1OTScJghkGSlWXms 5d2BBPi1pPzX6dxxl8sUt8ccl1AsCQc+ssiINXZXoO4aeDteI3bmGPPyZobWmNe5x1+l Ng6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ma16FxV6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h27si17280259ejd.660.2021.03.04.03.34.29; Thu, 04 Mar 2021 03:34:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ma16FxV6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1835531AbhCCSD6 (ORCPT + 99 others); Wed, 3 Mar 2021 13:03:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1448169AbhCCPYJ (ORCPT ); Wed, 3 Mar 2021 10:24:09 -0500 Received: from mail-ot1-x330.google.com (mail-ot1-x330.google.com [IPv6:2607:f8b0:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6031DC061764 for ; Wed, 3 Mar 2021 07:23:08 -0800 (PST) Received: by mail-ot1-x330.google.com with SMTP id 40so15512829otu.0 for ; Wed, 03 Mar 2021 07:23:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=03LVkMkDFQRNhHiuk8kPbyos2+C08G21+Pb9aPcNsbI=; b=Ma16FxV6movCHSVnqY0o/p4pFQN26Dy2vfqYj+aUKdbCcXC+pvYF1IvC4H1SFt0eRC ZcwnmPLn0PQ8t6fOFcwbdkA3Df5Sk6WzomDYbjMbgKauPVzNKswvHRPitdqefiuuRBHH k+S3oHfjgqhiaxhotzeEgxTue5Hgs+MukBV7K+zM0kVU9aEFVzAK5HdVX3Bq10096DBB u+g/INhCcIeLl6DvOejFyStWY2EQpgPCPHAsvQFvrP4sXl2YhJt+naZGv6A4JYYVuzoM F1vS40QKMvDt9+ow4t4RzvZ0wzKg7kQL8GO+Agy1ejtvVqgukD2uqogtcDShSr+Oiolx 3FlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=03LVkMkDFQRNhHiuk8kPbyos2+C08G21+Pb9aPcNsbI=; b=sMaoBpC1Uh2Fyjm1aKvvqFiXMQcem4kxiQaoLJxsjd0GIlTUzl+UzP6uUSeXEYdodz yI+n1Na2ubRYmgqCD3TB0muac/saBQTRJTiUfizldJBu06+KYf1XQtzlZIwL02K6sdb9 b8Gtkm3JTh593fwebyrfUmkqzHevfayFLCUx9Zv9ZVhGUPoiY2p7xc200F2dYhsTUwUF uiS+eV2aPD1ITZ+Ja0cTsOfD6YnbMLhy5EtuIZrHKxGUhWiD4+nICrA7iCKvbiwJjiSA wJyFH7zf2bdZam2+16wwD71RDPRcd++K1RGxgX3CC0CujhWrUBJ3oHx5JdfhffAal6Md BdrQ== X-Gm-Message-State: AOAM532CrfJMdocmDs9ZLJqvsnFpVbfQzvLL2XOEpxMdbPe6K+2904JN JeglwF58SLDmliof7PwhFmeiF29q0/ZS999LZP4= X-Received: by 2002:a9d:760a:: with SMTP id k10mr22906018otl.23.1614784987261; Wed, 03 Mar 2021 07:23:07 -0800 (PST) MIME-Version: 1.0 References: <20210303134319.3160762-1-lee.jones@linaro.org> <20210303134319.3160762-8-lee.jones@linaro.org> In-Reply-To: <20210303134319.3160762-8-lee.jones@linaro.org> From: Alex Deucher Date: Wed, 3 Mar 2021 10:22:56 -0500 Message-ID: Subject: Re: [PATCH 07/53] drm/amd/display/dc/bios/command_table: Remove unused variable and associated comment To: Lee Jones Cc: Leo Li , LKML , amd-gfx list , David Airlie , Maling list - DRI developers , Alex Deucher , =?UTF-8?Q?Christian_K=C3=B6nig?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 3, 2021 at 8:43 AM Lee Jones wrote: > > Fixes the following W=3D1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c: In functi= on =E2=80=98adjust_display_pll_v2=E2=80=99: > drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1462:11: w= arning: unused variable =E2=80=98pixel_clock_10KHz_in=E2=80=99 [-Wunused-va= riable] > > Cc: Harry Wentland > Cc: Leo Li > Cc: Alex Deucher > Cc: "Christian K=C3=B6nig" > Cc: David Airlie > Cc: Daniel Vetter > Cc: Lee Jones > Cc: amd-gfx@lists.freedesktop.org > Cc: dri-devel@lists.freedesktop.org > Signed-off-by: Lee Jones Same comment as patch 4. Alex > --- > drivers/gpu/drm/amd/display/dc/bios/command_table.c | 4 ---- > 1 file changed, 4 deletions(-) > > diff --git a/drivers/gpu/drm/amd/display/dc/bios/command_table.c b/driver= s/gpu/drm/amd/display/dc/bios/command_table.c > index 9d3bc3a073821..e879ceb0c49ed 100644 > --- a/drivers/gpu/drm/amd/display/dc/bios/command_table.c > +++ b/drivers/gpu/drm/amd/display/dc/bios/command_table.c > @@ -1518,10 +1518,6 @@ static enum bp_result adjust_display_pll_v2( > { > enum bp_result result =3D BP_RESULT_FAILURE; > > - /* We need to convert from KHz units into 10KHz units and then co= nvert > - * output pixel clock back 10KHz-->KHz */ > - uint32_t pixel_clock_10KHz_in =3D bp_params->pixel_clock / 10; > - > bp->cmd_helper->encoder_id_to_atom( > dal_graphics_object_id_get_encoder_id(bp_params->encoder_= object_id)); > bp->cmd_helper->encoder_mode_bp_to_atom(bp_params->signal_type, f= alse); > -- > 2.27.0 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel