Re: [PATCH RFC net-next 09/15] net: stmmac: rk: use rk_encode_wm16() for RMII clock

kernel test robot
2025-12-03T23:39:42Z

Hi Russell,

[This is a private test report for your RFC patch.]
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/Russell-King-Oracle/net-stmmac-rk-add-GMAC_CLK_xx-constants-simplify-RGMII-definitions/20251202-025335
base: net-next/main
patch link: https://lore.kernel.org/r/E1vQ5FQ-0000000GNwH-37za%40rmk-PC.armlinux.org.uk
patch subject: [PATCH RFC net-next 09/15] net: stmmac: rk: use rk_encode_wm16() for RMII clock
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20251204/202512040705.bipjEIV8-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/20251204/202512040705.bipjEIV8-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/202512040705.bipjEIV8-lkp@intel.com/

All errors (new ones prefixed by >>):

drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c:498:39: error: variable has incomplete type 'const struct rk_reg_speed_data'
498 | static const struct rk_reg_speed_data rk3308_reg_speed_data = {
| ^
drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c:498:21: note: forward declaration of 'struct rk_reg_speed_data'
498 | static const struct rk_reg_speed_data rk3308_reg_speed_data = {
| ^
>> drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c:893:9: error: use of undeclared identifier 'RK3528_GMAC0_CLK_RMII_DIV2'
893 | RK3528_GMAC0_CLK_RMII_DIV2);
| ^
2 errors generated.

vim +/RK3528_GMAC0_CLK_RMII_DIV2 +893 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c

1725f0eb37d621 David Wu 2025-03-19 884
1725f0eb37d621 David Wu 2025-03-19 885 static void rk3528_set_to_rmii(struct rk_priv_data *bsp_priv)
1725f0eb37d621 David Wu 2025-03-19 886 {
1725f0eb37d621 David Wu 2025-03-19 887 if (bsp_priv->id == 1)
1725f0eb37d621 David Wu 2025-03-19 888 regmap_write(bsp_priv->grf, RK3528_VPU_GRF_GMAC_CON5,
1725f0eb37d621 David Wu 2025-03-19 889 RK3528_GMAC1_PHY_INTF_SEL_RMII);
1725f0eb37d621 David Wu 2025-03-19 890 else
1725f0eb37d621 David Wu 2025-03-19 891 regmap_write(bsp_priv->grf, RK3528_VO_GRF_GMAC_CON,
1725f0eb37d621 David Wu 2025-03-19 892 RK3528_GMAC0_PHY_INTF_SEL_RMII |
1725f0eb37d621 David Wu 2025-03-19 @893 RK3528_GMAC0_CLK_RMII_DIV2);
1725f0eb37d621 David Wu 2025-03-19 894 }
1725f0eb37d621 David Wu 2025-03-19 895

--
0-DAY CI Kernel Test Service