qed: fix old-style function definition
authorArnd Bergmann <arnd@arndb.de>
Mon, 10 Oct 2016 11:59:16 +0000 (13:59 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Oct 2016 14:52:55 +0000 (10:52 -0400)
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")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Yuval Mintz <Yuval.Mintz@caviumnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_roce.c

index 23430059471ca11da1cdc3e47bc9736143aa5bf7..76831a398bedf024d299db1ffb68c1149664ace1 100644 (file)
@@ -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;
 }