drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_2.c:274 jpeg_v5_0_2_hw_fini() warn: inconsistent indenting

From: kernel test robot

Date: Thu Jul 02 2026 - 10:12:21 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 4a50a141f05a8d1737661b19ee22ff8455b94409
commit: 855e3e19f69c0133a98dfae3ec9d26089cd50e77 drm/amdgpu: Add JPEG_v5_0_2 IP block
date: 4 months ago
config: sparc-randconfig-r071-20260702 (https://download.01.org/0day-ci/archive/20260702/202607022154.oRgbWKS5-lkp@xxxxxxxxx/config)
compiler: sparc64-linux-gcc (GCC) 13.4.0
smatch: v0.5.0-9185-gbcc58b9c

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Fixes: 855e3e19f69c ("drm/amdgpu: Add JPEG_v5_0_2 IP block")
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202607022154.oRgbWKS5-lkp@xxxxxxxxx/

smatch warnings:
drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_2.c:274 jpeg_v5_0_2_hw_fini() warn: inconsistent indenting

vim +274 drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_2.c

259
260 /**
261 * jpeg_v5_0_2_hw_fini - stop the hardware block
262 *
263 * @ip_block: Pointer to the amdgpu_ip_block for this hw instance.
264 *
265 * Stop the JPEG block, mark ring as not ready any more
266 */
267 static int jpeg_v5_0_2_hw_fini(struct amdgpu_ip_block *ip_block)
268 {
269 struct amdgpu_device *adev = ip_block->adev;
270 int ret = 0;
271
272 cancel_delayed_work_sync(&adev->jpeg.idle_work);
273
> 274 if (adev->jpeg.cur_state != AMD_PG_STATE_GATE)
275 ret = jpeg_v5_0_2_set_powergating_state(ip_block, AMD_PG_STATE_GATE);
276
277 return ret;
278 }
279

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki