Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp33691pxb; Tue, 12 Jan 2021 19:10:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJxrLLbkxFDQXMNXVkmbTu+KdFN7hIU/hdrND3ZjpIiQAFkeQ8FEbQZ4fBTzforRhl+0ck0c X-Received: by 2002:a05:6402:1841:: with SMTP id v1mr112743edy.194.1610507403754; Tue, 12 Jan 2021 19:10:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610507403; cv=none; d=google.com; s=arc-20160816; b=bt32s8+FhncF5Yr5vnueC752va88uyLKPS6/ksvp3ZQ2NRuZ3c8rBATSU2I34D914Z z4t3k1jk/V4Tg3U9+aEpyP6ZeKS7ncYgE0rk3EJR8AOhVa9CQlLqepVeodB39LIexTva bsKYjXn8Yg01MmszGgq1KbYobDXPGPZik6Acu5eZQHw3z/b3fXMzqVrV5QMrQ8dSvDH2 XDZarQy8KSwo17AxNlhN9QlyYZl/q3l1/UqNoisfc1iOBmzLlwtNsnzGfuT93o1zrX1/ wJD8eSMvFxoEx1ahR/TBD4FPjdkyclFsMP2a9AgmUIdY/6Xa2RQDSNnmv78Px3z1+WLj NQKw== 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=Od+zSJfKa4Z6aPePHWW0VtrqDCrKYYEC4JyNh+WdTnU=; b=OT/kIaou3fk5rjPZqLLgNpPrPYlG1voGMJIQjjNthKAcdu/GAK5THnSKsLGt0ow3Il b7xrqT5F5FdC7MWk173OCRvWQu7a7z9tV45a7ftrcmREk7AWNG/mQuaPote90MHX8EYP qFfQsl0JBiwZFOAo/wemkChNXkCc3JQ30GRHqDU9CelJtQZXOIDlq7FYFdp3OCTeVzYh CyZlpMS1rG+UoAOZ6yw+X2fqbo5qiZ7EnlGskYVXD3HERsNVmkBlJhe+9b0ctPevItwk pb3PH37B0kMo+Y6xQhb/niP5mHiE9/+G3srb5fXb2YbJnbS8Ja7FhR4AVJHvLcZiFCWA 1E3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=eaKJmvWG; 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 bo24si314728edb.495.2021.01.12.19.09.39; Tue, 12 Jan 2021 19:10:03 -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=eaKJmvWG; 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 S2403948AbhALWT2 (ORCPT + 99 others); Tue, 12 Jan 2021 17:19:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392985AbhALWT1 (ORCPT ); Tue, 12 Jan 2021 17:19:27 -0500 Received: from mail-ot1-x332.google.com (mail-ot1-x332.google.com [IPv6:2607:f8b0:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2DC37C061575 for ; Tue, 12 Jan 2021 14:18:47 -0800 (PST) Received: by mail-ot1-x332.google.com with SMTP id d8so9811otq.6 for ; Tue, 12 Jan 2021 14:18:47 -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=Od+zSJfKa4Z6aPePHWW0VtrqDCrKYYEC4JyNh+WdTnU=; b=eaKJmvWGEow921M6Fs9SwyrCmgpcNbnIFEkktGJvIy1+SiX/caWuAu+CIsUdj+I7fd cF9xeMUAjuK7ctMAoeszK2RRZRZU63n0KlRRZcg+SRvasrRk4NNe52n0agCFOYNEKPuT 6pYPPvdhpBJbhHG93HVh6aVUJas1NCMXWRRhdXSRcl3uzhKU7Z7ISUOozq4GrG477Q14 Z+sLX0BnpBeSze0hLoxk/RjIcU28zFNywARPxJ3m51PqUiiindxPmsRhKyK0plXwjWuT hkvYJeuUfMq+mk82Ma38oGtruJMmnQW4rMu5HHRmt1uF+n7NWHSZaRtHoHhn5C4Q2dHF z55w== 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=Od+zSJfKa4Z6aPePHWW0VtrqDCrKYYEC4JyNh+WdTnU=; b=T2m+1JUeaI9kAhq0KUjyKzTt5VulbWidSmrh0sK0995cUaK6RW9bKgv49gRiRlhMyN j/KVgIRzzoS939FFgWUGDaD8KOeWOKfTgyJ9HMOqmfFTIBAnp1BBuhcsR3il26JVp6zO BPnqs3qy8PlgDIURsTQ321paC7OtUnybxZsKgL/XetMv4snV8LS6sYtNT0Pv6mr9Fw3f WGLrY72tMR2fJMV8p1ECCUFjnhvIu5557Zw7qK1q+347REWWKrWMJwL4p9kRp2NcJwHI BerKgiZ77DUcTI7DjxXxao28124tSLJDWDLzMtNUpfFk5n7w2D4RlaJe17JtF9k9Saut 94zA== X-Gm-Message-State: AOAM5304zzJpR5PpgrJETlMW/7zKO9i5FwTiEj6lFuiRjP4gHC75jS/E Y3hne+8d0HZBovwZ+1jr6IhBDYpiulq5OfNfGOQ= X-Received: by 2002:a9d:75d4:: with SMTP id c20mr1022285otl.311.1610489926631; Tue, 12 Jan 2021 14:18:46 -0800 (PST) MIME-Version: 1.0 References: <20210111191926.3688443-1-lee.jones@linaro.org> <20210111191926.3688443-21-lee.jones@linaro.org> In-Reply-To: <20210111191926.3688443-21-lee.jones@linaro.org> From: Alex Deucher Date: Tue, 12 Jan 2021 17:18:34 -0500 Message-ID: Subject: Re: [PATCH 20/40] drm/amd/display/dc/dce110/dce110_timing_generator: Remove unused variable 'value_crtc_vtotal' To: Lee Jones Cc: Leo Li , Anthony Koo , LKML , amd-gfx list , David Airlie , Tony Cheng , 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 Mon, Jan 11, 2021 at 2:20 PM Lee Jones wrote: > > Fixes the following W=3D1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_timing_generator.= c: In function =E2=80=98dce110_timing_generator_tear_down_global_swap_lock= =E2=80=99: > drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_timing_generator.= c:1354:12: warning: variable =E2=80=98value_crtc_vtotal=E2=80=99 set but no= t used [-Wunused-but-set-variable] > > Cc: Harry Wentland > Cc: Leo Li > Cc: Alex Deucher > Cc: "Christian K=C3=B6nig" > Cc: David Airlie > Cc: Daniel Vetter > Cc: Aric Cyr > Cc: Anthony Koo > Cc: Tony Cheng > Cc: amd-gfx@lists.freedesktop.org > Cc: dri-devel@lists.freedesktop.org > Signed-off-by: Lee Jones Applied. Thanks! Alex > --- > .../gpu/drm/amd/display/dc/dce110/dce110_timing_generator.c | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) > > diff --git a/drivers/gpu/drm/amd/display/dc/dce110/dce110_timing_generato= r.c b/drivers/gpu/drm/amd/display/dc/dce110/dce110_timing_generator.c > index 1ea7db8eeb988..9a6c411bb7fe6 100644 > --- a/drivers/gpu/drm/amd/display/dc/dce110/dce110_timing_generator.c > +++ b/drivers/gpu/drm/amd/display/dc/dce110/dce110_timing_generator.c > @@ -1351,10 +1351,7 @@ void dce110_timing_generator_tear_down_global_swap= _lock( > > /* Restore DCP_GSL_PURPOSE_SURFACE_FLIP */ > { > - uint32_t value_crtc_vtotal; > - > - value_crtc_vtotal =3D dm_read_reg(tg->ctx, > - CRTC_REG(mmCRTC_V_TOTAL)); > + dm_read_reg(tg->ctx, CRTC_REG(mmCRTC_V_TOTAL)); > > set_reg_field_value(value, > 0, > -- > 2.25.1 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel