From: kernel test robot <lkp@intel.com>
To: Javen Xu <javen_xu@realsil.com.cn>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
0day robot <lkp@intel.com>
Subject: drivers/net/ethernet/realtek/r8169_main.c:5168:6: warning: variable 'tx_done' set but not used
Date: Thu, 04 Jun 2026 20:13:16 +0200 [thread overview]
Message-ID: <202606042024.ym6DXsZo-lkp@intel.com> (raw)
tree: https://github.com/intel-lab-lkp/linux/commits/javen/r8169-add-support-for-multi-irqs/20260604-183631
head: 701d27322fcb57fca646ece205dcc2a3a74c4c11
commit: fe99b1d4a4b59d25254704ec227e0c35c416ee0d r8169: add support for new interrupt mapping
date: 7 hours ago
config: x86_64-kexec (https://download.01.org/0day-ci/archive/20260604/202606042024.ym6DXsZo-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project f43d6834093b19baf79beda8c0337ab020ac5f17)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260604/202606042024.ym6DXsZo-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202606042024.ym6DXsZo-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/net/ethernet/realtek/r8169_main.c:5168:6: warning: variable 'tx_done' set but not used [-Wunused-but-set-variable]
5168 | int tx_done;
| ^
1 warning generated.
vim +/tx_done +5168 drivers/net/ethernet/realtek/r8169_main.c
5162
5163 static int rtl8169_poll(struct napi_struct *napi, int budget)
5164 {
5165 struct rtl8169_private *tp = netdev_priv(napi->dev);
5166 struct net_device *dev = napi->dev;
5167 int work_done = 0;
> 5168 int tx_done;
5169
5170 tx_done = rtl_tx(dev, tp, budget);
5171
5172 /* rtl8169_poll() is used only when there is a single RX ring. */
5173 work_done = rtl_rx(dev, tp, &tp->rx_ring[0], budget, napi);
5174
5175 if (work_done < budget && napi_complete_done(napi, work_done))
5176 rtl_irq_enable(tp);
5177
5178 return work_done;
5179 }
5180
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-06-04 18:14 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=202606042024.ym6DXsZo-lkp@intel.com \
--to=lkp@intel.com \
--cc=javen_xu@realsil.com.cn \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/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