mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Daniel Golle <daniel@makrotopia.org>,
	Xu Liang <lxu@maxlinear.com>, Andrew Lunn <andrew@lunn.ch>,
	Heiner Kallweit <hkallweit1@gmail.com>,
	Russell King <linux@armlinux.org.uk>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	linux-kernel@vger.kernel.org
Cc: oe-kbuild-all@lists.linux.dev, netdev@vger.kernel.org
Subject: Re: [PATCH net-next 2/2] net: phy: mxl-86110: add basic support for MxL86111 PHY
Date: Sat, 16 Aug 2025 16:35:43 +0800	[thread overview]
Message-ID: <202508161615.Zd1agg0S-lkp@intel.com> (raw)
In-Reply-To: <aJ9hZ6kan3Wlhxkt@pidgin.makrotopia.org>

Hi Daniel,

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/Daniel-Golle/net-phy-mxl-86110-add-basic-support-for-MxL86111-PHY/20250816-003534
base:   net-next/main
patch link:    https://lore.kernel.org/r/aJ9hZ6kan3Wlhxkt%40pidgin.makrotopia.org
patch subject: [PATCH net-next 2/2] net: phy: mxl-86110: add basic support for MxL86111 PHY
config: x86_64-buildonly-randconfig-003-20250816 (https://download.01.org/0day-ci/archive/20250816/202508161615.Zd1agg0S-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14+deb12u1) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250816/202508161615.Zd1agg0S-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/202508161615.Zd1agg0S-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/net/phy/mxl-86110.c: In function 'mxl86111_probe':
>> drivers/net/phy/mxl-86110.c:736:13: warning: variable 'reg_page' set but not used [-Wunused-but-set-variable]
     736 |         u16 reg_page;
         |             ^~~~~~~~


vim +/reg_page +736 drivers/net/phy/mxl-86110.c

   726	
   727	/**
   728	 * mxl86111_probe() - validate bootstrap chip config and set UTP page
   729	 * @phydev: pointer to the phy_device
   730	 *
   731	 * returns 0 or negative errno code
   732	 */
   733	static int mxl86111_probe(struct phy_device *phydev)
   734	{
   735		int chip_config;
 > 736		u16 reg_page;
   737		int ret;
   738	
   739		chip_config = mxl86110_read_extended_reg(phydev, MXL86110_EXT_CHIP_CFG_REG);
   740		if (chip_config < 0)
   741			return chip_config;
   742	
   743		switch (chip_config & MXL86111_EXT_CHIP_CFG_MODE_SEL_MASK) {
   744		case MXL86111_EXT_CHIP_CFG_MODE_UTP_TO_SGMII:
   745		case MXL86111_EXT_CHIP_CFG_MODE_UTP_TO_RGMII:
   746			phydev->port = PORT_TP;
   747			reg_page = MXL86111_EXT_SMI_SDS_PHYUTP_SPACE;
   748			break;
   749		default:
   750			return -EOPNOTSUPP;
   751		}
   752	
   753		ret = mxl86110_write_extended_reg(phydev,
   754						  MXL86111_EXT_SMI_SDS_PHY_REG,
   755						  MXL86111_EXT_SMI_SDS_PHYUTP_SPACE);
   756		if (ret < 0)
   757			return ret;
   758	
   759		return 0;
   760	}
   761	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

      parent reply	other threads:[~2025-08-16  8:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-15 16:33 Daniel Golle
2025-08-15 17:34 ` Andrew Lunn
2025-08-15 17:48   ` Daniel Golle
2025-08-16  8:35 ` kernel test robot [this message]

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=202508161615.Zd1agg0S-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=andrew@lunn.ch \
    --cc=daniel@makrotopia.org \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=hkallweit1@gmail.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=lxu@maxlinear.com \
    --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

all inboxes | Powered by JetHome®