linux-next: build failure after merge of the rdma tree
Subsystems (2)
Hi all,
After merging the rdma tree, today's linux-next build (x86_64 allmodconfig) failed like this:
In file included from /home/sfr/next/next/include/rdma/rdma_counter.h:12,
from <command-line>:/home/sfr/next/next/include/rdma/ib_verbs.h:2126:27: error: field 'port_counter' has incomplete type
struct rdma_port_counter port_counter;
^~~~~~~~~~~~Caused by commit
413d3347503b ("RDMA/counter: Add set/clear per-port auto mode support")
rdma_counter.h include ib_verbs.h which in turn needs rdma_port_counter from rdma_counter.h, but it is not defined yet :-(
I have applied the following patch for today.
From: Stephen Rothwell <[email protected]>
Date: Tue, 9 Jul 2019 13:17:49 +1000
Subject: [PATCH] RDMA: don't try to build rdma_counter.h for now
rdma_counter.h include ib_verbs.h which in turn needs rdma_port_counter from rdma_counter.h, but it is not defined yet :-(
--- include/Kbuild | 1 + 1 file changed, 1 insertion(+)
include/Kbuild +1 -0
@@ -939,6 +939,7 @@ header-test- += rdma/ib.h header-test- += rdma/iw_portmap.h header-test- += rdma/opa_port_info.h header-test- += rdma/rdmavt_cq.h +header-test- += rdma/rdma_counter.h header-test- += rdma/restrack.h header-test- += rdma/signature.h header-test- += rdma/tid_rdma_defs.h
Signature · 5 lines
2.20.1 -- Cheers, Stephen Rothwell
Hi Stephen,
Can you please try the patch below, thank you.
net/mlx5: Remove include ib_verbs.h in rdma_counter.h
rdma_counter.h include ib_verbs.h which in turn needs rdma_port_counter from rdma_counter.h, but it is not defined yet.
support")
include/rdma/rdma_counter.h +1 -1
@@ -9,10 +9,10 @@#include <linux/mutex.h> #include <linux/pid_namespace.h> -#include <rdma/ib_verbs.h> #include <rdma/restrack.h> #include <rdma/rdma_netlink.h> +struct ib_device ;struct ib_qp ;struct auto_mode_param {
Quoted 45 lines · Stephen Rothwell
Hi all,
After merging the rdma tree, today's linux-next build (
x86_64allmodconfig) failed like this:In file included from
/home/sfr/next/next/include/rdma/rdma_counter.h:12,
from <command-line>:/home/sfr/next/next/include/rdma/ib_verbs.h:2126:27: error: field 'port_counter' has incomplete typestruct rdma_port_counter port_counter; ^~~~~~~~~~~~Caused by commit
413d3347503b ("RDMA/counter: Add set/clear per-port auto mode support")
rdma_counter.hincludeib_verbs.hwhich in turn needsrdma_port_counterfromrdma_counter.h, but it is not defined yet :-(I have applied the following patch for today.
From: Stephen Rothwell <[email protected]>
Date: Tue, 9 Jul 2019 13:17:49 +1000
Subject: [PATCH] RDMA: don't try to buildrdma_counter.hfor now
rdma_counter.hincludeib_verbs.hwhich in turn needsrdma_port_counterfromrdma_counter.h, but it is not defined yet :-(Signed-off-by Stephen Rothwell <[email protected]>--- include/Kbuild | 1 + 1 file changed, 1 insertion(+)include/Kbuild +1
-0@@ -939,6 +939,7 @@ header-test- += rdma/ib.h header-test- += rdma/iw_portmap.h header-test- += rdma/opa_port_info.h header-test- += rdma/rdmavt_cq.h +header-test- += rdma/rdma_counter.h header-test- += rdma/restrack.h header-test- += rdma/signature.h header-test- += rdma/tid_rdma_defs.h
Quoted 1 line · Mark Zhang
Hi Stephen,
Stephen,
For some reason, I wasn't in initial email report, can you please check why?
I need to be aware of any issues related to patches with my name on it for tracking and improving internal submission flows/checks.
Quoted 2 lines
Can you please try the patch below, thank you.
Jason, Doug,
Can you please take this patch?
Thanks
Quoted 74 lines
net/mlx5: Remove include
ib_verbs.hinrdma_counter.h
rdma_counter.hincludeib_verbs.hwhich in turn needsrdma_port_counterfromrdma_counter.h, but it is not defined yet.Fixes 413d3347503b ("RDMA/counter: Add set/clear per-port auto modesupport")
Signed-off-by Mark Zhang <[email protected]>include/rdma/rdma_counter.h +1
-1@@ -9,10 +9,10 @@#include <linux/mutex.h> #include <linux/pid_namespace.h> -#include <rdma/ib_verbs.h> #include <rdma/restrack.h> #include <rdma/rdma_netlink.h> +struct ib_device ;struct ib_qp ;struct auto_mode_param {Quoted 45 lines · Stephen Rothwell
Hi all,
After merging the rdma tree, today's linux-next build (
x86_64allmodconfig) failed like this:In file included from
/home/sfr/next/next/include/rdma/rdma_counter.h:12,
from <command-line>:/home/sfr/next/next/include/rdma/ib_verbs.h:2126:27: error: field 'port_counter' has incomplete typestruct rdma_port_counter port_counter; ^~~~~~~~~~~~Caused by commit
413d3347503b ("RDMA/counter: Add set/clear per-port auto mode support")
rdma_counter.hincludeib_verbs.hwhich in turn needsrdma_port_counterfromrdma_counter.h, but it is not defined yet :-(I have applied the following patch for today.
From: Stephen Rothwell <[email protected]>
Date: Tue, 9 Jul 2019 13:17:49 +1000
Subject: [PATCH] RDMA: don't try to buildrdma_counter.hfor now
rdma_counter.hincludeib_verbs.hwhich in turn needsrdma_port_counterfromrdma_counter.h, but it is not defined yet :-(Signed-off-by Stephen Rothwell <[email protected]>--- include/Kbuild | 1 + 1 file changed, 1 insertion(+)include/Kbuild +1
-0@@ -939,6 +939,7 @@ header-test- += rdma/ib.h header-test- += rdma/iw_portmap.h header-test- += rdma/opa_port_info.h header-test- += rdma/rdmavt_cq.h +header-test- += rdma/rdma_counter.h header-test- += rdma/restrack.h header-test- += rdma/signature.h header-test- += rdma/tid_rdma_defs.h
Hi Leon,
Quoted 2 lines · On Tue, 9 Jul 2019 07:18:00 +0000 Leon Romanovsky <[email protected]> wrote:
For some reason, I wasn't in initial email report, can you please check why?
Sorry about that, I manually grab email addresses from SOB lines in commits I am reporting and managed to miss yours this time. I might try to script this up.
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 11 lines · Leon Romanovsky
Quoted 1 line · Mark Zhang
Hi Stephen,
Stephen,
For some reason, I wasn't in initial email report, can you please check why?
I need to be aware of any issues related to patches with my name on it for tracking and improving internal submission flows/checks.
Quoted 1 line
Quoted 5 lines
Quoted 1 line
Can you please try the patch below, thank you.
Jason, Doug,
Can you please take this patch?
It isn't quite enough to make the header compile stand alone, I'm adding this instead.
From 37c1e072276b03b080eb24ff24c39080aeaf49ef Mon Sep 17 00:00:00 2001
From: Jason Gunthorpe <[email protected]>
Date: Tue, 9 Jul 2019 09:44:47 -0300
Subject: [PATCH] RDMA/counters: Make rdma_counter.h compile stand alone
5.4-rc1 will have new compile time debugging to test that headers can be compiled stand alone. Many rdma headers are already broken and excluded from the mechanism, however to avoid compile failures during the merge window fix enough so that the newly added header compiles clean.
--- include/rdma/rdma_counter.h | 2 +- include/rdma/restrack.h | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-)
include/rdma/rdma_counter.h +1 -1
@@ -9,10 +9,10 @@#include <linux/mutex.h> #include <linux/pid_namespace.h> -#include <rdma/ib_verbs.h> #include <rdma/restrack.h> #include <rdma/rdma_netlink.h> +struct ib_device ;struct ib_qp ;struct auto_mode_param {
include/rdma/restrack.h +3 -2
@@ -14,6 +14,9 @@#include <uapi/rdma/rdma_netlink.h> #include <linux/xarray.h> +struct ib_device ; +struct sk_buff ; +/** * enum rdma_restrack_type - HW objects to track */
@@ -52,8 +55,6 @@ enum rdma_restrack_type { RDMA_RESTRACK_MAX }; -struct ib_device ; -/** * struct rdma_restrack_entry - metadata per-entry */
Signature · 1 line
2.21.0
Quoted 9 lines · Stephen Rothwell
Hi Leon,
Quoted 2 lines · On Tue, 9 Jul 2019 07:18:00 +0000 Leon Romanovsky <[email protected]> wrote:
For some reason, I wasn't in initial email report, can you please check why?
Sorry about that, I manually grab email addresses from SOB lines in commits I am reporting and managed to miss yours this time. I might try to script this up.
Maybe it will help,
https://github.com/rleon/x-tools/blob/master/x-fp#L141
This is how I'm generating CC-list for patches.
Thanks
Quoted 4 lines
--
Cheers,
Stephen Rothwell
Hi Jason,
Quoted 8 lines · On Tue, 9 Jul 2019 12:46:34 +0000 Jason Gunthorpe <[email protected]> wrote:
It isn't quite enough to make the header compile stand alone, I'm adding this instead.
From
37c1e072276b03b080eb24ff24c39080aeaf49efMon Sep 17 00:00:00 2001
From: Jason Gunthorpe <[email protected]>
Date: Tue, 9 Jul 2019 09:44:47 -0300
Subject: [PATCH] RDMA/counters: Makerdma_counter.hcompile stand alone
I will apply this to linux-next today and reenable the stand alone building for rdma_counter.h
Signature · 2 lines
Cheers, Stephen Rothwell
Hi all,
Quoted 6 lines · On Wed, 10 Jul 2019 11:04:43 +1000 Stephen Rothwell <[email protected]>…
Quoted 4 lines · On Tue, 9 Jul 2019 12:46:34 +0000 Jason Gunthorpe <[email protected]> wrote:
It isn't quite enough to make the header compile stand alone, I'm adding this instead.
Quoted 7 lines
Quoted 4 lines
From
37c1e072276b03b080eb24ff24c39080aeaf49efMon Sep 17 00:00:00 2001
From: Jason Gunthorpe <[email protected]>
Date: Tue, 9 Jul 2019 09:44:47 -0300
Subject: [PATCH] RDMA/counters: Makerdma_counter.hcompile stand aloneI will apply this to linux-next today and reenable the stand alone building for
rdma_counter.h
That worked for me ...
Signature · 2 lines
Cheers, Stephen Rothwell
Hi,
Quoted 13 lines · On Wed, 10 Jul 2019 14:30:36 +1000 Stephen Rothwell <[email protected]>…
Quoted 11 lines · On Wed, 10 Jul 2019 11:04:43 +1000 Stephen Rothwell <[email protected]>…
Quoted 8 lines · On Tue, 9 Jul 2019 12:46:34 +0000 Jason Gunthorpe <[email protected]> wrote:
It isn't quite enough to make the header compile stand alone, I'm adding this instead.
From
37c1e072276b03b080eb24ff24c39080aeaf49efMon Sep 17 00:00:00 2001
From: Jason Gunthorpe <[email protected]>
Date: Tue, 9 Jul 2019 09:44:47 -0300
Subject: [PATCH] RDMA/counters: Makerdma_counter.hcompile stand alone
Quoted 4 lines
Quoted 2 lines
I will apply this to linux-next today and reenable the stand alone building for
rdma_counter.hThat worked for me ...
rdma_counter.h should be able to be removed from the exceptions list now.
I have been building linux-next with this patch for a while, so maybe it could be applied to the kbuild tree?
From: Stephen Rothwell <[email protected]>
Date: Wed, 10 Jul 2019 13:03:16 +1000
Subject: [PATCH] rdma: attempt to build rdma_counter.h stand alone again
--- include/Kbuild | 1 - 1 file changed, 1 deletion(-)
include/Kbuild +0 -1
@@ -949,7 +949,6 @@ header-test- += pcmcia/ds.h header-test- += rdma/ib.h header-test- += rdma/iw_portmap.h header-test- += rdma/opa_port_info.h -header-test- += rdma/rdma_counter.h header-test- += rdma/rdmavt_cq.h header-test- += rdma/restrack.h header-test- += rdma/signature.h
Signature · 5 lines
2.20.1 -- Cheers, Stephen Rothwell
Hi Stephen,
Quoted 41 lines · Stephen Rothwell
Hi,
Quoted 13 lines · On Wed, 10 Jul 2019 14:30:36 +1000 Stephen Rothwell <[email protected]>…
Quoted 11 lines · On Wed, 10 Jul 2019 11:04:43 +1000 Stephen Rothwell <[email protected]>…
Quoted 8 lines · On Tue, 9 Jul 2019 12:46:34 +0000 Jason Gunthorpe <[email protected]> wrote:
It isn't quite enough to make the header compile stand alone, I'm adding this instead.
From
37c1e072276b03b080eb24ff24c39080aeaf49efMon Sep 17 00:00:00 2001
From: Jason Gunthorpe <[email protected]>
Date: Tue, 9 Jul 2019 09:44:47 -0300
Subject: [PATCH] RDMA/counters: Makerdma_counter.hcompile stand aloneQuoted 4 lines
Quoted 2 lines
I will apply this to linux-next today and reenable the stand alone building for
rdma_counter.hThat worked for me ...
rdma_counter.hshould be able to be removed from the exceptions list now.I have been building linux-next with this patch for a while, so maybe it could be applied to the kbuild tree?
From: Stephen Rothwell <[email protected]>
Date: Wed, 10 Jul 2019 13:03:16 +1000
Subject: [PATCH] rdma: attempt to buildrdma_counter.hstand alone againSigned-off-by Stephen Rothwell <[email protected]>--- include/Kbuild | 1 - 1 file changed, 1 deletion(-)include/Kbuild +0
-0
include/Kbuild header-test- += pcmcia/ds.h · line 954
Quoted 7 lines
include/Kbuild +0
-1@@ -949,7 +949,6 @@ header-test- += pcmcia/ds.h header-test- += rdma/ib.h header-test- += rdma/iw_portmap.h header-test- += rdma/opa_port_info.h -header-test- += rdma/rdma_counter.h header-test- += rdma/rdmavt_cq.h header-test- += rdma/restrack.h header-test- += rdma/signature.h
Yes, this is just a one-liner fix-up,
so I'd like to fold it into this:
https://patchwork.kernel.org/patch/11047283/
Signature · 2 lines
Best Regards Masahiro Yamada
Hi Masahiro,
Quoted 5 lines · On Wed, 17 Jul 2019 15:33:28 +0900 Masahiro Yamada…
Yes, this is just a one-liner fix-up,
so I'd like to fold it into this:
Fine by me.
Signature · 2 lines
Cheers, Stephen Rothwell