Skip to content

Commit eae9d3c

Browse files
vladimirolteandavem330
authored andcommitted
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 <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 2a2e01e commit eae9d3c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

drivers/net/dsa/sja1105/sja1105_vl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*/
44
#include <net/tc_act/tc_gate.h>
55
#include <linux/dsa/8021q.h>
6-
#include "sja1105.h"
6+
#include "sja1105_vl.h"
77

88
#define SJA1105_SIZE_VL_STATUS 8
99

drivers/net/dsa/sja1105/sja1105_vl.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
#ifndef _SJA1105_VL_H
55
#define _SJA1105_VL_H
66

7+
#include "sja1105.h"
8+
79
#if IS_ENABLED(CONFIG_NET_DSA_SJA1105_VL)
810

911
int sja1105_vl_redirect(struct sja1105_private *priv, int port,

0 commit comments

Comments
 (0)