Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1498254 > unrolled thread

[PATCH] qed: fix old-style function definition

Started byArnd Bergmann <arnd@arndb.de>
First post2016-10-10 14:10 +0200
Last post2016-10-14 02:10 +0200
Articles 4 — 3 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] qed: fix old-style function definition Arnd Bergmann <arnd@arndb.de> - 2016-10-10 14:10 +0200
    Re: [PATCH] qed: fix old-style function definition David Miller <davem@davemloft.net> - 2016-10-13 16:00 +0200
      Re: [PATCH] qed: fix old-style function definition David Miller <davem@davemloft.net> - 2016-10-13 17:00 +0200
      RE: [PATCH] qed: fix old-style function definition "Mintz, Yuval" <Yuval.Mintz@cavium.com> - 2016-10-14 02:10 +0200

#1498254 — [PATCH] qed: fix old-style function definition

FromArnd Bergmann <arnd@arndb.de>
Date2016-10-10 14:10 +0200
Subject[PATCH] qed: fix old-style function definition
Message-ID<sqHz5-16x-47@gated-at.bofh.it>
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>
---
 drivers/net/ethernet/qlogic/qed/qed_roce.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
 }
-- 
2.9.0

[toc] | [next] | [standalone]


#1500283

FromDavid Miller <davem@davemloft.net>
Date2016-10-13 16:00 +0200
Message-ID<srOI9-4cr-13@gated-at.bofh.it>
In reply to#1498254
From: Arnd Bergmann <arnd@arndb.de>
Date: Mon, 10 Oct 2016 13:59:16 +0200

> 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>

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

Thanks.

[toc] | [prev] | [next] | [standalone]


#1500317

FromDavid Miller <davem@davemloft.net>
Date2016-10-13 17:00 +0200
Message-ID<srPEe-4Qo-15@gated-at.bofh.it>
In reply to#1500283
From: "Mintz, Yuval" <Yuval.Mintz@cavium.com>
Date: Thu, 13 Oct 2016 14:15:51 +0000

>> > 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>
>> 
>> Again, Qlogic folks, please properly review patches posted against your driver.
>> 
>> Thanks.
> 
> Sorry, managed to miss this one.
> Acked-by: Yuval Mintz <Yuval.Mintz@caviumnetworks.com>

Applied.

[toc] | [prev] | [next] | [standalone]


#1500639

From"Mintz, Yuval" <Yuval.Mintz@cavium.com>
Date2016-10-14 02:10 +0200
Message-ID<srPEe-4Qo-17@gated-at.bofh.it>
In reply to#1500283
> > 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>
> 
> Again, Qlogic folks, please properly review patches posted against your driver.
> 
> Thanks.

Sorry, managed to miss this one.
Acked-by: Yuval Mintz <Yuval.Mintz@caviumnetworks.com>

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web