Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1924849pxj; Fri, 18 Jun 2021 20:51:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxPfzYF/VqTfhK6uTS2i5SZaZ7a4S8MBz8pAsaoKyzuSUicYMx948U+5YTvKx6DTz7sAV2 X-Received: by 2002:a5d:9f07:: with SMTP id q7mr10175264iot.169.1624074663570; Fri, 18 Jun 2021 20:51:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624074663; cv=none; d=google.com; s=arc-20160816; b=novB8fUrsMHl+9/KWkiUxbmoh4W1wJMMzWNa4aUSDNiJELJiv3AWe5yZQzmZn3sT18 91WUKFSBpsJbTk1OnVWVpKd9Bl33yQMlQ3hlg7oAIMFrsHI/0Nq2O7fvw+MJqO1ck9dZ +44OBjpKZVxi6mBH+PPpmyDAObPFLmWVslzcz+ROZOulja+FeMRA2sUNM++LT93ttP8+ 8AQ8vOw8Nxg98XWruZv1cnjgiK2EGPWcrhKqokqUv5u/cTa5k9qcmo4ymL+yNamVgWD5 KARxDBpRuaa81c+3s8/f/LLvIRp0keMfc2F6MDgtUeqGwGXYp0RsDr07b4NL/19zT+pA s9fw== 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=iQNzXJ3TwOzpw9bYBccWuBhdgfIg21YN1ripdW4KJLQ=; b=meAhGSOEZTTkibRAtGzQnL9k2Nzb69uuRf2hDj1hv6ZOvV3Id7Xaha67/NeIZRBmUE tIIl8Utma75H7O6Y5wpbxerXtYDU+/vNBMaWIRfHALLGC+MLbwLC2FORSuYQHTT+eMQ+ B0yXYy9yLZfOs8xlY7psFyyJlvMHEiXkolQLsE0G/m3VSQ05qghQCB7G15QSWhFBYYbS WL1bwGDMmqjDOd8JidhNLto59Ynfry0+W+sM8j4UoGbj/7zjK/wg6ImVJv+ObYsGx48q EmVL5we7mS9wq8CoTLb1HWwWPgFIX+7oXZ0DXbApsW/z90QCUwC3l3Y/OFi3a7q+rcXQ Llig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PXPa92zF; 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 y9si11026384iof.23.2021.06.18.20.50.50; Fri, 18 Jun 2021 20:51:03 -0700 (PDT) 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=PXPa92zF; 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 S233756AbhFRUhK (ORCPT + 99 others); Fri, 18 Jun 2021 16:37:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232426AbhFRUhK (ORCPT ); Fri, 18 Jun 2021 16:37:10 -0400 Received: from mail-oi1-x231.google.com (mail-oi1-x231.google.com [IPv6:2607:f8b0:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74215C061574 for ; Fri, 18 Jun 2021 13:34:59 -0700 (PDT) Received: by mail-oi1-x231.google.com with SMTP id r16so11913670oiw.3 for ; Fri, 18 Jun 2021 13:34:59 -0700 (PDT) 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=iQNzXJ3TwOzpw9bYBccWuBhdgfIg21YN1ripdW4KJLQ=; b=PXPa92zF007eLHXmzfYr64ztYgQFfHXWc4GdymN1kuuhixG+E9cA8yhyO3w18C/nX3 ddmO+aa0Z9iyfg9l4ghcCyLCyeRJmQqtcRr/pBsTkyv92EC6RoB+vt4+O/7uchG95kUI 6QpKN3iVSt9qf2fBybUKzh+86phHmVqgo60hMHQHfbK4ujFZVENAoenDVtbBVKL0pYiB ufyom+qds2k9GgHNAyHxojZX+5iVqRSl8ax3jk48j627JKeXbymhv6LsWcxxiIhqO/DY T+Pklw7VZImai7dpUSXEjcxyiAbmj41WKnjC6O3OYMm61Cceimd4fgkQVCdtMviFM8X+ 7G3w== 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=iQNzXJ3TwOzpw9bYBccWuBhdgfIg21YN1ripdW4KJLQ=; b=srEdMprz3tBmlWtjl+oxPvkxvwCReY3qtoVx4Ed7putrm3xurSuiiA/HfXy03rHla2 HEv8WwTHT9BSySTp2SuHrJhN0X4mOR3NSsLGdCK+CwxnDdKPL5XVBTXln6ujp0lLsdZK pKjbo9L6isbMkm+hoFbrh2lV1upH4KVLme+NbDo/b60+SjFQyEblZdxVAOvaEISj1lwR 2zJR4dchQOc7hUGtaiWHYZH7UNxe8/ipob3CF7/H8bXN0zf8RPAkotUNiqHVdlHiFzeO CSm7og31LVTejXeWOtSZRMVa5Mdu0WijkN/Xy6QzU/23Bfz75TqoNwceXwsvaV+cI9uF tBYw== X-Gm-Message-State: AOAM5330Sv2q4BQxE577yIabcdyg1tKFmu3XIo8nDR1pnRjaQXq3J/RR QDPHWulzJqHTCawTsDeVv9DgXpxIVGgBqeCRrr4= X-Received: by 2002:a05:6808:c3:: with SMTP id t3mr15182503oic.5.1624048498773; Fri, 18 Jun 2021 13:34:58 -0700 (PDT) MIME-Version: 1.0 References: <20210617011632.187690-1-pulehui@huawei.com> <7758a4ef-0b8e-8873-fac0-7db7a2f6402b@amd.com> In-Reply-To: <7758a4ef-0b8e-8873-fac0-7db7a2f6402b@amd.com> From: Alex Deucher Date: Fri, 18 Jun 2021 16:34:47 -0400 Message-ID: Subject: Re: [PATCH -next] drm/amd/display: remove unused variable 'dc' To: Harry Wentland Cc: Pu Lehui , "Leo (Sunpeng) Li" , "Deucher, Alexander" , Christian Koenig , xinhui pan , Dave Airlie , Daniel Vetter , Anson Jacob , "Kazlauskas, Nicholas" , Roman Li , zhangjinhao2@huawei.com, Maling list - DRI developers , amd-gfx list , LKML Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Applied. Thanks! On Thu, Jun 17, 2021 at 3:04 PM Harry Wentland wro= te: > > > > On 2021-06-16 9:16 p.m., Pu Lehui wrote: > > GCC reports the following warning with W=3D1: > > > > drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_psr.c:70:13: > > warning: > > variable =E2=80=98dc=E2=80=99 set but not used [-Wunused-but-set-varia= ble] > > 70 | struct dc *dc =3D NULL; > > | ^~ > > > > This variable is not used in function, this commit remove it to > > fix the warning. > > > > Signed-off-by: Pu Lehui > > Reviewed-by: Harry Wentland > > Harry > > > --- > > drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c | 2 -- > > 1 file changed, 2 deletions(-) > > > > diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c b/dr= ivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c > > index f7c77ae0d965..70a554f1e725 100644 > > --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c > > +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c > > @@ -67,14 +67,12 @@ bool amdgpu_dm_link_setup_psr(struct dc_stream_stat= e *stream) > > struct dc_link *link =3D NULL; > > struct psr_config psr_config =3D {0}; > > struct psr_context psr_context =3D {0}; > > - struct dc *dc =3D NULL; > > bool ret =3D false; > > > > if (stream =3D=3D NULL) > > return false; > > > > link =3D stream->link; > > - dc =3D link->ctx->dc; > > > > psr_config.psr_version =3D link->dpcd_caps.psr_caps.psr_version; > > > > > > _______________________________________________ > amd-gfx mailing list > amd-gfx@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/amd-gfx