]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: dsa: sja1105: suppress -Wmissing-prototypes in sja1105_vl.c
authorVladimir Oltean <vladimir.oltean@nxp.com>
Sun, 31 May 2020 18:25:51 +0000 (21:25 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 Jun 2020 19:13:47 +0000 (12:13 -0700)
Newer C compilers are complaining about the fact that there are no
function prototypes in sja1105_vl.c for the non-static functions.
Give them what they want.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/sja1105/sja1105_vl.c
drivers/net/dsa/sja1105/sja1105_vl.h

index f37611885376e8d7f8c20f73dca9bcc626f7d93d..bdfd6c4e190d6295cadfcc2f975628d0e25e1510 100644 (file)
@@ -3,7 +3,7 @@
  */
 #include <net/tc_act/tc_gate.h>
 #include <linux/dsa/8021q.h>
-#include "sja1105.h"
+#include "sja1105_vl.h"
 
 #define SJA1105_SIZE_VL_STATUS                 8
 
index 323fa0535af76c335211b38c974902f408b9d7d5..173d78963fed5dd4ab04a2600426f0fce9cdbf0b 100644 (file)
@@ -4,6 +4,8 @@
 #ifndef _SJA1105_VL_H
 #define _SJA1105_VL_H
 
+#include "sja1105.h"
+
 #if IS_ENABLED(CONFIG_NET_DSA_SJA1105_VL)
 
 int sja1105_vl_redirect(struct sja1105_private *priv, int port,