Hi Vadym,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on net-next/master]
url:
https://github.com/0day-ci/linux/commits/Vadym-Kochan/net-marvell-prester...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git
4f6a5caf187ff5807cd5b4ea5678982c249bd964
config: sh-allmodconfig (attached as .config)
compiler: sh4-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sh
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/net/ethernet/marvell/prestera/prestera_rxtx.c: In function
'prestera_sdma_tx_wait':
> drivers/net/ethernet/marvell/prestera/prestera_rxtx.c:695:7:
warning: variable 'is_ready' set but not used [-Wunused-but-set-variable]
695 | bool is_ready;
| ^~~~~~~~
#
https://github.com/0day-ci/linux/commit/9d3096bbc016c199c3432de3ec33d11d5...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Vadym-Kochan/net-marvell-prestera-Add-driver-for-Prestera-family-ASIC-devices/20200911-040039
git checkout 9d3096bbc016c199c3432de3ec33d11d521b7a5c
vim +/is_ready +695 drivers/net/ethernet/marvell/prestera/prestera_rxtx.c
690
691 static int prestera_sdma_tx_wait(struct prestera_sdma *sdma,
692 struct prestera_tx_ring *tx_ring)
693 {
694 int tx_wait_num = PRESTERA_SDMA_WAIT_MUL * tx_ring->max_burst;
695 bool is_ready;
696
697 return read_poll_timeout_atomic(prestera_sdma_is_ready, is_ready, true,
698 1, tx_wait_num, false, sdma);
699 }
700
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org