From: kernel test robot <lkp@intel.com>
To: Haowen Bai <baihaowen@meizu.com>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
netdev@vger.kernel.org, Haowen Bai <baihaowen@meizu.com>,
linux-parisc@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] net: tulip: de4x5: remove unused variable
Date: Wed, 1 Jun 2022 22:38:35 +0800 [thread overview]
Message-ID: <202206012206.rmnA2Zg6-lkp@intel.com> (raw)
In-Reply-To: <1654068277-6691-1-git-send-email-baihaowen@meizu.com>
Hi Haowen,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on horms-ipvs/master]
[also build test ERROR on v5.18]
[cannot apply to net-next/master net/master linus/master next-20220601]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/intel-lab-lkp/linux/commits/Haowen-Bai/net-tulip-de4x5-remove-unused-variable/20220601-152922
base: https://git.kernel.org/pub/scm/linux/kernel/git/horms/ipvs.git master
config: i386-randconfig-a004 (https://download.01.org/0day-ci/archive/20220601/202206012206.rmnA2Zg6-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project c825abd6b0198fb088d9752f556a70705bc99dfd)
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://github.com/intel-lab-lkp/linux/commit/98c118e28527e7ff29469521c68414943a7cfc3a
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Haowen-Bai/net-tulip-de4x5-remove-unused-variable/20220601-152922
git checkout 98c118e28527e7ff29469521c68414943a7cfc3a
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> drivers/net/ethernet/dec/tulip/de4x5.c:3823:2: error: use of undeclared identifier 'imr'
UNMASK_IRQs;
^
drivers/net/ethernet/dec/tulip/de4x5.c:694:5: note: expanded from macro 'UNMASK_IRQs'
imr |= lp->irq_mask;\
^
>> drivers/net/ethernet/dec/tulip/de4x5.c:3823:2: error: use of undeclared identifier 'imr'
drivers/net/ethernet/dec/tulip/de4x5.c:695:10: note: expanded from macro 'UNMASK_IRQs'
outl(imr, DE4X5_IMR); /* Unmask the IRQs */\
^
drivers/net/ethernet/dec/tulip/de4x5.c:3826:2: error: use of undeclared identifier 'imr'
ENABLE_IRQs;
^
drivers/net/ethernet/dec/tulip/de4x5.c:683:5: note: expanded from macro 'ENABLE_IRQs'
imr |= lp->irq_en;\
^
drivers/net/ethernet/dec/tulip/de4x5.c:3826:2: error: use of undeclared identifier 'imr'
drivers/net/ethernet/dec/tulip/de4x5.c:684:10: note: expanded from macro 'ENABLE_IRQs'
outl(imr, DE4X5_IMR); /* Enable the IRQs */\
^
4 errors generated.
vim +/imr +3823 drivers/net/ethernet/dec/tulip/de4x5.c
^1da177e4c3f41 drivers/net/tulip/de4x5.c Linus Torvalds 2005-04-16 3814
^1da177e4c3f41 drivers/net/tulip/de4x5.c Linus Torvalds 2005-04-16 3815 static void
^1da177e4c3f41 drivers/net/tulip/de4x5.c Linus Torvalds 2005-04-16 3816 de4x5_setup_intr(struct net_device *dev)
^1da177e4c3f41 drivers/net/tulip/de4x5.c Linus Torvalds 2005-04-16 3817 {
^1da177e4c3f41 drivers/net/tulip/de4x5.c Linus Torvalds 2005-04-16 3818 struct de4x5_private *lp = netdev_priv(dev);
^1da177e4c3f41 drivers/net/tulip/de4x5.c Linus Torvalds 2005-04-16 3819 u_long iobase = dev->base_addr;
98c118e28527e7 drivers/net/ethernet/dec/tulip/de4x5.c Haowen Bai 2022-06-01 3820 s32 sts;
^1da177e4c3f41 drivers/net/tulip/de4x5.c Linus Torvalds 2005-04-16 3821
^1da177e4c3f41 drivers/net/tulip/de4x5.c Linus Torvalds 2005-04-16 3822 if (inl(DE4X5_OMR) & OMR_SR) { /* Only unmask if TX/RX is enabled */
^1da177e4c3f41 drivers/net/tulip/de4x5.c Linus Torvalds 2005-04-16 @3823 UNMASK_IRQs;
^1da177e4c3f41 drivers/net/tulip/de4x5.c Linus Torvalds 2005-04-16 3824 sts = inl(DE4X5_STS); /* Reset any pending (stale) interrupts */
^1da177e4c3f41 drivers/net/tulip/de4x5.c Linus Torvalds 2005-04-16 3825 outl(sts, DE4X5_STS);
^1da177e4c3f41 drivers/net/tulip/de4x5.c Linus Torvalds 2005-04-16 3826 ENABLE_IRQs;
^1da177e4c3f41 drivers/net/tulip/de4x5.c Linus Torvalds 2005-04-16 3827 }
^1da177e4c3f41 drivers/net/tulip/de4x5.c Linus Torvalds 2005-04-16 3828 }
^1da177e4c3f41 drivers/net/tulip/de4x5.c Linus Torvalds 2005-04-16 3829
--
0-DAY CI Kernel Test Service
https://01.org/lkp
next prev parent reply other threads:[~2022-06-01 14:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-01 7:24 [PATCH] net: tulip: de4x5: remove unused variable Haowen Bai
2022-06-01 14:38 ` kernel test robot [this message]
2022-06-02 1:06 ` baihaowen
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=202206012206.rmnA2Zg6-lkp@intel.com \
--to=lkp@intel.com \
--cc=baihaowen@meizu.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kbuild-all@lists.01.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-parisc@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.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