All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Frank Wunderlich <frank-w@public-files.de>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [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'
Date: Wed, 31 Jan 2024 09:36:37 +0800	[thread overview]
Message-ID: <202401310945.5roViXaG-lkp@intel.com> (raw)

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

                 reply	other threads:[~2024-01-31  1:36 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202401310945.5roViXaG-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=frank-w@public-files.de \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.