tree:
https://github.com/frank-w/BPI-R2-4.14 5.9-r64
head: cd8fe04edbda6f089442fcbdedad421a55e44b21
commit: ce71ea546d2c5bcd9d79dc19dc5a94d5d55b55de [11/14] net: dsa: mt7530: Add the support
of MT7531 switch
config: nios2-allyesconfig (attached as .config)
compiler: nios2-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 ce71ea546d2c5bcd9d79dc19dc5a94d5d55b55de
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nios2
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
> drivers/net/dsa/mt7530.c:1976:1: warning: no previous prototype
for 'mt7531_sgmii_link_up_force' [-Wmissing-prototypes]
1976 |
mt7531_sgmii_link_up_force(struct dsa_switch *ds, int port,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/mt7530.c:2081:6: warning: no previous prototype for
'mt7531_sgmii_restart_an' [-Wmissing-prototypes]
2081 | void mt7531_sgmii_restart_an(struct dsa_switch *ds, int port)
| ^~~~~~~~~~~~~~~~~~~~~~~
#
https://github.com/frank-w/BPI-R2-4.14/commit/ce71ea546d2c5bcd9d79dc19dc5...
git remote add frank-w-bpi-r2-4.14
https://github.com/frank-w/BPI-R2-4.14
git fetch --no-tags frank-w-bpi-r2-4.14 5.9-r64
git checkout ce71ea546d2c5bcd9d79dc19dc5a94d5d55b55de
vim +/mt7531_sgmii_link_up_force +1976 drivers/net/dsa/mt7530.c
1974
1975 void
1976 mt7531_sgmii_link_up_force(struct dsa_switch *ds, int port,
1977 unsigned int mode, phy_interface_t interface,
1978 int speed, int duplex)
1979 {
1980 struct mt7530_priv *priv = ds->priv;
1981 unsigned int val;
1982
1983 /* For adjusting speed and duplex of SGMII force mode. */
1984 if (interface != PHY_INTERFACE_MODE_SGMII ||
1985 phylink_autoneg_inband(mode))
1986 return;
1987
1988 /* SGMII force mode setting */
1989 val = mt7530_read(priv, MT7531_SGMII_MODE(port));
1990 val &= ~MT7531_SGMII_IF_MODE_MASK;
1991
1992 switch (speed) {
1993 case SPEED_10:
1994 val |= MT7531_SGMII_FORCE_SPEED_10;
1995 break;
1996 case SPEED_100:
1997 val |= MT7531_SGMII_FORCE_SPEED_100;
1998 break;
1999 case SPEED_1000:
2000 val |= MT7531_SGMII_FORCE_SPEED_1000;
2001 break;
2002 }
2003
2004 /* MT7531 SGMII 1G force mode can only work in full duplex mode,
2005 * no matter MT7531_SGMII_FORCE_HALF_DUPLEX is set or not.
2006 */
2007 if ((speed == SPEED_10 || speed == SPEED_100) &&
2008 duplex != DUPLEX_FULL)
2009 val |= MT7531_SGMII_FORCE_HALF_DUPLEX;
2010
2011 mt7530_write(priv, MT7531_SGMII_MODE(port), val);
2012 }
2013
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org