Skip to contentSkip to conversation

net/qede: correct function declaration syntax

PATCH Applied Emmanuel Roullit 2 participants 4 messages Jan 15, 2017 – Jan 16, 2017 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/qede: correct function declaration syntax

clang reports this error message:
error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes]

---
 drivers/net/qede/qede_eth_if.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/qede/qede_eth_if.h +1 -1
index 33655c3..74e17f8 100644
@@ -171,7 +171,7 @@ struct qed_eth_ops {
 
 extern const struct qed_common_ops qed_common_ops_pass;
 
-const struct qed_eth_ops *qed_get_eth_ops();
+const struct qed_eth_ops *qed_get_eth_ops(void);
 
 int qed_configure_filter_rx_mode(struct ecore_dev *edev,
 				 enum qed_filter_rx_mode_type type);
Signature · 1 line
1.9.1
#1 lore raw

Hi Emmanuel,

Quoted 3 lines · Emmanuel Roullit

clang reports this error message:
error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes]

What is the clang version?

Thanks,
ferruh