tree:
https://github.com/frank-w/BPI-R2-4.14 5.7-rc
head: b020fdd1ceb1683f13d77545ad0aa5c194fed62f
commit: 0493f8e427d318aecd1c2514f39da1bef1bbe933 [6/39] net: dsa: mt7530: Add the support
of MT7531 switch
config: mips-allyesconfig (attached as .config)
compiler: mips-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 0493f8e427d318aecd1c2514f39da1bef1bbe933
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
drivers/net/dsa/mt7530.c: In function 'mt7530_pad_setup':
drivers/net/dsa/mt7530.c:1723:3: error: implicit declaration of function
'mt7623_pad_clk_setup'; did you mean 'mt7530_pad_clk_setup'?
[-Werror=implicit-function-declaration]
1723 | mt7623_pad_clk_setup(ds);
| ^~~~~~~~~~~~~~~~~~~~
| mt7530_pad_clk_setup
drivers/net/dsa/mt7530.c: At top level:
> drivers/net/dsa/mt7530.c:2107:6: warning: no previous prototype
for 'mt7531_sgmii_restart_an' [-Wmissing-prototypes]
2107 | void
mt7531_sgmii_restart_an(struct dsa_switch *ds, int port)
| ^~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/mt7531_sgmii_restart_an +2107 drivers/net/dsa/mt7530.c
2106
2107 void mt7531_sgmii_restart_an(struct dsa_switch *ds, int port)
2108 {
2109 struct mt7530_priv *priv = ds->priv;
2110 u32 val;
2111
2112 val = mt7530_read(priv, MT7531_PCS_CONTROL_1(port));
2113 val |= MT7531_SGMII_AN_RESTART;
2114 mt7530_write(priv, MT7531_PCS_CONTROL_1(port), val);
2115 }
2116
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org