linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Masahiro Yamada <masahiroy@kernel.org>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	linux-kernel@vger.kernel.org,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Nathan Chancellor <natechancellor@gmail.com>,
	Nick Desaulniers <ndesaulniers@google.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
Date: Fri, 27 Aug 2021 10:55:46 +0800	[thread overview]
Message-ID: <202108271035.xxZbPkcx-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3947 bytes --]

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@intel.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@synopsys.com>
:::::: CC: David S. Miller <davem@davemloft.net>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 22935 bytes --]

                 reply	other threads:[~2021-08-27  2:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202108271035.xxZbPkcx-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=masahiroy@kernel.org \
    --cc=natechancellor@gmail.com \
    --cc=ndesaulniers@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).