Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3575887rwl; Mon, 27 Mar 2023 16:37:26 -0700 (PDT) X-Google-Smtp-Source: AKy350avZjd0jVMugCGgxjAGNNu5LbqF1yteUQEc7o9OfFTPbgUC4S5LoCK3+yVLAbBQ6mEpOtxv X-Received: by 2002:a17:906:2513:b0:907:183f:328a with SMTP id i19-20020a170906251300b00907183f328amr12755810ejb.65.1679960246501; Mon, 27 Mar 2023 16:37:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679960246; cv=none; d=google.com; s=arc-20160816; b=mYH/oO/o7Jry8qLVbUz4NTKEdzhvVdZ8SWSS/d+TKJSle56O6yfP1r9FakmHzn0ReL 5KyWyq4S5lXZw/flpenkWEa+mj7ov9sUNMIGerSn+OsU37j9oJmeaRaaGcb5E0eXaOFl hs6IoF3T9JO4D6yz4OS8EDtTVf8gLwMQ+lnC33fu+hZEKWGgsPiIc4MKwpgT3LzDD135 UlrOicGxQ0ntm+8W9rPuZ3hfjjXkJO42URZlvZpyHwtP7liVGVYme6AlX62J6YvXNB9u B7LihzMrtSBM7eQiNmqlv66q51n6KQiiBtetlyE5+qnGG2fg91ILjpjFxwsGy5wbmbQQ KVbw== 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=1A2mIjPdUqhr5Ice4vp7gIRuK6chByRV3cyN7aavT0E=; b=NU5WVuaNJpA/mNjMNCDkiEufvyWvliRwjJ3tXVngrO10Eqr3D810LkiARPFms+5PqP 8fkvua7wfe7JOccIOEjqGcu7BAX8z7SqQUylRUXkSWr7ImDVr+nx+b1cVYqHcrJxh056 PROBM53a77rSz4ESf4NjY9KUT597cKdC5PPqaDIZ0mz3m3CpC81smjSrusStYuv5pMpq WkO/v42Uv/ASOrWEHiKfeRNgrYcek6v79bjQgQF/Sb2Nn9t0iAjw/UB55fHcZb+PX0Hv 9FGwRIpvGEC6x8PcD1MFAswrmhHGaMHa/8nJx0c7BtpbwrC6gye/mAikbOvRasRjpDY2 7bng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@usp.br header.s=usp-google header.b="hBEZEu/F"; 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=QUARANTINE sp=NONE dis=NONE) header.from=usp.br Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hs28-20020a1709073e9c00b0093defbd6287si8642969ejc.1038.2023.03.27.16.37.02; Mon, 27 Mar 2023 16:37:26 -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=@usp.br header.s=usp-google header.b="hBEZEu/F"; 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=QUARANTINE sp=NONE dis=NONE) header.from=usp.br Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231543AbjC0XgF (ORCPT + 99 others); Mon, 27 Mar 2023 19:36:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231987AbjC0XgD (ORCPT ); Mon, 27 Mar 2023 19:36:03 -0400 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 8A1672D70 for ; Mon, 27 Mar 2023 16:35:40 -0700 (PDT) Received: by mail-oi1-x230.google.com with SMTP id f17so7681593oiw.10 for ; Mon, 27 Mar 2023 16:35:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=usp.br; s=usp-google; t=1679960140; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=1A2mIjPdUqhr5Ice4vp7gIRuK6chByRV3cyN7aavT0E=; b=hBEZEu/Fg8Z7uqZ/Ekz1hHMkGIiWSFF5sR50cANSTAnWulG9QmfK+wwFoes5VSYTRh htMmf303bnpibjbmVMsR9SPCc51HKUstFFhpmUbInbdSvxo7XOCdedKUFZ8ZtXeJ7/FA 238eQJQE4A1BarBX9h8IbgyVHKEJmOM2bfBO2yN40h1Yw8KQ3rxQ/tQW4pQ1x4wP5cwj x4RDRYoVZB/R5SC67RF1rxAyAA1Nu27ewQa8soq4BzP4HWRC7hBCY2FiqLFMYboWuy++ x2mBeYBSEDmh/XqmaVCK4Cp6GkEDyA9YmnvG/o4ecItjja9Cz2eSbfxPBnJSBpJvtT0J pvug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679960140; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1A2mIjPdUqhr5Ice4vp7gIRuK6chByRV3cyN7aavT0E=; b=bDlXIHjoCp9btWNVrRCzApylWJXgFhYB1FdCaR0y4hxaF2EwwYbxpQo+1yv37j0OIH b/9wl7ZtQ5raDRefJPzd/v25ljuooSMMPWFMH7uwX9KNGSK+6ISfWMq/a2qxnoQUDJTi mNTOY9qqvFFuOfOK9cSWvgUdLAXGwmLGrG0UcqITISzxaa03AYOOitWPAAA3n9NjIODV jjpRXWXcfvLTcNtTgdwFUuCS0ia3Zdx91b+d9HjD73alaG9Y/53bHbcZS29G+LLwmiy9 R3DnBygMrIfSc0oLU1D7pJSXnnDRYVjUmdvWjlH1UiUVGnti+3d5xUcT3ztxJxOfBpOE Go4A== X-Gm-Message-State: AO0yUKXP2n92yEyVA99YFABDyb/jq6gv/6Gylkctn1gcbBoilEDx84Fq 7EIu44VNoJ0AoCS/0inLyoN7pw== X-Received: by 2002:a05:6808:58:b0:386:f58a:2262 with SMTP id v24-20020a056808005800b00386f58a2262mr5575924oic.57.1679960139887; Mon, 27 Mar 2023 16:35:39 -0700 (PDT) Received: from ARCHaio.localdomain ([2804:1b3:a2c0:c911:919f:bd20:4f2a:8383]) by smtp.gmail.com with ESMTPSA id b186-20020aca34c3000000b00389295e8424sm1643409oia.45.2023.03.27.16.35.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 16:35:39 -0700 (PDT) From: Caio Novais To: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , "Pan, Xinhui" , David Airlie , Daniel Vetter , Harry Wentland , Leo Li , Rodrigo Siqueira , Jack Xiao , Hawking Zhang , Le Ma , Mario Limonciello , Yifan Zhang , Mukul Joshi , Jun Lei , Wenjing Liu , Alan Liu , Caio Novais , Joshua Ashton , Guo Zhengkui , Nicholas Kazlauskas , Zhan Liu , Wayne Lin , Charlene Liu , Martin Leung , Tom Chung , Alvin Lee , George Shen , Qingqing Zhuo , Roman Li , Wesley Chalmers , Aurabindo Pillai , Jingwen Zhu , Melissa Wen , Felipe Clark , Sung Joon Kim , Dillon Varone , Ethan Wellenreiter , Taimur Hassan , =?UTF-8?q?Ma=C3=ADra=20Canal?= , Brian Chang , Gabe Teeger , =?UTF-8?q?Andr=C3=A9=20Almeida?= , Chaitanya Dhere , Jiapeng Chong , Ryan Lin , Hamza Mahfooz Subject: [PATCH 09/12] drm/amd/display: Remove two unused variables 'is_pipe_split_expected' and 'state' Date: Mon, 27 Mar 2023 20:33:50 -0300 Message-Id: <20230327233353.64081-10-caionovais@usp.br> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230327233353.64081-1-caionovais@usp.br> References: <20230327233353.64081-1-caionovais@usp.br> MIME-Version: 1.0 Content-Type: text/plain; charset=y Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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: X-Mailing-List: linux-kernel@vger.kernel.org Compiling AMD GPU drivers displays two warnings: drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_resource.c: In function ‘dcn32_acquire_post_bldn_3dlut’: drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_resource.c:1614:31: warning: variable ‘state’ set but not used [-Wunused-but-set-variable] and drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_resource.c: In function ‘dcn32_populate_dml_pipes_from_context’: drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_resource.c:1916:17: warning: variable ‘is_pipe_split_expected’ set but not used [-Wunused-but-set-variable] Get rid of them by removing the variables. Signed-off-by: Caio Novais --- drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.c b/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.c index 74e50c09bb62..3435d3294e0b 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.c +++ b/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.c @@ -1611,7 +1611,6 @@ bool dcn32_acquire_post_bldn_3dlut( struct dc_transfer_func **shaper) { bool ret = false; - union dc_3dlut_state *state; ASSERT(*lut == NULL && *shaper == NULL); *lut = NULL; @@ -1620,7 +1619,6 @@ bool dcn32_acquire_post_bldn_3dlut( if (!res_ctx->is_mpc_3dlut_acquired[mpcc_id]) { *lut = pool->mpc_lut[mpcc_id]; *shaper = pool->mpc_shaper[mpcc_id]; - state = &pool->mpc_lut[mpcc_id]->state; res_ctx->is_mpc_3dlut_acquired[mpcc_id] = true; ret = true; } @@ -1913,7 +1911,6 @@ int dcn32_populate_dml_pipes_from_context( struct resource_context *res_ctx = &context->res_ctx; struct pipe_ctx *pipe; bool subvp_in_use = false; - uint8_t is_pipe_split_expected[MAX_PIPES] = {0}; struct dc_crtc_timing *timing; dcn20_populate_dml_pipes_from_context(dc, context, pipes, fast_validate); @@ -2002,7 +1999,6 @@ int dcn32_populate_dml_pipes_from_context( } DC_FP_START(); - is_pipe_split_expected[i] = dcn32_predict_pipe_split(context, &pipes[pipe_cnt]); DC_FP_END(); pipe_cnt++; -- 2.40.0