[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230327233353.64081-2-caionovais@usp.br>
Date: Mon, 27 Mar 2023 20:33:42 -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 01/12] drm/amd: Remove unused variable 'r'
Compiling AMD GPU drivers displays a warning:
drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c: In function ‘amdgpu_mes_ctx_alloc_meta_data’:
drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c:1099:13: warning: variable ‘r’ set but not used [-Wunused-but-set-variable]
Get rid of it by removing the variable.
Signed-off-by: Caio Novais <caionovais@....br>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c | 8 --------
1 file changed, 8 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c
index 82e27bd4f038..e0130536f778 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c
@@ -1096,14 +1096,6 @@ uint32_t amdgpu_mes_get_aggregated_doorbell_index(struct amdgpu_device *adev,
int amdgpu_mes_ctx_alloc_meta_data(struct amdgpu_device *adev,
struct amdgpu_mes_ctx_data *ctx_data)
{
- int r;
-
- r = amdgpu_bo_create_kernel(adev,
- sizeof(struct amdgpu_mes_ctx_meta_data),
- PAGE_SIZE, AMDGPU_GEM_DOMAIN_GTT,
- &ctx_data->meta_data_obj,
- &ctx_data->meta_data_mc_addr,
- &ctx_data->meta_data_ptr);
if (!ctx_data->meta_data_obj)
return -ENOMEM;
--
2.40.0
Powered by blists - more mailing lists