Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp24990pxb; Tue, 12 Jan 2021 18:52:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJxpbLyM5lsiip6fI3Db9OnQBJqavfjYwlWojx4zauZMYqkYo/NdOT5Ue6TlyPH8BW1+XP3h X-Received: by 2002:a50:a6c2:: with SMTP id f2mr48247edc.7.1610506359510; Tue, 12 Jan 2021 18:52:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610506359; cv=none; d=google.com; s=arc-20160816; b=uY5rdc6ArPd+OFMw8c/kGHiMq9+znrhZUShxhnf5R07YCQ8NLFwURZkYQ1NDKC4Khg PHVWBURms+6WVCrV1Mvvuh6ukNZkt/Zbjmyk34zlHSZ3oiMTWGrVb8sdk/N64rP3XAeW UE7Ati//RG6nHVxeF6N5E4qR0cYAlqKsSknWc+jT8K/ANC2ciXhj38Zivq80PAXMccmy Bnbb0SGbt0FIoknHSMTQj9mQx1Qrv76ZZVBMtgpycD7TrP5XriaFRSElZb0pSP6t0/Zy /HwjxMwkOTUHSd0Xx2AumOnCLLeCxJAZc14l3OQBwrjXUEW0+TRSNEYeevPRfF67Di+A /P5A== 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=w18T70m4lkwRPMiPMR134n9wU13dWJxLSQUBF6LNCsc=; b=R/g5o/ie+YW9qc41epn+k1pkKXCq9XUSOyNRWqpVYAo9Kwxi4/LjZCe/zvQY9bF9An VyYM2ADToziMDuqGz9pYqjQ11TbYgV0H3Ue/wdD+9QdW0EMHGf0jOGafuuaaF6Q3CBUv XkmqEYmYdAmsi8hFjrdHtkohalBYqWoM0MtX+t6fxTtb8+CU41oNmeoe07Nc8awrH9NB f2I5Jv7P7eWkLUib6LjUKzfx1or3wiZXHhNu4l2CqqnNTI5Epe4eCZkPtd1RxsR9qBYl dRFpUs7NQXnomKwfwokrsc3MrqCpa8964JS/1yJckAcAwAdEDjMr1diOngxcYesYoL4f P7+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="BL/njEzc"; 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 h12si279988ejx.467.2021.01.12.18.52.16; Tue, 12 Jan 2021 18:52:39 -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="BL/njEzc"; 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 S2392089AbhALV7O (ORCPT + 99 others); Tue, 12 Jan 2021 16:59:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2393782AbhALV7M (ORCPT ); Tue, 12 Jan 2021 16:59:12 -0500 Received: from mail-oi1-x230.google.com (mail-oi1-x230.google.com [IPv6:2607:f8b0:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F2BAC061794 for ; Tue, 12 Jan 2021 13:58:31 -0800 (PST) Received: by mail-oi1-x230.google.com with SMTP id 9so4014946oiq.3 for ; Tue, 12 Jan 2021 13:58:31 -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=w18T70m4lkwRPMiPMR134n9wU13dWJxLSQUBF6LNCsc=; b=BL/njEzcAiq3Zpu7sZCqsrz1x6pqD4L5U0ECVx0gvXYbE4/ZXX0pVI+4nM2xgArpoP fMsITr+IqJmsxccdfl0HNa2N7kfFCrGrIX4RYBFD4d429siBlUyooygos4f3i1mNtcSS 8q7aCwotCsWDcHAHzXJ6dK6CYPkOIGlQ3o0bJDEGW/EQdVFKJK1KH8qcCrGAfXVpqAtQ oSVtv9dGhPD+OsYMOpURTQsW9gzPAMEGDB+Ef0hxRKknvY97vHBdcQTnQxvHA2bga34C iUtTKsn9WGW5dSiU/6WH5h/cX1UrK1gh4VH1Q2dMaxfFPsg/GAGjOdOdpNhfIGirCZfy ft6w== 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=w18T70m4lkwRPMiPMR134n9wU13dWJxLSQUBF6LNCsc=; b=Xc7kooiGtbLz8RkSHSoh/ncJN7lryyG0zZStHExzFAxkr0ab3FGHeNVDLICLgBTepf Q/JsUhirHcvMGIzsAaZn/bStp4UQKIOosGvXeQQ2a3gW2PTWpB6mZXalXQX2BZbEHmc+ yP0OZRB+bRsD6nyyoj+MpudPLXjG/NUCP1r+vvfb0BaTKEWxV0ARnDZS1cjj3QU9Udbu l7jAWqbF/xrNwTaVaVfdJqcsQ9M5mo1Kw8lN70eAju5fjyNt43j+xWsY2qMl1Q2EbOfm 6SjQSsxUmZSkvVpQTOGedcfdeKMtxlBw6d5rTG/GNAyKCbCpn3G+1B0CsUu/JHl3dLlw 92hg== X-Gm-Message-State: AOAM53219tX6wjcoP381JnZOPlJ0i3aw5GkiZrYd1PDyiEnksHXTDOtT WUGvduJMKgulkpRh+zJT0vDnbGPPa3YOptqRAGk= X-Received: by 2002:aca:6202:: with SMTP id w2mr727504oib.5.1610488711091; Tue, 12 Jan 2021 13:58:31 -0800 (PST) MIME-Version: 1.0 References: <20210111191926.3688443-1-lee.jones@linaro.org> <20210111191926.3688443-3-lee.jones@linaro.org> In-Reply-To: <20210111191926.3688443-3-lee.jones@linaro.org> From: Alex Deucher Date: Tue, 12 Jan 2021 16:58:20 -0500 Message-ID: Subject: Re: [PATCH 02/40] drm/amd/display/dc/dce/dce_link_encoder: Remove unused variable 'value0' To: Lee Jones Cc: Leo Li , Mauro Rossi , 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 Mon, Jan 11, 2021 at 2:19 PM Lee Jones wrote: > > Fixes the following W=3D1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_link_encoder.c: In func= tion =E2=80=98dce110_link_encoder_update_mst_stream_allocation_table=E2=80= =99: > drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_link_encoder.c:1506:11:= warning: variable =E2=80=98value0=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: Mauro Rossi > 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_link_encoder.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c b/driv= ers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c > index 0ef2f4d9d8bf3..1e77ffee71b30 100644 > --- a/drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c > +++ b/drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c > @@ -1503,7 +1503,6 @@ void dce110_link_encoder_update_mst_stream_allocati= on_table( > const struct link_mst_stream_allocation_table *table) > { > struct dce110_link_encoder *enc110 =3D TO_DCE110_LINK_ENC(enc); > - uint32_t value0 =3D 0; > uint32_t value1 =3D 0; > uint32_t value2 =3D 0; > uint32_t slots =3D 0; > @@ -1604,7 +1603,7 @@ void dce110_link_encoder_update_mst_stream_allocati= on_table( > do { > udelay(10); > > - value0 =3D REG_READ(DP_MSE_SAT_UPDATE); > + REG_READ(DP_MSE_SAT_UPDATE); > > REG_GET(DP_MSE_SAT_UPDATE, > DP_MSE_SAT_UPDATE, &value1); > -- > 2.25.1 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel