tree: https://github.com/krzk/linux wip/sm8450 head: ed23fc87de385a64d444db1058ad2a5844122740 commit: 30027acc430e49f3a1bdd943eeabc39692c57102 [34/101] soundwire: qcom: wait for fifo to be empty before config: x86_64-allyesconfig compiler: gcc-11 (Debian 11.3.0-8) 11.3.0 reproduce (this is a W=1 build): # https://github.com/krzk/linux/commit/30027acc430e49f3a1bdd943eeabc39692c57102 git remote add krzk-github https://github.com/krzk/linux git fetch --no-tags krzk-github wip/sm8450 git checkout 30027acc430e49f3a1bdd943eeabc39692c57102 # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/soundwire/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All warnings (new ones prefixed by >>): drivers/soundwire/qcom.c: In function 'swrm_wait_for_wr_fifo_done': >> drivers/soundwire/qcom.c:331:13: warning: unused variable 'rd_fifo_outstanding_cmds' [-Wunused-variable] 331 | u32 rd_fifo_outstanding_cmds; | ^~~~~~~~~~~~~~~~~~~~~~~~ vim +/rd_fifo_outstanding_cmds +331 drivers/soundwire/qcom.c 327 328 static bool swrm_wait_for_wr_fifo_done(struct qcom_swrm_ctrl *swrm) 329 { 330 u32 fifo_outstanding_cmds, value; > 331 u32 rd_fifo_outstanding_cmds; 332 int fifo_retry_count = SWR_OVERFLOW_RETRY_COUNT*2; 333 334 /* Check for fifo overflow during write */ 335 swrm->reg_read(swrm, SWRM_CMD_FIFO_STATUS, &value); 336 fifo_outstanding_cmds = FIELD_GET(SWRM_WR_CMD_FIFO_CNT_MASK, value); 337 338 if (fifo_outstanding_cmds) { 339 while (fifo_retry_count) { 340 usleep_range(500, 510); 341 swrm->reg_read(swrm, SWRM_CMD_FIFO_STATUS, &value); 342 fifo_outstanding_cmds = FIELD_GET(SWRM_WR_CMD_FIFO_CNT_MASK, value); 343 fifo_retry_count--; 344 if (fifo_outstanding_cmds == 0) 345 return true; 346 } 347 } else { 348 return true; 349 } 350 351 352 return false; 353 } 354 -- 0-DAY CI Kernel Test Service https://01.org/lkp