aboutsummaryrefslogtreecommitdiffstats
path: root/net/hsr/hsr_main.h
diff options
context:
space:
mode:
authorMurali Karicheri <m-karicheri2@ti.com>2019-04-15 11:36:02 -0400
committerDavid S. Miller <davem@davemloft.net>2019-04-15 17:22:02 -0700
commit3271273388fb14a4e8c582a8c7eaf5ef958291b1 (patch)
treee517412dea62aa91e86b3e29ae626efd06b27e3a /net/hsr/hsr_main.h
parentnet: hsr: fix naming of file and functions (diff)
downloadlinux-dev-3271273388fb14a4e8c582a8c7eaf5ef958291b1.tar.xz
linux-dev-3271273388fb14a4e8c582a8c7eaf5ef958291b1.zip
net: hsr: fix debugfs path to support multiple interfaces
Fix the path of hsr debugfs root directory to use the net device name so that it can work with multiple interfaces. While at it, also fix some typos. Signed-off-by: Murali Karicheri <m-karicheri2@ti.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--net/hsr/hsr_main.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/hsr/hsr_main.h b/net/hsr/hsr_main.h
index 6cd4dff58727..96fac696a1e1 100644
--- a/net/hsr/hsr_main.h
+++ b/net/hsr/hsr_main.h
@@ -184,10 +184,11 @@ static inline u16 hsr_get_skb_sequence_nr(struct sk_buff *skb)
}
#if IS_ENABLED(CONFIG_DEBUG_FS)
-int hsr_debugfs_init(struct hsr_priv *priv);
+int hsr_debugfs_init(struct hsr_priv *priv, struct net_device *hsr_dev);
void hsr_debugfs_term(struct hsr_priv *priv);
#else
-static inline int hsr_debugfs_init(struct hsr_priv *priv)
+static inline int hsr_debugfs_init(struct hsr_priv *priv,
+ struct net_device *hsr_dev)
{
return 0;
}