From: Vladimir Oltean Date: Sun, 31 May 2020 18:25:51 +0000 (+0300) Subject: net: dsa: sja1105: suppress -Wmissing-prototypes in sja1105_vl.c X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=eae9d3c0167df840e821317040efcf0ca6789cb9;p=uclinux-h8%2Flinux.git net: dsa: sja1105: suppress -Wmissing-prototypes in sja1105_vl.c 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 Reviewed-by: Florian Fainelli Signed-off-by: David S. Miller --- diff --git a/drivers/net/dsa/sja1105/sja1105_vl.c b/drivers/net/dsa/sja1105/sja1105_vl.c index f37611885376..bdfd6c4e190d 100644 --- a/drivers/net/dsa/sja1105/sja1105_vl.c +++ b/drivers/net/dsa/sja1105/sja1105_vl.c @@ -3,7 +3,7 @@ */ #include #include -#include "sja1105.h" +#include "sja1105_vl.h" #define SJA1105_SIZE_VL_STATUS 8 diff --git a/drivers/net/dsa/sja1105/sja1105_vl.h b/drivers/net/dsa/sja1105/sja1105_vl.h index 323fa0535af7..173d78963fed 100644 --- a/drivers/net/dsa/sja1105/sja1105_vl.h +++ b/drivers/net/dsa/sja1105/sja1105_vl.h @@ -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,