All of lore.kernel.org
 help / color / mirror / Atom feed
* [frank-w-bpi-r2-4.14:5.8-trgmii 28/54] drivers/net/dsa/mt7530.c:2124:6: warning: no previous prototype for 'mt7531_sgmii_restart_an'
@ 2020-07-26  7:03 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-07-26  7:03 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 1924 bytes --]

tree:   https://github.com/frank-w/BPI-R2-4.14 5.8-trgmii
head:   f3e949799627645694731f4d5126da65dd5596c5
commit: 405f50b9779ce6f810ec5174bee96492991dfed0 [28/54] net: dsa: mt7530: Add the support of MT7531 switch
config: microblaze-randconfig-r036-20200726 (attached as .config)
compiler: microblaze-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 405f50b9779ce6f810ec5174bee96492991dfed0
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=microblaze 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   drivers/net/dsa/mt7530.c: In function 'mt7530_pad_setup':
   drivers/net/dsa/mt7530.c:1738:22: warning: unused variable 'priv' [-Wunused-variable]
    1738 |  struct mt7530_priv *priv = ds->priv;
         |                      ^~~~
   drivers/net/dsa/mt7530.c: At top level:
>> drivers/net/dsa/mt7530.c:2124:6: warning: no previous prototype for 'mt7531_sgmii_restart_an' [-Wmissing-prototypes]
    2124 | void mt7531_sgmii_restart_an(struct dsa_switch *ds, int port)
         |      ^~~~~~~~~~~~~~~~~~~~~~~

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

  2123	
> 2124	void mt7531_sgmii_restart_an(struct dsa_switch *ds, int port)
  2125	{
  2126		struct mt7530_priv *priv = ds->priv;
  2127		u32 val;
  2128	
  2129		val = mt7530_read(priv, MT7531_PCS_CONTROL_1(port));
  2130		val |= MT7531_SGMII_AN_RESTART;
  2131		mt7530_write(priv, MT7531_PCS_CONTROL_1(port), val);
  2132	}
  2133	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 33407 bytes --]

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

only message in thread, other threads:[~2020-07-26  7:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-26  7:03 [frank-w-bpi-r2-4.14:5.8-trgmii 28/54] drivers/net/dsa/mt7530.c:2124:6: warning: no previous prototype for '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.