Hi Andre, kernel test robot noticed the following build errors:
[auto build test ERROR on drm-misc/drm-misc-next] [also build test ERROR on linus/master v7.1-rc3 next-20260508] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Andre-Jun-Hirata/drm-amd-pm-Use-guard-mutex-instead-of-manual-lock-unlock/20260513-040937 base: https://gitlab.freedesktop.org/drm/misc/kernel.git drm-misc-next patch link: https://lore.kernel.org/r/20260508230312.6108-1-andrejhirata%40usp.br patch subject: [PATCH v5] drm/amd/pm: Use guard(mutex) instead of manual lock+unlock config: x86_64-rhel-9.4-ltp (https://download.01.org/0day-ci/archive/20260513/[email protected]/config) compiler: gcc-14 (Debian 14.2.0-19) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260513/[email protected]/reproduce) 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 <[email protected]> | Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ All error/warnings (new ones prefixed by >>): drivers/gpu/drm/amd/amdgpu/../pm/amdgpu_dpm.c: In function 'amdgpu_dpm_is_mode1_reset_supported': >> drivers/gpu/drm/amd/amdgpu/../pm/amdgpu_dpm.c:247:47: error: expected ';' >> before '}' token 247 | return smu_mode1_reset_is_support(smu) | ^ | ; 248 | } | ~ drivers/gpu/drm/amd/amdgpu/../pm/amdgpu_dpm.c: In function 'amdgpu_dpm_get_vce_clock_state': >> drivers/gpu/drm/amd/amdgpu/../pm/amdgpu_dpm.c:833:31: warning: unused >> variable 'vstate' [-Wunused-variable] 833 | struct amd_vce_state *vstate = NULL; | ^~~~~~ vim +247 drivers/gpu/drm/amd/amdgpu/../pm/amdgpu_dpm.c 238 239 bool amdgpu_dpm_is_mode1_reset_supported(struct amdgpu_device *adev) 240 { 241 struct smu_context *smu = adev->powerplay.pp_handle; 242 243 if (!is_support_sw_smu(adev)) 244 return false; 245 246 guard(mutex)(&adev->pm.mutex); > 247 return smu_mode1_reset_is_support(smu) 248 } 249 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
