All of lore.kernel.org
 help / color / mirror / Atom feed
* [frank-w-bpi-r2-4.14:5.4-main 1546/26476] drivers/net/dsa/mt7530.c:2151:6: warning: no previous prototype for function 'mt7531_sgmii_restart_an'
@ 2024-01-31  1:36 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-01-31  1:36 UTC (permalink / raw)
  To: Frank Wunderlich; +Cc: oe-kbuild-all

tree:   https://github.com/frank-w/BPI-R2-4.14 5.4-main
head:   645dca86a686ddae272b209432af075ecc0185c5
commit: a5f7cc192993935d0bc3edcca566684364e66785 [1546/26476] net: dsa: mt7530: Add the support of MT7531 switch
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20240131/202401310945.5roViXaG-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240131/202401310945.5roViXaG-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/202401310945.5roViXaG-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/net/dsa/mt7530.c:2151:6: warning: no previous prototype for function 'mt7531_sgmii_restart_an' [-Wmissing-prototypes]
    2151 | void mt7531_sgmii_restart_an(struct dsa_switch *ds, int port)
         |      ^
   drivers/net/dsa/mt7530.c:2151:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
    2151 | void mt7531_sgmii_restart_an(struct dsa_switch *ds, int port)
         | ^
         | static 
   1 warning generated.


vim +/mt7531_sgmii_restart_an +2151 drivers/net/dsa/mt7530.c

  2150	
> 2151	void mt7531_sgmii_restart_an(struct dsa_switch *ds, int port)
  2152	{
  2153		struct mt7530_priv *priv = ds->priv;
  2154		u32 val;
  2155	
  2156		val = mt7530_read(priv, MT7531_PCS_CONTROL_1(port));
  2157		val |= MT7531_SGMII_AN_RESTART;
  2158		mt7530_write(priv, MT7531_PCS_CONTROL_1(port), val);
  2159	}
  2160	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-01-31  1:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-31  1:36 [frank-w-bpi-r2-4.14:5.4-main 1546/26476] drivers/net/dsa/mt7530.c:2151:6: warning: no previous prototype for function 'mt7531_sgmii_restart_an' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.