Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1000183rwl; Wed, 29 Mar 2023 11:07:22 -0700 (PDT) X-Google-Smtp-Source: AKy350YyCUzxVFM9dHJsf2lW9INNqkXxSkoBub7OonKksPjsWAPxsnJll1gI9i2+dtJzheIqUTGC X-Received: by 2002:a17:902:d501:b0:19c:a9b8:58eb with SMTP id b1-20020a170902d50100b0019ca9b858ebmr24729264plg.12.1680113242229; Wed, 29 Mar 2023 11:07:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680113242; cv=none; d=google.com; s=arc-20160816; b=sEszfcHSpJXZPAxYrvzbMxn0cdlxB/7EQu8RK4bxzjDkqEZQAuYHzhJrNBVKxO9bd7 vDs/kCItVfP8aa6mlvGG/O1gw6mjk05PilOgFFzYp+7i6QOS6ty9Y5mAHmyPqwdUFVqf stbmofW3/1PMp6CYI2cRq/twb7pnzEy8CgoaJVoN+nEXgH6zpnF16erL4N/yQsBPawjI 3c0DYCPycQeofISIejEiGlH2Kwa0qwiYY8EXiW299SQL/Vt/afKBzxSQJCb1uD86M1n2 GSA6ITpjtgcP103hfocO8k/v7b1toq2QJAHZagtZLiNnkO3S3Z4M+Fjdz1pdLquhIyKc sAsw== 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=dENL6Fxh5VQz27gw9oq+gG40WY6+FnIBbbcwaGKgL9s=; b=edOKuHuAmD+c6fyjRcWQojCF2IEiV80tOo/vjXvZlGnltEXiJt4gTsV5uohzW07Mbf u5OezpTztJdIoBcfOmfYJE+nVVfI0sezVCBNe5uyVPmq099dIyx9hXa2OVM9l0lGLMTJ TelaLC59nOAgF9NNspUO4LCHOicG4O4s68rSOmlNwSejUirh0KG0lSR8SKQ9msz2V3F3 2ziaqvUFihBNsZ/Oj7SjbYPo9hDvf0MZdXTe6hYQAuQNnooByxmCYFDNnCasNt4JIU5A PkCUrhTL4Q3hJPfj5rnJEII0iJytyX3e0/UsPzAWKfVbAgyw74PuzfNusFJE2vFdfGrl t3JA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@usp.br header.s=usp-google header.b=qNdPr3T0; 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 t3-20020a170902a5c300b001a208929d8asi14113650plq.203.2023.03.29.11.07.09; Wed, 29 Mar 2023 11:07:22 -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=qNdPr3T0; 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 S229984AbjC2SFx (ORCPT + 99 others); Wed, 29 Mar 2023 14:05:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229618AbjC2SFv (ORCPT ); Wed, 29 Mar 2023 14:05:51 -0400 Received: from mail-oa1-x2a.google.com (mail-oa1-x2a.google.com [IPv6:2001:4860:4864:20::2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91CA04201 for ; Wed, 29 Mar 2023 11:05:50 -0700 (PDT) Received: by mail-oa1-x2a.google.com with SMTP id 586e51a60fabf-17ebba88c60so17093591fac.3 for ; Wed, 29 Mar 2023 11:05:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=usp.br; s=usp-google; t=1680113150; 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=dENL6Fxh5VQz27gw9oq+gG40WY6+FnIBbbcwaGKgL9s=; b=qNdPr3T0VVdr5XsrImYxl6M5mYISWBJYMUVpySQaJmLrp1n0HEXIkbs7mD+7nCUiSp ENNG3tu4CDNcZ+DpyTBJZDFodUGb4K1yFLrp60aoqGfGdvW0Dmsvq1k9HJ/N6Z5QvPTu Ygb3up24v4GYEu7cvd4/V5uZkfb8Wb5oms7YjPsS3nlLz0oF80AVbw7Zt5p/KBGcfFnC NNaFo4Eu+4dGrn1PHgq8lAQ/pNE5MYd5pAmX0OXfbRy3u8sH3JC2mgZq+BceIbzvN1PE zmWe0CAElijV4k+CORZ8rpFYnUpxNihjsnBZOXRTPW3RoWA8x511sKffG1CbXwVUXlRd TvIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680113150; 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=dENL6Fxh5VQz27gw9oq+gG40WY6+FnIBbbcwaGKgL9s=; b=gsZedmrwJJOHfmXdjNSFnA19TMqvpWAUT1uH34rgqNdi22XUK1I3LmRdWJtauZW7ma cubpLP7LigP3MtbHrtE+Qk3xXNA8/J2TZC0yFE1OyqUN0iljdEXixyYegX5bub9lidK7 HDmukom6Y+IkbwK9+g6NU04h0CqxdZxKasPkF04RtkKq1kbEEzsnRw6D8DpL/FRhhFEN sbKi8M7e4lSoYZ/fCZBY9FlQZCk7t/a8o2750vpGU69RVlwUKtr+RivQ8Gmuy5TR10fU vBsBDKOYWB0Rrximsyzv+RsCuxlEUdY1VqqFjbvahqq/PZDZwSKGFmM0FxhQvZJ+dUhw avng== X-Gm-Message-State: AO0yUKWwOqy/5JQBJKclIJZ0XdNg9M93Mj5NRhbi68VZmqw4zmUfcuQN SuHNw67ehnzpWi1nNopHy8Qimw== X-Received: by 2002:a05:6870:1d1:b0:17e:c403:a046 with SMTP id n17-20020a05687001d100b0017ec403a046mr12133932oad.12.1680113149906; Wed, 29 Mar 2023 11:05:49 -0700 (PDT) Received: from ARCHaio.localdomain ([2804:1b3:a2c0:c911:919f:bd20:4f2a:8383]) by smtp.gmail.com with ESMTPSA id yo7-20020a05687c018700b001777244e3f9sm12098767oab.8.2023.03.29.11.05.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Mar 2023 11:05:49 -0700 (PDT) From: Caio Novais To: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: Harry Wentland , Leo Li , Rodrigo Siqueira , Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , "Pan, Xinhui" , David Airlie , Daniel Vetter , Wesley Chalmers , "Lee, Alvin" , Jun Lei , Qingqing Zhuo , Aurabindo Pillai , Caio Novais , Hamza Mahfooz , Jiapeng Chong , Nicholas Kazlauskas , Gabe Teeger , Roman Li , =?UTF-8?q?Ma=C3=ADra=20Canal?= , Deepak R Varma Subject: [PATCH v2 1/2] drm/amd/display: Remove unused variable 'scl_enable' Date: Wed, 29 Mar 2023 15:05:33 -0300 Message-Id: <20230329180534.99151-2-caionovais@usp.br> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230329180534.99151-1-caionovais@usp.br> References: <20230329180534.99151-1-caionovais@usp.br> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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/dcn314/display_rq_dlg_calc_314.c: In function ‘dml_rq_dlg_get_dlg_params’: drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn314/display_rq_dlg_calc_314.c:991:14: warning: variable ‘scl_enable’ set but not used [-Wunused-but-set-variable] Get rid of it by removing the variable 'scl_enable'. Signed-off-by: Caio Novais --- .../gpu/drm/amd/display/dc/dml/dcn314/display_rq_dlg_calc_314.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dml/dcn314/display_rq_dlg_calc_314.c b/drivers/gpu/drm/amd/display/dc/dml/dcn314/display_rq_dlg_calc_314.c index d1c2693a2e28..ea4eb66066c4 100644 --- a/drivers/gpu/drm/amd/display/dc/dml/dcn314/display_rq_dlg_calc_314.c +++ b/drivers/gpu/drm/amd/display/dc/dml/dcn314/display_rq_dlg_calc_314.c @@ -988,7 +988,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; @@ -1117,7 +1116,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