Message ID | 20230420084711.3063453-3-arnd@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp186848vqo; Thu, 20 Apr 2023 02:07:38 -0700 (PDT) X-Google-Smtp-Source: AKy350agchlTQb1dzjz5Depkwd109YsHyp0wdjzRID9Qjy9F/SOdErQWYkSxXnX8QW0ixhcfVkG+ X-Received: by 2002:a17:902:e812:b0:19f:8ad5:4331 with SMTP id u18-20020a170902e81200b0019f8ad54331mr901636plg.38.1681981658121; Thu, 20 Apr 2023 02:07:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681981658; cv=none; d=google.com; s=arc-20160816; b=F4ov8/Wte39F21wMuAVdhSOD6s4MctVOJZKaiDnzBkJ9Qsulps7I0JyZRmoJ3BKwhe xBZ955iqaFGme9aXItdCvr2FO6DpO+TTJsDP0nC1Jg2s+8N3pknCev4E3zA3LQ/NSjP6 7jIn80xFW7TYOL99+8aPuTt1s1LKFZxJyUo7deUpnkM52YrIrOrcofOnX2yEjpvwTzLh 7BNwe19EhpoC2skopmOG/Ppeq8Vq9PkBpLcKKl50+vR1GJNCMh48xCvGIuv9vVtQRzzJ 9/aTXPZeuvA5Qf7xNMSZ0rMxz/jD4x+vMJ0ofgXhjKSDL0uJQzzLkeYGfn72jiBaFIXL GPOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ce2xChkFiLve7YWHl9JHTSs4v8qDQ5c/ShQdXgVt+2s=; b=vs+O9+3F+ZmLbTrBMlLee0AeuMgpF3Vk652Ruc9HWYl4PZilR9fRzM9+cYn+c0RkeM 8pIqPJV495yUK1Fa344+mmwcml8uQCOetelV7PARz+Cka80Dq8pArECXA2mEu7yp17ZN KxO5f061/eZIvPaJLfnBhOcUgfjKynOsfNeW7ms0yYkcWPHUtWgBWEsg61190XZDwNhP 2/lPez6cuypzvfqygTpuiwTgRbXXTFn1LzcHi0iq9miGU/gyCUFd8akifBwstJGBShxF PaPHl94U7lxPgiF5b38Mt9SVSPMBjX3wtxscR4vNwxZNPxsXWddHxk5My7p36qVG9ewR 9etg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=P8hUmpyB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ka6-20020a170903334600b001a642057764si1184708plb.180.2023.04.20.02.07.24; Thu, 20 Apr 2023 02:07:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=P8hUmpyB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234567AbjDTIsl (ORCPT <rfc822;cjcooper78@gmail.com> + 99 others); Thu, 20 Apr 2023 04:48:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234566AbjDTIr7 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 20 Apr 2023 04:47:59 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BEA34EF1 for <linux-kernel@vger.kernel.org>; Thu, 20 Apr 2023 01:47:45 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9AA05616CB for <linux-kernel@vger.kernel.org>; Thu, 20 Apr 2023 08:47:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C66EBC433D2; Thu, 20 Apr 2023 08:47:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681980464; bh=kKXjO3ninqXIeQWB3eu4IcT9qlvhS73M2v92M/DhaYo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=P8hUmpyBvEpn1bAMEJqiJ2hz5yLrxb0Rzw+7oB16SXGLEhk2JWmXprLGbgmPrBQSu c6P4kKlqouNjAnEvtuL/S3PsMIINvdjMFLL41sNToG6p2+ciDEW0im0ZJv09IrdXq1 vGx1/9ihXL6eYhArihJSmV/xHs59wZSBoVnw7I3Ax1Ywhffxh0idl6sMTxU6JUpYeX 1W8BTJhKyA8lSJBIhHEsK2WDaIcnQ7QwX3x7HokfpL1r4UA3zuAJ4zoXYexlKx5iqB lkcl9/t1dA2PCkn2d3ENv9CambLwfjJg08CaPYQwCP6V03oFrjcOIMGBRcri0ZxeSv aRcOc0ehtjXLg== From: Arnd Bergmann <arnd@kernel.org> To: Harry Wentland <harry.wentland@amd.com>, Leo Li <sunpeng.li@amd.com>, Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>, Alex Deucher <alexander.deucher@amd.com>, =?utf-8?q?Christian_K=C3=B6nig?= <christian.koenig@amd.com>, "Pan, Xinhui" <Xinhui.Pan@amd.com>, David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>, Leon Huang <Leon.Huang1@amd.com> Cc: Arnd Bergmann <arnd@arndb.de>, Qingqing Zhuo <qingqing.zhuo@amd.com>, Wenjing Liu <wenjing.liu@amd.com>, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] drm/amd/display: remove unused variables in dcn21_set_backlight_level Date: Thu, 20 Apr 2023 10:47:02 +0200 Message-Id: <20230420084711.3063453-3-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230420084711.3063453-1-arnd@kernel.org> References: <20230420084711.3063453-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763685598738413909?= X-GMAIL-MSGID: =?utf-8?q?1763685598738413909?= |
Series |
[1/3] drm/amdgpu: mark gfx_v9_4_3_disable_gpa_mode() static
|
|
Commit Message
Arnd Bergmann
April 20, 2023, 8:47 a.m. UTC
From: Arnd Bergmann <arnd@arndb.de> The only references to these variables were removed, so they now cause warnings and have to be removed as well: drivers/gpu/drm/amd/amdgpu/../display/dc/dcn21/dcn21_hwseq.c:226:20: error: unused variable 'cmd' [-Werror,-Wunused-variable] drivers/gpu/drm/amd/amdgpu/../display/dc/dcn21/dcn21_hwseq.c:229:11: error: unused variable 'otg_inst' [-Werror,-Wunused-variable] Fixes: 6f0ef80a00ad ("drm/amd/display: Fix ABM pipe/backlight issues when change backlight") Signed-off-by: Arnd Bergmann <arnd@arndb.de> --- drivers/gpu/drm/amd/display/dc/dcn21/dcn21_hwseq.c | 2 -- 1 file changed, 2 deletions(-)
Comments
On 4/20/23 04:47, Arnd Bergmann wrote: > From: Arnd Bergmann <arnd@arndb.de> > > The only references to these variables were removed, so they now cause > warnings and have to be removed as well: > > drivers/gpu/drm/amd/amdgpu/../display/dc/dcn21/dcn21_hwseq.c:226:20: error: unused variable 'cmd' [-Werror,-Wunused-variable] > drivers/gpu/drm/amd/amdgpu/../display/dc/dcn21/dcn21_hwseq.c:229:11: error: unused variable 'otg_inst' [-Werror,-Wunused-variable] > > Fixes: 6f0ef80a00ad ("drm/amd/display: Fix ABM pipe/backlight issues when change backlight") > Signed-off-by: Arnd Bergmann <arnd@arndb.de> This has already been fixed, as of commit 1adb4dd5bd4b ("drm/amd/display: Remove unused variables in dcn21_hwseq.c") in amd-staging-drm-next. > --- > drivers/gpu/drm/amd/display/dc/dcn21/dcn21_hwseq.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/gpu/drm/amd/display/dc/dcn21/dcn21_hwseq.c b/drivers/gpu/drm/amd/display/dc/dcn21/dcn21_hwseq.c > index 55a464a39529..43463d08f21b 100644 > --- a/drivers/gpu/drm/amd/display/dc/dcn21/dcn21_hwseq.c > +++ b/drivers/gpu/drm/amd/display/dc/dcn21/dcn21_hwseq.c > @@ -223,10 +223,8 @@ bool dcn21_set_backlight_level(struct pipe_ctx *pipe_ctx, > uint32_t backlight_pwm_u16_16, > uint32_t frame_ramp) > { > - union dmub_rb_cmd cmd; > struct dc_context *dc = pipe_ctx->stream->ctx; > struct abm *abm = pipe_ctx->stream_res.abm; > - uint32_t otg_inst = pipe_ctx->stream_res.tg->inst; > struct panel_cntl *panel_cntl = pipe_ctx->stream->link->panel_cntl; > > if (dc->dc->res_pool->dmcu) {
diff --git a/drivers/gpu/drm/amd/display/dc/dcn21/dcn21_hwseq.c b/drivers/gpu/drm/amd/display/dc/dcn21/dcn21_hwseq.c index 55a464a39529..43463d08f21b 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn21/dcn21_hwseq.c +++ b/drivers/gpu/drm/amd/display/dc/dcn21/dcn21_hwseq.c @@ -223,10 +223,8 @@ bool dcn21_set_backlight_level(struct pipe_ctx *pipe_ctx, uint32_t backlight_pwm_u16_16, uint32_t frame_ramp) { - union dmub_rb_cmd cmd; struct dc_context *dc = pipe_ctx->stream->ctx; struct abm *abm = pipe_ctx->stream_res.abm; - uint32_t otg_inst = pipe_ctx->stream_res.tg->inst; struct panel_cntl *panel_cntl = pipe_ctx->stream->link->panel_cntl; if (dc->dc->res_pool->dmcu) {