net: dsa: sja1105: suppress -Wmissing-prototypes in sja1105_vl.c
Vladimir Oltean
maintainerPATCH v2 1/1 net: dsa: sja1105: suppress -Wmissing-prototypes in sja1105_vl.c
From: Vladimir Oltean <[email protected]>
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 <[email protected]>
Reviewed-by Florian Fainelli <[email protected]>
--- drivers/net/dsa/sja1105/sja1105_vl.c | 2 +- drivers/net/dsa/sja1105/sja1105_vl.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-)
drivers/net/dsa/sja1105/sja1105_vl.c +1 -1
@@ -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
drivers/net/dsa/sja1105/sja1105_vl.h +2 -0
@@ -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,
Signature · 1 line
2.25.1
From: Vladimir Oltean <[email protected]>
Date: Sun, 31 May 2020 21:25:51 +0300
Quoted 8 lines
From: Vladimir Oltean <[email protected]>
Newer C compilers are complaining about the fact that there are no function prototypes in
sja1105_vl.cfor the non-static functions. Give them what they want.Signed-off-by Vladimir Oltean <[email protected]>Reviewed-by Florian Fainelli <[email protected]>
Applied.