lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230327233353.64081-12-caionovais@usp.br>
Date:   Mon, 27 Mar 2023 20:33:52 -0300
From:   Caio Novais <caionovais@....br>
To:     amd-gfx@...ts.freedesktop.org, dri-devel@...ts.freedesktop.org,
        linux-kernel@...r.kernel.org
Cc:     Alex Deucher <alexander.deucher@....com>,
        Christian König <christian.koenig@....com>,
        "Pan, Xinhui" <Xinhui.Pan@....com>,
        David Airlie <airlied@...il.com>,
        Daniel Vetter <daniel@...ll.ch>,
        Harry Wentland <harry.wentland@....com>,
        Leo Li <sunpeng.li@....com>,
        Rodrigo Siqueira <Rodrigo.Siqueira@....com>,
        Jack Xiao <Jack.Xiao@....com>,
        Hawking Zhang <Hawking.Zhang@....com>, Le Ma <le.ma@....com>,
        Mario Limonciello <mario.limonciello@....com>,
        Yifan Zhang <yifan1.zhang@....com>,
        Mukul Joshi <mukul.joshi@....com>, Jun Lei <Jun.Lei@....com>,
        Wenjing Liu <wenjing.liu@....com>,
        Alan Liu <HaoPing.Liu@....com>,
        Caio Novais <caionovais@....br>,
        Joshua Ashton <joshua@...ggi.es>,
        Guo Zhengkui <guozhengkui@...o.com>,
        Nicholas Kazlauskas <Nicholas.Kazlauskas@....com>,
        Zhan Liu <zhan.liu@....com>, Wayne Lin <wayne.lin@....com>,
        Charlene Liu <Charlene.Liu@....com>,
        Martin Leung <Martin.Leung@....com>,
        Tom Chung <chiahsuan.chung@....com>,
        Alvin Lee <alvin.lee2@....com>,
        George Shen <George.Shen@....com>,
        Qingqing Zhuo <qingqing.zhuo@....com>,
        Roman Li <Roman.Li@....com>,
        Wesley Chalmers <Wesley.Chalmers@....com>,
        Aurabindo Pillai <aurabindo.pillai@....com>,
        Jingwen Zhu <Jingwen.Zhu@....com>,
        Melissa Wen <mwen@...lia.com>,
        Felipe Clark <felipe.clark@....com>,
        Sung Joon Kim <sungjoon.kim@....com>,
        Dillon Varone <Dillon.Varone@....com>,
        Ethan Wellenreiter <Ethan.Wellenreiter@....com>,
        Taimur Hassan <Syed.Hassan@....com>,
        Maíra Canal <mairacanal@...eup.net>,
        Brian Chang <Brian.Chang@....com>,
        Gabe Teeger <gabe.teeger@....com>,
        André Almeida <andrealmeid@...lia.com>,
        Chaitanya Dhere <chaitanya.dhere@....com>,
        Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>,
        Ryan Lin <tsung-hua.lin@....com>,
        Hamza Mahfooz <hamza.mahfooz@....com>
Subject: [PATCH 11/12] drm/amd/display: Remove unused variable 'scl_enable'

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 <caionovais@....br>
---
 .../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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ