[Public] Reviewed-by: Guchun Chen <guchun.chen@xxxxxxx> > -----Original Message----- > From: amd-gfx <amd-gfx-bounces@xxxxxxxxxxxxxxxxxxxxx> On Behalf Of > Srinivasan Shanmugam > Sent: Wednesday, July 19, 2023 1:29 PM > To: Koenig, Christian <Christian.Koenig@xxxxxxx>; Deucher, Alexander > <Alexander.Deucher@xxxxxxx> > Cc: SHANMUGAM, SRINIVASAN <SRINIVASAN.SHANMUGAM@xxxxxxx>; > amd-gfx@xxxxxxxxxxxxxxxxxxxxx > Subject: [PATCH] drm/amdgpu: Fix unused variable ‘idx’ in > ‘amdgpu_atom_parse’ > > drivers/gpu/drm/amd/amdgpu/atom.c: In function ‘amdgpu_atom_parse’: > drivers/gpu/drm/amd/amdgpu/atom.c:1468:6: warning: unused variable > ‘idx’ [-Wunused-variable] > 1468 | u16 idx; > | ^~~ > > Cc: Christian König <christian.koenig@xxxxxxx> > Cc: Alex Deucher <alexander.deucher@xxxxxxx> > Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam@xxxxxxx> > --- > drivers/gpu/drm/amd/amdgpu/atom.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/gpu/drm/amd/amdgpu/atom.c > b/drivers/gpu/drm/amd/amdgpu/atom.c > index edbb862c1025..9f63ddb89b75 100644 > --- a/drivers/gpu/drm/amd/amdgpu/atom.c > +++ b/drivers/gpu/drm/amd/amdgpu/atom.c > @@ -1465,7 +1465,6 @@ struct atom_context *amdgpu_atom_parse(struct > card_info *card, void *bios) > struct _ATOM_ROM_HEADER *atom_rom_header; > struct _ATOM_MASTER_DATA_TABLE *master_table; > struct _ATOM_FIRMWARE_INFO *atom_fw_info; > - u16 idx; > > if (!ctx) > return NULL; > -- > 2.25.1
<<attachment: winmail.dat>>