]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit67904e89716076b5600e5781520808567041c3c7
tree08770fe4d94b87ffcd0b71a10d0d5051f44df73d
parent2963b0c89cebff0e92c61c25be71b1e2aeeccc30
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: b1772d9ff7cf ("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