* Re: [PATCH v2 2/3] phy: renesas: Add Renesas Multi-Protocol PHY driver for R-Car X5H
[not found] <20261129173739.282027-2-marek.vasut+renesas@mailbox.org>
@ 2026-11-30 1:05 ` kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-11-30 1:05 UTC (permalink / raw)
To: Marek Vasut, linux-phy
Cc: llvm, oe-kbuild-all, Thanh Quan, Phong Hoang, Hai Pham,
Yoshihiro Shimoda, Marek Vasut, Arnd Bergmann, Biju Das,
Conor Dooley, Geert Uytterhoeven, Krzysztof Kozlowski,
Magnus Damm, Manivannan Sadhasivam, Neil Armstrong, Rob Herring,
Tam Nguyen, Tommaso Merciai, Vinh Nguyen, Vinod Koul, devicetree,
linux-kernel, linux-renesas-soc
Hi Marek,
kernel test robot noticed the following build warnings:
[auto build test WARNING on phy/next]
[also build test WARNING on geert-renesas-devel/next soc/for-next linus/master v7.4-rc4 next-20261127]
[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#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Marek-Vasut/phy-renesas-Add-Renesas-Multi-Protocol-PHY-driver-for-R-Car-X5H/20261129-183704
base: https://git.kernel.org/pub/scm/linux/kernel/git/phy/linux-phy.git next
patch link: https://lore.kernel.org/r/20261129173739.282027-2-marek.vasut%2Brenesas%40mailbox.org
patch subject: [PATCH v2 2/3] phy: renesas: Add Renesas Multi-Protocol PHY driver for R-Car X5H
config: s390-allmodconfig (https://download.01.org/0day-ci/archive/20261130/20261130085824.jctLCHNP-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 04597ff5c4eda9d66da39a536aa26a7bab2fb2dd)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261130/20261130085824.jctLCHNP-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/20261130085824.jctLCHNP-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/phy/renesas/phy-rcar-gen5-mpphy.c:455:13: warning: variable 'tx_ack' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
455 | } else if (priv->num_lanes[phy->id] == 8) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/phy/renesas/phy-rcar-gen5-mpphy.c:466:11: note: uninitialized use occurs here
466 | return !(tx_ack & BIT(9)) && !(rx_ack & BIT(1));
| ^~~~~~
drivers/phy/renesas/phy-rcar-gen5-mpphy.c:455:9: note: remove the 'if' if its condition is always true
455 | } else if (priv->num_lanes[phy->id] == 8) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/phy/renesas/phy-rcar-gen5-mpphy.c:445:20: note: initialize the variable 'tx_ack' to silence this warning
445 | u32 rx_ack, tx_ack;
| ^
| = 0
drivers/phy/renesas/phy-rcar-gen5-mpphy.c:584:12: warning: unused function 'mp_phy_suspend' [-Wunused-function]
584 | static int mp_phy_suspend(struct device *dev)
| ^~~~~~~~~~~~~~
drivers/phy/renesas/phy-rcar-gen5-mpphy.c:635:12: warning: unused function 'mp_phy_resume' [-Wunused-function]
635 | static int mp_phy_resume(struct device *dev)
| ^~~~~~~~~~~~~
3 warnings generated.
vim +455 drivers/phy/renesas/phy-rcar-gen5-mpphy.c
441
442 static int mp_phy_read_poll_pcie4(struct phy *phy)
443 {
444 struct mp_phy_priv *priv = phy_get_drvdata(phy);
445 u32 rx_ack, tx_ack;
446
447 if (priv->num_lanes[phy->id] == 2) {
448 tx_ack = readl(priv->base + MPPHY_PXTXREQ(2 * phy->id));
449 rx_ack = readl(priv->base + MPPHY_PXRXREQ1(2 * phy->id));
450 } else if (priv->num_lanes[phy->id] == 4) {
451 tx_ack = readl(priv->base + MPPHY_PXTXREQ(2 * phy->id)) &
452 readl(priv->base + MPPHY_PXTXREQ((2 * phy->id) + 1));
453 rx_ack = readl(priv->base + MPPHY_PXRXREQ1(2 * phy->id)) &
454 readl(priv->base + MPPHY_PXRXREQ1((2 * phy->id) + 1));
> 455 } else if (priv->num_lanes[phy->id] == 8) {
456 tx_ack = readl(priv->base + MPPHY_PXTXREQ(0)) &
457 readl(priv->base + MPPHY_PXTXREQ(1)) &
458 readl(priv->base + MPPHY_PXTXREQ(2)) &
459 readl(priv->base + MPPHY_PXTXREQ(3));
460 rx_ack = readl(priv->base + MPPHY_PXRXREQ1(0)) &
461 readl(priv->base + MPPHY_PXRXREQ1(1)) &
462 readl(priv->base + MPPHY_PXRXREQ1(2)) &
463 readl(priv->base + MPPHY_PXRXREQ1(3));
464 }
465
466 return !(tx_ack & BIT(9)) && !(rx_ack & BIT(1));
467 }
468
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread