Skip to contentSkip to conversation

hsr: Fix a compilation error

PATCH Superseded xiaofeng.yan 2 participants 2 messages Jan 20, 2020

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hsr: Fix a compilation error

From: "xiaofeng.yan" <[email protected]>

A compliation error happen when building branch 5.5-rc7

In file included from net/hsr/hsr_main.c:12:0:
net/hsr/hsr_main.h:194:20: error: two or more data types in declaration specifiers
static inline void void hsr_debugfs_rename(struct net_device *dev)

So Removed one void.

---
 net/hsr/hsr_main.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/hsr/hsr_main.h +1 -1
index d40de84..754d84b 100644
@@ -191,7 +191,7 @@ static inline u16 hsr_get_skb_sequence_nr(struct sk_buff *skb)
 void hsr_debugfs_create_root(void);
 void hsr_debugfs_remove_root(void);
 #else
-static inline void void hsr_debugfs_rename(struct net_device *dev)
+static inline void hsr_debugfs_rename(struct net_device *dev)
 {
 }
 static inline void hsr_debugfs_init(struct hsr_priv *priv,
Signature · 1 line
1.8.3.1
Acked-by on v1 1/1
#1 lore raw
Quoted 3 lines · xiaofeng.yan

From: "xiaofeng.yan" <[email protected]>

Hi Xiaofeng,

Quoted 9 lines

A compliation error happen when building branch 5.5-rc7

In file included from net/hsr/hsr_main.c:12:0:
net/hsr/hsr_main.h:194:20: error: two or more data types in declaration specifiers
static inline void void hsr_debugfs_rename(struct net_device *dev)

So Removed one void.

I think the Fixes tag is needed.
You might have to send a v2 patch, which includes this Fixes tag.

Fixes 4c2d5e33dcd3 ("hsr: rename debugfs file when interface name is changed")

Thank you!
Taehee Yoo