All of lore.kernel.org
 help / color / mirror / Atom feed
* [frank-w-bpi-r2-4.14:5.5-r64-netnext 4/9] drivers/net/dsa/mt7530.c:2145:6: sparse: sparse: symbol 'mt7531_sgmii_restart_an' was not declared. Should it be static?
@ 2019-12-10 20:54 kbuild test robot
  2019-12-10 20:54 ` [RFC PATCH frank-w-bpi-r2-4.14] net: dsa: mt7530: mt7531_sgmii_restart_an() can be static kbuild test robot
  0 siblings, 1 reply; 2+ messages in thread
From: kbuild test robot @ 2019-12-10 20:54 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://github.com/frank-w/BPI-R2-4.14 5.5-r64-netnext
head:   8279c8de4a1954659b5cc71872ab0fe86d862bb2
commit: 604beb561a7430968f56a835dce6e6b8c2f09253 [4/9] net: dsa: mt7530: Add the support of MT7531 switch
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.1-101-g82dee2e-dirty
        git checkout 604beb561a7430968f56a835dce6e6b8c2f09253
        make ARCH=x86_64 allmodconfig
        make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

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


sparse warnings: (new ones prefixed by >>)

>> drivers/net/dsa/mt7530.c:2145:6: sparse: sparse: symbol 'mt7531_sgmii_restart_an' was not declared. Should it be static?

Please review and possibly fold the followup patch.

---
0-DAY kernel test infrastructure                 Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org Intel Corporation

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [RFC PATCH frank-w-bpi-r2-4.14] net: dsa: mt7530: mt7531_sgmii_restart_an() can be static
  2019-12-10 20:54 [frank-w-bpi-r2-4.14:5.5-r64-netnext 4/9] drivers/net/dsa/mt7530.c:2145:6: sparse: sparse: symbol 'mt7531_sgmii_restart_an' was not declared. Should it be static? kbuild test robot
@ 2019-12-10 20:54 ` kbuild test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kbuild test robot @ 2019-12-10 20:54 UTC (permalink / raw)
  To: kbuild-all

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


Fixes: 604beb561a74 ("net: dsa: mt7530: Add the support of MT7531 switch")
Signed-off-by: kbuild test robot <lkp@intel.com>
---
 mt7530.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/dsa/mt7530.c b/drivers/net/dsa/mt7530.c
index 4bee04d75b496..34a30e5fe48ec 100644
--- a/drivers/net/dsa/mt7530.c
+++ b/drivers/net/dsa/mt7530.c
@@ -2142,7 +2142,7 @@ static void mt753x_phylink_mac_config(struct dsa_switch *ds, int port,
 		mt7530_write(priv, MT7530_PMCR_P(port), mcr_new);
 }
 
-void mt7531_sgmii_restart_an(struct dsa_switch *ds, int port)
+static void mt7531_sgmii_restart_an(struct dsa_switch *ds, int port)
 {
 	struct mt7530_priv *priv = ds->priv;
 	u32 val;

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-12-10 20:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-10 20:54 [frank-w-bpi-r2-4.14:5.5-r64-netnext 4/9] drivers/net/dsa/mt7530.c:2145:6: sparse: sparse: symbol 'mt7531_sgmii_restart_an' was not declared. Should it be static? kbuild test robot
2019-12-10 20:54 ` [RFC PATCH frank-w-bpi-r2-4.14] net: dsa: mt7530: mt7531_sgmii_restart_an() can be static kbuild 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.