From: kernel test robot <lkp@intel.com>
To: Raju Rangoju <Raju.Rangoju@amd.com>, netdev@vger.kernel.org
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
pabeni@redhat.com, kuba@kernel.org, edumazet@google.com,
davem@davemloft.net, andrew+netdev@lunn.ch,
Raju Rangoju <Raju.Rangoju@amd.com>
Subject: Re: [PATCH net-next 1/2] amd-xgbe: Simplify powerdown/powerup paths
Date: Sat, 7 Mar 2026 09:24:08 +0800 [thread overview]
Message-ID: <202603070918.CSq5IR0g-lkp@intel.com> (raw)
In-Reply-To: <20260306121047.1231755-2-Raju.Rangoju@amd.com>
Hi Raju,
kernel test robot noticed the following build warnings:
[auto build test WARNING on net-next/main]
url: https://github.com/intel-lab-lkp/linux/commits/Raju-Rangoju/amd-xgbe-Simplify-powerdown-powerup-paths/20260306-202410
base: net-next/main
patch link: https://lore.kernel.org/r/20260306121047.1231755-2-Raju.Rangoju%40amd.com
patch subject: [PATCH net-next 1/2] amd-xgbe: Simplify powerdown/powerup paths
config: sparc-randconfig-001-20260307 (https://download.01.org/0day-ci/archive/20260307/202603070918.CSq5IR0g-lkp@intel.com/config)
compiler: sparc-linux-gcc (GCC) 15.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260307/202603070918.CSq5IR0g-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/202603070918.CSq5IR0g-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/net/ethernet/amd/xgbe/xgbe-pci.c:379:12: warning: 'xgbe_pci_resume' defined but not used [-Wunused-function]
379 | static int xgbe_pci_resume(struct device *dev)
| ^~~~~~~~~~~~~~~
>> drivers/net/ethernet/amd/xgbe/xgbe-pci.c:363:12: warning: 'xgbe_pci_suspend' defined but not used [-Wunused-function]
363 | static int xgbe_pci_suspend(struct device *dev)
| ^~~~~~~~~~~~~~~~
vim +/xgbe_pci_resume +379 drivers/net/ethernet/amd/xgbe/xgbe-pci.c
362
> 363 static int xgbe_pci_suspend(struct device *dev)
364 {
365 struct xgbe_prv_data *pdata = dev_get_drvdata(dev);
366 struct net_device *netdev = pdata->netdev;
367 int ret = 0;
368
369 if (netif_running(netdev))
370 ret = xgbe_powerdown(netdev);
371
372 pdata->lpm_ctrl = XMDIO_READ(pdata, MDIO_MMD_PCS, MDIO_CTRL1);
373 pdata->lpm_ctrl |= MDIO_CTRL1_LPOWER;
374 XMDIO_WRITE(pdata, MDIO_MMD_PCS, MDIO_CTRL1, pdata->lpm_ctrl);
375
376 return ret;
377 }
378
> 379 static int xgbe_pci_resume(struct device *dev)
380 {
381 struct xgbe_prv_data *pdata = dev_get_drvdata(dev);
382 struct net_device *netdev = pdata->netdev;
383 int ret = 0;
384
385 XP_IOWRITE(pdata, XP_INT_EN, 0x1fffff);
386
387 pdata->lpm_ctrl &= ~MDIO_CTRL1_LPOWER;
388 XMDIO_WRITE(pdata, MDIO_MMD_PCS, MDIO_CTRL1, pdata->lpm_ctrl);
389
390 if (netif_running(netdev)) {
391 ret = xgbe_powerup(netdev);
392
393 /* Schedule a restart in case the link or phy state changed
394 * while we were powered down.
395 */
396 schedule_work(&pdata->restart_work);
397 }
398
399 return ret;
400 }
401
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2026-03-07 1:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-06 12:10 [PATCH net-next 0/2] amd-xgbe: Improve power management for S0i3 Raju Rangoju
2026-03-06 12:10 ` [PATCH net-next 1/2] amd-xgbe: Simplify powerdown/powerup paths Raju Rangoju
2026-03-07 1:24 ` kernel test robot [this message]
2026-03-06 12:10 ` [PATCH net-next 2/2] amd-xgbe: add PCI power management for S0i3 support Raju Rangoju
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=202603070918.CSq5IR0g-lkp@intel.com \
--to=lkp@intel.com \
--cc=Raju.Rangoju@amd.com \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--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