summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/qlogic/qed/qed_roce.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-10-10 13:59:16 +0200
committerDavid S. Miller <davem@davemloft.net>2016-10-13 10:52:55 -0400
commitd4e991313bd5e10bfa66cd280b8fce6dc3f2d897 (patch)
tree08770fe4d94b87ffcd0b71a10d0d5051f44df73d /drivers/net/ethernet/qlogic/qed/qed_roce.c
parentad19bc8a95baee4588e9ec4481297d97c0bec765 (diff)
downloadlinux-d4e991313bd5e10bfa66cd280b8fce6dc3f2d897.tar.gz
linux-d4e991313bd5e10bfa66cd280b8fce6dc3f2d897.tar.bz2
linux-d4e991313bd5e10bfa66cd280b8fce6dc3f2d897.zip
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") 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>
Diffstat (limited to 'drivers/net/ethernet/qlogic/qed/qed_roce.c')
-rw-r--r--drivers/net/ethernet/qlogic/qed/qed_roce.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/qlogic/qed/qed_roce.c b/drivers/net/ethernet/qlogic/qed/qed_roce.c
index 23430059471c..76831a398bed 100644
--- a/drivers/net/ethernet/qlogic/qed/qed_roce.c
+++ b/drivers/net/ethernet/qlogic/qed/qed_roce.c
@@ -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;
}