Skip to contentSkip to conversation

qed: fix old-style function definition

PATCH Applied Arnd Bergmann 3 participants 4 messages Oct 10, 2016 – Oct 13, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qed: fix old-style function definition

The definition of qed_get_rdma_ops() is not a prototype unless we add 'void' here, as indicated by this W=1 warning:

drivers/net/ethernet/qlogic/qed/qed_roce.c: In function ‘qed_get_rdma_ops’:
drivers/net/ethernet/qlogic/qed/qed_roce.c:2950:28: error: old-style function definition [-Werror=old-style-definition]

Fixes abd49676c707 ("qed: Add RoCE ll2 & GSI support")
---
 drivers/net/ethernet/qlogic/qed/qed_roce.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/qlogic/qed/qed_roce.c +1 -1
index 23430059471c..76831a398bed 100644
@@ -2947,7 +2947,7 @@ static const struct qed_rdma_ops qed_rdma_ops_pass = {
 	.roce_ll2_stats = &qed_roce_ll2_stats,
 };
 
-const struct qed_rdma_ops *qed_get_rdma_ops()
+const struct qed_rdma_ops *qed_get_rdma_ops(void)
 {
 	return &qed_rdma_ops_pass;
 }
Signature · 1 line
2.9.0
maintainer
#1 lore raw

From: Arnd Bergmann <[email protected]>
Date: Mon, 10 Oct 2016 13:59:16 +0200

Quoted 8 lines

The definition of qed_get_rdma_ops() is not a prototype unless we add 'void' here, as indicated by this W=1 warning:

drivers/net/ethernet/qlogic/qed/qed_roce.c: In function ‘qed_get_rdma_ops’:
drivers/net/ethernet/qlogic/qed/qed_roce.c:2950:28: error: old-style function definition [-Werror=old-style-definition]

Fixes abd49676c707 ("qed: Add RoCE ll2 & GSI support")

Again, Qlogic folks, please properly review patches posted against your driver.

Thanks.

maintainer Applied
#3 lore raw
In reply to Mintz, Yuval

From: "Mintz, Yuval" <[email protected]>
Date: Thu, 13 Oct 2016 14:15:51 +0000

Quoted 10 lines
Quoted 10 lines
Quoted 9 lines

The definition of qed_get_rdma_ops() is not a prototype unless we add 'void' here, as indicated by this W=1 warning:

drivers/net/ethernet/qlogic/qed/qed_roce.c: In function ‘qed_get_rdma_ops’:
drivers/net/ethernet/qlogic/qed/qed_roce.c:2950:28: error: old-style function definition [-Werror=old-style-definition]

Fixes abd49676c707 ("qed: Add RoCE ll2 & GSI support")
Quoted 6 lines
Quoted 3 lines

Again, Qlogic folks, please properly review patches posted against your driver.

Thanks.

Sorry, managed to miss this one.

Applied.

Acked-by Yuval Mintz
#2 lore raw
In reply to David Miller
Quoted 7 lines
Quoted 7 lines

The definition of qed_get_rdma_ops() is not a prototype unless we add 'void' here, as indicated by this W=1 warning:

drivers/net/ethernet/qlogic/qed/qed_roce.c: In function ‘qed_get_rdma_ops’:
drivers/net/ethernet/qlogic/qed/qed_roce.c:2950:28: error: old-style function definition [-Werror=old-style-definition]

Quoted 6 lines
Quoted 2 lines
Fixes abd49676c707 ("qed: Add RoCE ll2 & GSI support")

Again, Qlogic folks, please properly review patches posted against your driver.

Thanks.

Sorry, managed to miss this one.