lkml.org 
[lkml]   [2022]   [Oct]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[krzk-github:n/sm8450 35/58] drivers/soundwire/qcom.c:332:13: warning: unused variable 'rd_fifo_outstanding_cmds'
tree:   https://github.com/krzk/linux n/sm8450
head: 57bf42faa17be40e013df8d598030f47956a7144
commit: 5ba47c0f678c51dc9359c8a7265d3b1cc81bbc48 [35/58] soundwire: qcom: wait for fifo to be empty before
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
# https://github.com/krzk/linux/commit/5ba47c0f678c51dc9359c8a7265d3b1cc81bbc48
git remote add krzk-github https://github.com/krzk/linux
git fetch --no-tags krzk-github n/sm8450
git checkout 5ba47c0f678c51dc9359c8a7265d3b1cc81bbc48
# 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 <lkp@intel.com>

All warnings (new ones prefixed by >>):

drivers/soundwire/qcom.c: In function 'swrm_wait_for_wr_fifo_done':
>> drivers/soundwire/qcom.c:332:13: warning: unused variable 'rd_fifo_outstanding_cmds' [-Wunused-variable]
332 | u32 rd_fifo_outstanding_cmds;
| ^~~~~~~~~~~~~~~~~~~~~~~~


vim +/rd_fifo_outstanding_cmds +332 drivers/soundwire/qcom.c

328
329 static bool swrm_wait_for_wr_fifo_done(struct qcom_swrm_ctrl *swrm)
330 {
331 u32 fifo_outstanding_cmds, value;
> 332 u32 rd_fifo_outstanding_cmds;
333 int fifo_retry_count = SWR_OVERFLOW_RETRY_COUNT*2;
334
335 /* Check for fifo overflow during write */
336 swrm->reg_read(swrm, SWRM_CMD_FIFO_STATUS, &value);
337 fifo_outstanding_cmds = FIELD_GET(SWRM_WR_CMD_FIFO_CNT_MASK, value);
338
339 if (fifo_outstanding_cmds) {
340 while (fifo_retry_count) {
341 usleep_range(500, 510);
342 swrm->reg_read(swrm, SWRM_CMD_FIFO_STATUS, &value);
343 fifo_outstanding_cmds = FIELD_GET(SWRM_WR_CMD_FIFO_CNT_MASK, value);
344 fifo_retry_count--;
345 if (fifo_outstanding_cmds == 0)
346 return true;
347 }
348 } else {
349 return true;
350 }
351
352
353 return false;
354 }
355

--
0-DAY CI Kernel Test Service
https://01.org/lkp
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2022-10-26 01:34    [W:0.034 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site