Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp610163pxb; Fri, 8 Jan 2021 13:16:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJwW98dHYmnEoq8sKFCcjFvwSxvQELIx4dLioU5njKGhEwoXJ7V+yJzusxQafnmyfbxvlKRt X-Received: by 2002:a17:906:cec7:: with SMTP id si7mr3760845ejb.123.1610140562785; Fri, 08 Jan 2021 13:16:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610140562; cv=none; d=google.com; s=arc-20160816; b=E0UsnxIKkDyEW9EoqkLFYg46zmX4lfkhX4EqXpPh+2n9PeolGLVSG/LPJ9NGokq89O C7i8WGKGvGSgth3kQhIMEAsk6uuOwNUk6UEQVqx5rr8bksDUHaFMs8FAeDGBu4OYnM8m IrfihkQOG8r9BslEZArSo6Qdse+w0X3NSrUA2kcKjI1GUovj/srSASFmXr9I3qWtmkf1 mMZ34uxxeQquPfqevPIi2jIXN89JvsP2AtuihFWmKuA+fHRI6qNBOBnWku4BjK4zXt2O penyiQ2/RjcYXWkXH0wYSOyIiIsbV+HjPqqcNiyc9xtOcwEwHmj3i/uqua+A3a2BKrz1 utyA== 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=JJ7FtiwBdYxXEh8WTGbXJJZhJ5AF6r7OSPZfRoUJmbA=; b=Beic5AastsSq+9+gNjESbco+G/Qxfu6WNCNfk3Vm9hLmyFCzTlymI8vRRNr04/JFKM +W1ge4K7n3MgvVm9c+gDRNc5YcW8u5xhdLcWze8i7hVCacgo2rlTZvFk6vgrgFUbX6wF mprApuTaCg4A+BCC0q6s/ARoRIgne0DWed891hZojKE/vOv+H/2HDxkooJvirlGlADtW zDd4W8I/6LidNycDnyHoJm5rASWiL4A13oiQ2jRIEkaWprCUkCUiL3HVEbi7JMNhO/Al 0HPsGbauA6XakaSp38dIqENgxeYt+KpyqYuwE5YzUNTstHRa8hZ2kUO+UU0icYVEK2qu /IQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LV850xJ1; 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 gl19si3791080ejb.476.2021.01.08.13.15.39; Fri, 08 Jan 2021 13:16:02 -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=LV850xJ1; 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 S1729212AbhAHVNb (ORCPT + 99 others); Fri, 8 Jan 2021 16:13:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729069AbhAHVNb (ORCPT ); Fri, 8 Jan 2021 16:13:31 -0500 Received: from mail-ot1-x336.google.com (mail-ot1-x336.google.com [IPv6:2607:f8b0:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43481C061574 for ; Fri, 8 Jan 2021 13:12:51 -0800 (PST) Received: by mail-ot1-x336.google.com with SMTP id j12so11020858ota.7 for ; Fri, 08 Jan 2021 13:12:51 -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=JJ7FtiwBdYxXEh8WTGbXJJZhJ5AF6r7OSPZfRoUJmbA=; b=LV850xJ1SGbsWlLhv8SIykiIbw9fs5VaMD9pKjRweE8Eti1DFJv2/pk8tcISWTigx8 MPAV5GXtXuwPzojP3r96HnS2qqufjcMoO+vhcC2T8rP6IFqhacZKP0ieAzAxsT3VALtG KrPnaNQAk9Qifjv0mXajdpUq7t8eywv+W6CxHg2wfk3IKD/67Fwm82YSrlcJe1DS7dZ6 EZU8HZbJ91JNYwsecSSDy/Lfj6TsP/amSBMKbrmXPV1USYh1051n9tc5yvW9ee7Mn73j ohrKl34VSC9m4ehA9cI+Ai8ZFoKtA+TKOBNaPA7bp890zfyPVOdjLpi3UWGm0tNb8A8a +ZQQ== 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=JJ7FtiwBdYxXEh8WTGbXJJZhJ5AF6r7OSPZfRoUJmbA=; b=kfXv3KEF/cbtDBBozPY1Fy14T+u7heEbMJLaB1VxP38+RSq6rYIypVz599F4yye/pH P8bpDL37tqrGCE/TnN4Z9amV094AJLLZZGsPOZJ+PSo6PX+dx+kO/34WpzWaoDS8rbJe nbcmJiEb9bI658A9YbF6mUnGL+PbLTe8xzKH/EaQQW3B7GrzSeDuF+1E8MD2Jr1aXSvY zQZv4rL4bJ1I64QLreXWXYxk2SdTLW7qHLASgC75LXmq+iLeQf2CRCtri6SNrCroYqx3 9IGBHh4ZoZJ288swZX1Js3jpk1kMAb1Oawr2sTcUC8PQTCdhkdL8yef21iEO9JtOuSUi K7qg== X-Gm-Message-State: AOAM532d/VqPwqHW1eA3TE+I1SGe4ryzDTSedJRxWx5WYwvdy3EfVNSI leyBbgRnR4k3xQVamORfBIgJ0t5MI0dBWlvyGEw= X-Received: by 2002:a05:6830:1b7b:: with SMTP id d27mr4077667ote.132.1610140370752; Fri, 08 Jan 2021 13:12:50 -0800 (PST) MIME-Version: 1.0 References: <20210108201457.3078600-1-lee.jones@linaro.org> <20210108201457.3078600-25-lee.jones@linaro.org> In-Reply-To: <20210108201457.3078600-25-lee.jones@linaro.org> From: Alex Deucher Date: Fri, 8 Jan 2021 16:12:39 -0500 Message-ID: Subject: Re: [PATCH 24/40] drm/amd/display/dc/dce/dce_stream_encoder: Remove unused variable 'regval' To: Lee Jones Cc: Leo Li , LKML , amd-gfx list , David Airlie , Eric Bernstein , Maling list - DRI developers , George Shen , 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 Fri, Jan 8, 2021 at 3:15 PM Lee Jones wrote: > > Fixes the following W=3D1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_stream_encoder.c: In fu= nction =E2=80=98dce110_update_generic_info_packet=E2=80=99: > drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_stream_encoder.c:70:11:= warning: variable =E2=80=98regval=E2=80=99 set but not 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: George Shen > Cc: Eric Bernstein > Cc: amd-gfx@lists.freedesktop.org > Cc: dri-devel@lists.freedesktop.org > Signed-off-by: Lee Jones Applied. Thanks! Alex > --- > drivers/gpu/drm/amd/display/dc/dce/dce_stream_encoder.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_stream_encoder.c b/dr= ivers/gpu/drm/amd/display/dc/dce/dce_stream_encoder.c > index ada57f745fd76..265eaef30a519 100644 > --- a/drivers/gpu/drm/amd/display/dc/dce/dce_stream_encoder.c > +++ b/drivers/gpu/drm/amd/display/dc/dce/dce_stream_encoder.c > @@ -67,7 +67,6 @@ static void dce110_update_generic_info_packet( > uint32_t packet_index, > const struct dc_info_packet *info_packet) > { > - uint32_t regval; > /* TODOFPGA Figure out a proper number for max_retries polling fo= r lock > * use 50 for now. > */ > @@ -99,7 +98,7 @@ static void dce110_update_generic_info_packet( > } > /* choose which generic packet to use */ > { > - regval =3D REG_READ(AFMT_VBI_PACKET_CONTROL); > + REG_READ(AFMT_VBI_PACKET_CONTROL); > REG_UPDATE(AFMT_VBI_PACKET_CONTROL, > AFMT_GENERIC_INDEX, packet_index); > } > -- > 2.25.1 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel