Hi Zhi, On Wed, May 31, 2023 at 02:04:11AM +0000, Zhi Wang wrote: > Remove unused variable gma_bottom in scan_workload() and scan_wa_ctx(). > commit be1da7070aea ("drm/i915/gvt: vGPU command scanner") introduces > gma_bottom in several functions to calculate the size of the command > buffer. However, some of them are set but actually unused. > > When compiling the code with ccflags -Wunused-but-set-variable, gcc > throws warnings. > > Remove unused variables to avoid the gcc warnings. Tested via compiling > the code with ccflags -Wunused-but-set-variable. > > Fixes: be1da7070aea ("drm/i915/gvt: vGPU command scanner") > Suggested-by: Jani Nikula <jani.nikula@xxxxxxxxx> > Cc: Zhenyu Wang <zhenyuw@xxxxxxxxxxxxxxx> > Cc: intel-gvt-dev@xxxxxxxxxxxxxxxxxxxxx > Signed-off-by: Zhi Wang <zhi.a.wang@xxxxxxxxx> looks good: Reviewed-by: Andi Shyti <andi.shyti@xxxxxxxxxxxxxxx> Andi