[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202108271035.xxZbPkcx-lkp@intel.com>
Date: Fri, 27 Aug 2021 10:55:46 +0800
From: kernel test robot <lkp@...el.com>
To: Masahiro Yamada <masahiroy@...nel.org>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Nathan Chancellor <natechancellor@...il.com>,
Nick Desaulniers <ndesaulniers@...gle.com>
Subject: [linux-stable-rc:linux-4.19.y 1159/1498]
drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c:180:6: warning: variable
'value' set but not used
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.19.y
head: 7457eed4b647560ae1b1800c295efc5f1db22e4b
commit: 7aaf09fd5c63ee9dc86325896abdfa47c54d39a9 [1159/1498] kbuild: support LLVM=1 to switch the default tools to Clang/LLVM
config: hexagon-randconfig-r041-20210827 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 1076082a0d97bd5c16a25ee7cf3dbb6ee4b5a9fe)
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
# https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/commit/?id=7aaf09fd5c63ee9dc86325896abdfa47c54d39a9
git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git fetch --no-tags linux-stable-rc linux-4.19.y
git checkout 7aaf09fd5c63ee9dc86325896abdfa47c54d39a9
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=hexagon
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
>> drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c:180:6: warning: variable 'value' set but not used [-Wunused-but-set-variable]
u32 value = readl(ioaddr + MTL_OPERATION_MODE);
^
1 warning generated.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for FRAME_POINTER
Depends on DEBUG_KERNEL && (M68K || UML || SUPERH) || ARCH_WANT_FRAME_POINTERS
Selected by
- LOCKDEP && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT && !MIPS && !PPC && !ARM_UNWIND && !S390 && !MICROBLAZE && !ARC && !X86
vim +/value +180 drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c
d0a9c9f9c6d0b1 Joao Pinto 2017-03-10 175
d0a9c9f9c6d0b1 Joao Pinto 2017-03-10 176 static void dwmac4_prog_mtl_tx_algorithms(struct mac_device_info *hw,
d0a9c9f9c6d0b1 Joao Pinto 2017-03-10 177 u32 tx_alg)
d0a9c9f9c6d0b1 Joao Pinto 2017-03-10 178 {
d0a9c9f9c6d0b1 Joao Pinto 2017-03-10 179 void __iomem *ioaddr = hw->pcsr;
d0a9c9f9c6d0b1 Joao Pinto 2017-03-10 @180 u32 value = readl(ioaddr + MTL_OPERATION_MODE);
d0a9c9f9c6d0b1 Joao Pinto 2017-03-10 181
d0a9c9f9c6d0b1 Joao Pinto 2017-03-10 182 value &= ~MTL_OPERATION_SCHALG_MASK;
d0a9c9f9c6d0b1 Joao Pinto 2017-03-10 183 switch (tx_alg) {
d0a9c9f9c6d0b1 Joao Pinto 2017-03-10 184 case MTL_TX_ALGORITHM_WRR:
d0a9c9f9c6d0b1 Joao Pinto 2017-03-10 185 value |= MTL_OPERATION_SCHALG_WRR;
d0a9c9f9c6d0b1 Joao Pinto 2017-03-10 186 break;
d0a9c9f9c6d0b1 Joao Pinto 2017-03-10 187 case MTL_TX_ALGORITHM_WFQ:
d0a9c9f9c6d0b1 Joao Pinto 2017-03-10 188 value |= MTL_OPERATION_SCHALG_WFQ;
d0a9c9f9c6d0b1 Joao Pinto 2017-03-10 189 break;
d0a9c9f9c6d0b1 Joao Pinto 2017-03-10 190 case MTL_TX_ALGORITHM_DWRR:
d0a9c9f9c6d0b1 Joao Pinto 2017-03-10 191 value |= MTL_OPERATION_SCHALG_DWRR;
d0a9c9f9c6d0b1 Joao Pinto 2017-03-10 192 break;
d0a9c9f9c6d0b1 Joao Pinto 2017-03-10 193 case MTL_TX_ALGORITHM_SP:
d0a9c9f9c6d0b1 Joao Pinto 2017-03-10 194 value |= MTL_OPERATION_SCHALG_SP;
d0a9c9f9c6d0b1 Joao Pinto 2017-03-10 195 break;
d0a9c9f9c6d0b1 Joao Pinto 2017-03-10 196 default:
d0a9c9f9c6d0b1 Joao Pinto 2017-03-10 197 break;
d0a9c9f9c6d0b1 Joao Pinto 2017-03-10 198 }
d0a9c9f9c6d0b1 Joao Pinto 2017-03-10 199 }
d0a9c9f9c6d0b1 Joao Pinto 2017-03-10 200
:::::: The code at line 180 was first introduced by commit
:::::: d0a9c9f9c6d0b1f0773e0aba5ab519b8ddc87a7a net: stmmac: configure mtl rx and tx algorithms
:::::: TO: Joao Pinto <Joao.Pinto@...opsys.com>
:::::: CC: David S. Miller <davem@...emloft.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (22935 bytes)
Powered by blists - more mailing lists