Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp615919pxb; Fri, 8 Jan 2021 13:27:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJwVPI+6RqmOhmXm+S68E26g7V0MXntc2vxRXvnMDozaBtpmJpF1kdtPKtQWcV8S2cU9FPFJ X-Received: by 2002:a50:a6c2:: with SMTP id f2mr6597434edc.7.1610141265578; Fri, 08 Jan 2021 13:27:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610141265; cv=none; d=google.com; s=arc-20160816; b=sAU0SRgTXv3P/46CCWPnXNImDipENOf145l8y96OFwGUIf4JAQi2Ut0xCp5vI7/FcI IGrI4plzj/gdnHKPMHKOZikjcM3egFK+a5JbgxU82CNihYeWIjdYn1pr/Q2GhAlUdYAd snwF+KhjnmOMLqwMFsFCtYn2XJc6Zykgobph3TPoM4S/jKgFnEpyWigjqLmQNWJWrP9W klY3TgrAIDpa2XNGZZzq6h4Sw1ywGrMexhQkgActreIn2uByFBS3P5B87rHogFGNtQKP rAjdb+tF5sFGWPhsFBxkNIJHmPCF6s9chrjZc9Sx3TCBwOvFoTAtIhhmYrXL9WUJ/t3c AtWQ== 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=3U/EHOfY39AcbryurHHctLCFf/TUx0axlocAKoUFaDI=; b=o52Eta7cAjlhol7tzVqbigLeb5LPwdszibxkn45Uyj9Pcxo725kwY4SWvXaCyD+wL6 1Hc0vVH40trZb6PpyxTkGvJs1A5vWDiSJX8LVG+MSuA3/A6urQAHWWOwXNInshAEUXKc hh31gmqz+fusDa0z0Wt20br39RmvBUgRyDFPIeVeMBS5KY8pxDuscs2cX3MJxM5bcuBf JXnqDpIxOM4M24odt8DArVVrVoinCGJ+7nSUR4Y6NEx9GNpMY3GmJWCjnq/efFC2wZKV 56gsG+yAqtVDCBL9vTo2RVXSH0OPANrOtaXPN/5DYabBm1jBI6D1ro1WAFq893pu+8vW ERJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LCIs9PMX; 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 q4si4165249edn.338.2021.01.08.13.27.21; Fri, 08 Jan 2021 13:27:45 -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=LCIs9PMX; 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 S1727505AbhAHV0f (ORCPT + 99 others); Fri, 8 Jan 2021 16:26:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727067AbhAHV0e (ORCPT ); Fri, 8 Jan 2021 16:26:34 -0500 Received: from mail-ot1-x32b.google.com (mail-ot1-x32b.google.com [IPv6:2607:f8b0:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D0F4C061574 for ; Fri, 8 Jan 2021 13:25:54 -0800 (PST) Received: by mail-ot1-x32b.google.com with SMTP id d20so11109281otl.3 for ; Fri, 08 Jan 2021 13:25:54 -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=3U/EHOfY39AcbryurHHctLCFf/TUx0axlocAKoUFaDI=; b=LCIs9PMXFfP78WpjYndzNMd8DpHcKjZQQp7JySp+4RY/5Hw0lfJeyAEsYrZr64ht7B J1nyPIZjHf8aGQxSiiIP6tz2PH8D/dYZSYbRSR1+PHVM+/kaUEbiYVrcRoHfxPqe77co 3IxZYupa+zE0azrsoomWE0e/jB1q5uN2yFtTmPtzbPnMn4U5HdiJqpiMomiN1dXP7PM6 qqtE/MN3qZai3zZydN9OlkuIhadi0LeXWyJ4bb0Oyv96hl6timf8UY8s9aWVkuSq0x7d 0vXdEt/y3C0A1f6J9xUU61s7UUoT8lardtzwtDzk90XhdVPpcLD7WOCVkQ3HFm+hDDO3 zdeg== 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=3U/EHOfY39AcbryurHHctLCFf/TUx0axlocAKoUFaDI=; b=peHvl5uwLgxSZuZl6ZwjYwAD4jPO8FtejaDiEu+qG1jvp21G/j5Am//dO3IB0/oXJU tFmFGZD+tvYALZrqPw2Fx7HF729bu+aGyv1DTNSi3W9/zOQQaqZdRGphGcEcfhIPuKa9 PnC9wDyk1tyMVNa0lPHFlvqGDIx6b6GoyzjUr8HgmrAH8ZpNqsJdG2hCPa3T+QJXRge1 Z/TUiW33DpcrkmedX/5tN+gZewM00qnm0nDm7FsBP8SvfqnnmWVY2hmeAQ+Ug002x85X V3indqVddDXhh2u45E3p9w2OcE3FPFOLjl0l5RI3IswTRlG4sEApZimTcRlCo5QjU+I+ qNRA== X-Gm-Message-State: AOAM532XTouISsrTl3qyEHkjYmap+OXIu56JDEiP48My4lP0tgVmtSEJ Jj3zt9eVgeGLYSVqm7M3N7lW8s5KnAYfFz8YIFY= X-Received: by 2002:a05:6830:1d66:: with SMTP id l6mr3906537oti.23.1610141153981; Fri, 08 Jan 2021 13:25:53 -0800 (PST) MIME-Version: 1.0 References: <20210108201457.3078600-1-lee.jones@linaro.org> <20210108201457.3078600-39-lee.jones@linaro.org> In-Reply-To: <20210108201457.3078600-39-lee.jones@linaro.org> From: Alex Deucher Date: Fri, 8 Jan 2021 16:25:42 -0500 Message-ID: Subject: Re: [PATCH 38/40] drm/amd/display/dc/dce/dce_panel_cntl: Remove unused variables 'bl_pwm_cntl' and 'pwm_period_cntl' To: Lee Jones Cc: Leo Li , Anthony Koo , 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 Fri, Jan 8, 2021 at 3:16 PM Lee Jones wrote: > > Fixes the following W=3D1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_panel_cntl.c: In functi= on =E2=80=98dce_get_16_bit_backlight_from_pwm=E2=80=99: > drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_panel_cntl.c:54:11: war= ning: variable =E2=80=98bl_pwm_cntl=E2=80=99 set but not used [-Wunused-but= -set-variable] > drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_panel_cntl.c:53:11: war= ning: variable =E2=80=98pwm_period_cntl=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: Anthony Koo > 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_panel_cntl.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_panel_cntl.c b/driver= s/gpu/drm/amd/display/dc/dce/dce_panel_cntl.c > index 761fdfc1f5bd0..e923392358631 100644 > --- a/drivers/gpu/drm/amd/display/dc/dce/dce_panel_cntl.c > +++ b/drivers/gpu/drm/amd/display/dc/dce/dce_panel_cntl.c > @@ -50,16 +50,16 @@ static unsigned int dce_get_16_bit_backlight_from_pwm= (struct panel_cntl *panel_c > { > uint64_t current_backlight; > uint32_t round_result; > - uint32_t pwm_period_cntl, bl_period, bl_int_count; > - uint32_t bl_pwm_cntl, bl_pwm, fractional_duty_cycle_en; > + uint32_t bl_period, bl_int_count; > + uint32_t bl_pwm, fractional_duty_cycle_en; > uint32_t bl_period_mask, bl_pwm_mask; > struct dce_panel_cntl *dce_panel_cntl =3D TO_DCE_PANEL_CNTL(panel= _cntl); > > - pwm_period_cntl =3D REG_READ(BL_PWM_PERIOD_CNTL); > + REG_READ(BL_PWM_PERIOD_CNTL); > REG_GET(BL_PWM_PERIOD_CNTL, BL_PWM_PERIOD, &bl_period); > REG_GET(BL_PWM_PERIOD_CNTL, BL_PWM_PERIOD_BITCNT, &bl_int_count); > > - bl_pwm_cntl =3D REG_READ(BL_PWM_CNTL); > + REG_READ(BL_PWM_CNTL); > REG_GET(BL_PWM_CNTL, BL_ACTIVE_INT_FRAC_CNT, (uint32_t *)(&bl_pwm= )); > REG_GET(BL_PWM_CNTL, BL_PWM_FRACTIONAL_EN, &fractional_duty_cycle= _en); > > -- > 2.25.1 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel