Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3584973rwl; Mon, 27 Mar 2023 16:47:06 -0700 (PDT) X-Google-Smtp-Source: AKy350ZOEk0s6wbONJB6Q8ag+tckpYKeMZ32rXMBJ6aU9cL0kAjzKmreA4HunUlRZkHoIUAgJ5z9 X-Received: by 2002:a17:906:fc13:b0:93d:78e:d21d with SMTP id ov19-20020a170906fc1300b0093d078ed21dmr13634835ejb.64.1679960826061; Mon, 27 Mar 2023 16:47:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679960826; cv=none; d=google.com; s=arc-20160816; b=qCVhJdaCXNQk0gWGc71/VkxIo1BCVqSZzbLjVB2MAlcCUrMQJYAt0yQMYq8PcIxGrg s3Q6Qs8AnpxUOs35h4rpWSh0ev1xXjrjar/bckjjw50H60Rrk1fnHr//kbkfwohz0jEN 0/rTW96Abed1VwhazBNs1+7QKvaKqfv0un7gtiqytMcyBnjGtTwKO8sgKuwTULCZQibN SmsKczofKNn8/QgoAjP0NTBtvDJIqimmbbFGWNAVqFIBWuhIW0hM0+0yoi6p8kQ1Gz8H SpLhe5y5aoB99zcbuI78+6efZJf+34rSc+xxET4MmE6z1NshZnSTmGfNoLKkCBvOHXLH Ewmw== 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=1STa2/pWkCDUQgTVLH0svd7MRisCAzPtmwfg6lpY0tI=; b=luktFx/QRv5CLPRmLX0YfXHyMs4fddxV8F22WXNsZ/eCuszh35xWEc5yl9WQwZOxRo KGh5OPvCVppOX9sOmPsCBR2WQAPJ/Z8hGGx1OCrUVEKgaHOmtW6QFBGNb5aSsKTION6B EbPeTqqyH66vkWTqDgJoI7blYts/8faJ89vl1aYpZPygV1+mH2CzXEfKgcekko8p2/GK VKB7DJz89zrUKo2HPlARV6VANv2YmKTT1IR9zMUeO4nSYuGFBoQjeB/Qsicwd+e7njrl 0Ze45Bv5rbJAp3z+ymp/Y9RDK4LZ34aTPEqemqvg2azAPp8FNuHshIhnGVfUgmxd1YqG 6Wcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@usp.br header.s=usp-google header.b="qPr+/Dvk"; 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 ji9-20020a170907980900b0093d4303c2fasi15290288ejc.151.2023.03.27.16.46.41; Mon, 27 Mar 2023 16:47:06 -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="qPr+/Dvk"; 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 S232115AbjC0Xga (ORCPT + 99 others); Mon, 27 Mar 2023 19:36:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232102AbjC0Xg3 (ORCPT ); Mon, 27 Mar 2023 19:36:29 -0400 Received: from mail-oi1-x231.google.com (mail-oi1-x231.google.com [IPv6:2607:f8b0:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9B0F30C1 for ; Mon, 27 Mar 2023 16:36:00 -0700 (PDT) Received: by mail-oi1-x231.google.com with SMTP id l18so7676082oic.13 for ; Mon, 27 Mar 2023 16:36:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=usp.br; s=usp-google; t=1679960160; 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=1STa2/pWkCDUQgTVLH0svd7MRisCAzPtmwfg6lpY0tI=; b=qPr+/DvkkL35CXSg4gE7/ktKUvTDyUTO7/IL0lvUrUhq8xvT+h0HhqzQfjWn1sHUfq En1aRSU2RJDmigFYzTkS8EzveTOuSZurTNaXQXuMC6z/L0zjjcJ8pOP/RAK6YNbcQw4q N5w7bZZE64NLFvAe+hhsuZfaHKcZTlvPLUVB9WGh8vWvbT6Bw4YEgTBixKkzkX8laK7u c3mserAVKXZC8U5cNFsmkDDulr/6NVBOx3crHKcKt03a7xXztRoIGeA5RCQKYfaqLqZm P+MTr26pEMPaE0/LT8tYpGLXoDohT7fYS5w7xLTwM+j6dYp92VoQgWbJwQ7Uly27Grox qGtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679960160; 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=1STa2/pWkCDUQgTVLH0svd7MRisCAzPtmwfg6lpY0tI=; b=xT+IrSrCl/yKP6NN1mts34fVrJpCr9zlU/ariqZ/Ffn7FUsR/DLfYWLNdiXq0N6v0o i1pn4nbaVgBCn7qXo+UF9qfRUPSKQuHQ2VkOPJe3PK9IXOKP8D5i6SGnhdg8RsGpzSxx vQr8UEPDI7QKV5GOylmpXY5u0IoZJ+8NlW6twKMB++k+ZqGUdG6imaRXr+s5Mfw+PCDA E2OJ1iiL9oDhZoVXxcOuZwV58/98IMO1o37kSgi1IXeRsP2Ru57gMalMXGHQJ7mpM5mY /TwZSSrtSziD/R4s8LNbVmF1ipEZddaxAYdcxpvqMow+3wasTvm001JrYjKLst5stTcw oS/Q== X-Gm-Message-State: AO0yUKVO8JRzzS9J4nRUeHcuQgJYKofDnygA7YSJoTF7ylo1o7oyp8vQ X8bCEKfAFPmXtn+PsCA0sJ6Klg== X-Received: by 2002:a05:6808:659:b0:383:caf3:a30e with SMTP id z25-20020a056808065900b00383caf3a30emr5533117oih.17.1679960159943; Mon, 27 Mar 2023 16:35:59 -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.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 16:35:59 -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 11/12] drm/amd/display: Remove unused variable 'scl_enable' Date: Mon, 27 Mar 2023 20:33:52 -0300 Message-Id: <20230327233353.64081-12-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 a warning: drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn31/display_rq_dlg_calc_31.c: In function ‘dml_rq_dlg_get_dlg_params’: drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn31/display_rq_dlg_calc_31.c:905:14: warning: variable ‘scl_enable’ set but not used [-Wunused-but-set-variable] Get rid of it by removing the variable. Signed-off-by: Caio Novais --- .../gpu/drm/amd/display/dc/dml/dcn31/display_rq_dlg_calc_31.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dml/dcn31/display_rq_dlg_calc_31.c b/drivers/gpu/drm/amd/display/dc/dml/dcn31/display_rq_dlg_calc_31.c index 35d10b4d018b..2244e4fb8c96 100644 --- a/drivers/gpu/drm/amd/display/dc/dml/dcn31/display_rq_dlg_calc_31.c +++ b/drivers/gpu/drm/amd/display/dc/dml/dcn31/display_rq_dlg_calc_31.c @@ -902,7 +902,6 @@ static void dml_rq_dlg_get_dlg_params( double hratio_c; double vratio_l; double vratio_c; - bool scl_enable; unsigned int swath_width_ub_l; unsigned int dpte_groups_per_row_ub_l; @@ -1020,7 +1019,6 @@ static void dml_rq_dlg_get_dlg_params( hratio_c = scl->hscl_ratio_c; vratio_l = scl->vscl_ratio; vratio_c = scl->vscl_ratio_c; - scl_enable = scl->scl_enable; swath_width_ub_l = rq_dlg_param->rq_l.swath_width_ub; dpte_groups_per_row_ub_l = rq_dlg_param->rq_l.dpte_groups_per_row_ub; -- 2.40.0