drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_srv.c:862 dmub_srv_fb_cmd_execute() warn: inconsistent indenting

From: kernel test robot
Date: Tue Dec 16 2025 - 18:53:33 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 40fbbd64bba6c6e7a72885d2f59b6a3be9991eeb
commit: a3b7dc4a1ec4e184f48c2f8205d2ec88d31310fe drm/amd/display: Add Support for reg inbox0 for host->DMUB CMDs
date: 8 months ago
config: alpha-randconfig-r071-20251212 (https://download.01.org/0day-ci/archive/20251217/202512170744.uf0ZH7hV-lkp@xxxxxxxxx/config)
compiler: alpha-linux-gcc (GCC) 8.5.0

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
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202512170744.uf0ZH7hV-lkp@xxxxxxxxx/

New smatch warnings:
drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_srv.c:862 dmub_srv_fb_cmd_execute() warn: inconsistent indenting

Old smatch warnings:
drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_srv.c:961 dmub_srv_wait_for_pending() warn: inconsistent indenting
drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_srv.c:994 dmub_srv_wait_for_idle() warn: inconsistent indenting

vim +862 drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_srv.c

842
843 enum dmub_status dmub_srv_fb_cmd_execute(struct dmub_srv *dmub)
844 {
845 struct dmub_rb flush_rb;
846
847 if (!dmub->hw_init)
848 return DMUB_STATUS_INVALID;
849
850 if (dmub->power_state != DMUB_POWER_STATE_D0)
851 return DMUB_STATUS_POWER_STATE_D3;
852
853 /**
854 * Read back all the queued commands to ensure that they've
855 * been flushed to framebuffer memory. Otherwise DMCUB might
856 * read back stale, fully invalid or partially invalid data.
857 */
858 flush_rb = dmub->inbox1.rb;
859 flush_rb.rptr = dmub->inbox1_last_wptr;
860 dmub_rb_flush_pending(&flush_rb);
861
> 862 dmub->hw_funcs.set_inbox1_wptr(dmub, dmub->inbox1.rb.wrpt);
863
864 dmub->inbox1_last_wptr = dmub->inbox1.rb.wrpt;
865
866 return DMUB_STATUS_OK;
867 }
868

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