From: kernel test robot <lkp@intel.com>
To: Daniel Golle <daniel@makrotopia.org>,
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>,
Vladimir Oltean <vladimir.oltean@nxp.com>,
Michael Klein <michael@fossekall.de>,
Aleksander Jan Bajkowski <olek2@wp.pl>,
Bevan Weiss <bevan.weiss@gmail.com>,
linux-kernel@vger.kernel.org
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
netdev@vger.kernel.org
Subject: Re: [PATCH net-next 3/4] net: phy: realtek: use paged access for MDIO_MMD_VEND2 in C22 mode
Date: Sun, 4 Jan 2026 23:38:51 +0100 [thread overview]
Message-ID: <202601042339.7aMa6atC-lkp@intel.com> (raw)
In-Reply-To: <d7053fe51fb857b634880be5dcec253858f01aff.1767531485.git.daniel@makrotopia.org>
Hi Daniel,
kernel test robot noticed the following build errors:
[auto build test ERROR on net-next/main]
url: https://github.com/intel-lab-lkp/linux/commits/Daniel-Golle/net-phy-realtek-fix-whitespace-in-struct-phy_driver-initializers/20260104-211500
base: net-next/main
patch link: https://lore.kernel.org/r/d7053fe51fb857b634880be5dcec253858f01aff.1767531485.git.daniel%40makrotopia.org
patch subject: [PATCH net-next 3/4] net: phy: realtek: use paged access for MDIO_MMD_VEND2 in C22 mode
config: x86_64-kexec (https://download.01.org/0day-ci/archive/20260104/202601042339.7aMa6atC-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260104/202601042339.7aMa6atC-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/202601042339.7aMa6atC-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/net/phy/realtek/realtek_main.c:1261:16: error: use of undeclared identifier 'mmdreg'; did you mean 'mmdrop'?
1261 | devnum, mmdreg);
| ^~~~~~
| mmdrop
include/linux/sched/mm.h:47:20: note: 'mmdrop' declared here
47 | static inline void mmdrop(struct mm_struct *mm)
| ^
drivers/net/phy/realtek/realtek_main.c:1270:19: error: use of undeclared identifier 'mmdreg'; did you mean 'mmdrop'?
1270 | MII_MMD_DATA, mmdreg);
| ^~~~~~
| mmdrop
include/linux/sched/mm.h:47:20: note: 'mmdrop' declared here
47 | static inline void mmdrop(struct mm_struct *mm)
| ^
drivers/net/phy/realtek/realtek_main.c:1309:17: error: use of undeclared identifier 'mmdreg'; did you mean 'mmdrop'?
1309 | devnum, mmdreg, val);
| ^~~~~~
| mmdrop
include/linux/sched/mm.h:47:20: note: 'mmdrop' declared here
47 | static inline void mmdrop(struct mm_struct *mm)
| ^
drivers/net/phy/realtek/realtek_main.c:1318:19: error: use of undeclared identifier 'mmdreg'; did you mean 'mmdrop'?
1318 | MII_MMD_DATA, mmdreg);
| ^~~~~~
| mmdrop
include/linux/sched/mm.h:47:20: note: 'mmdrop' declared here
47 | static inline void mmdrop(struct mm_struct *mm)
| ^
4 errors generated.
vim +1261 drivers/net/phy/realtek/realtek_main.c
1248
1249 /* RTL822x cannot access MDIO_MMD_VEND2 via MII_MMD_CTRL/MII_MMD_DATA.
1250 * A mapping to use paged access needs to be used instead.
1251 * All other MMD devices can be accessed as usual.
1252 */
1253 static int rtl822xb_read_mmd(struct phy_device *phydev, int devnum, u16 reg)
1254 {
1255 int oldpage, ret, read_ret;
1256 u16 page;
1257
1258 /* Use Clause-45 bus access in case it is available */
1259 if (phydev->is_c45)
1260 return __mdiobus_c45_read(phydev->mdio.bus, phydev->mdio.addr,
> 1261 devnum, mmdreg);
1262
1263 /* Use indirect access via MII_MMD_CTRL and MII_MMD_DATA for all
1264 * MMDs except MDIO_MMD_VEND2
1265 */
1266 if (devnum != MDIO_MMD_VEND2) {
1267 __mdiobus_write(phydev->mdio.bus, phydev->mdio.addr,
1268 MII_MMD_CTRL, devnum);
1269 __mdiobus_write(phydev->mdio.bus, phydev->mdio.addr,
1270 MII_MMD_DATA, mmdreg);
1271 __mdiobus_write(phydev->mdio.bus, phydev->mdio.addr,
1272 MII_MMD_CTRL, devnum | MII_MMD_CTRL_NOINCR);
1273
1274 return __mdiobus_read(phydev->mdio.bus, phydev->mdio.addr,
1275 MII_MMD_DATA);
1276 }
1277
1278 /* Use paged access for MDIO_MMD_VEND2 over Clause-22 */
1279 page = RTL822X_VND2_TO_PAGE(reg);
1280 oldpage = __phy_read(phydev, RTL821x_PAGE_SELECT);
1281 if (oldpage < 0)
1282 return ret;
1283
1284 if (oldpage != page) {
1285 ret = __phy_write(phydev, RTL821x_PAGE_SELECT, page);
1286 if (ret < 0)
1287 return ret;
1288 }
1289
1290 read_ret = __phy_read(phydev, RTL822X_VND2_TO_PAGE_REG(reg));
1291 if (oldpage != page) {
1292 ret = __phy_write(phydev, RTL821x_PAGE_SELECT, oldpage);
1293 if (ret < 0)
1294 return ret;
1295 }
1296
1297 return read_ret;
1298 }
1299
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2026-01-04 22:39 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-04 13:11 [PATCH net-next 0/4] net: phy: realtek: various improvements for 2.5GE PHYs Daniel Golle
2026-01-04 13:11 ` [PATCH net-next 1/4] net: phy: realtek: fix whitespace in struct phy_driver initializers Daniel Golle
2026-01-04 13:11 ` [PATCH net-next 2/4] net: phy: realtek: implement configuring in-band an Daniel Golle
2026-01-04 13:12 ` [PATCH net-next 3/4] net: phy: realtek: use paged access for MDIO_MMD_VEND2 in C22 mode Daniel Golle
2026-01-04 14:30 ` ALOK TIWARI
2026-01-04 21:23 ` Russell King (Oracle)
2026-01-04 22:02 ` Daniel Golle
2026-01-04 22:38 ` kernel test robot [this message]
2026-01-05 0:52 ` kernel test robot
2026-01-04 13:12 ` [PATCH net-next 4/4] net: phy: realtek: get rid of magic number in rtlgen_read_status() Daniel Golle
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=202601042339.7aMa6atC-lkp@intel.com \
--to=lkp@intel.com \
--cc=andrew@lunn.ch \
--cc=bevan.weiss@gmail.com \
--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=llvm@lists.linux.dev \
--cc=michael@fossekall.de \
--cc=netdev@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=olek2@wp.pl \
--cc=pabeni@redhat.com \
--cc=vladimir.oltean@nxp.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®