Skip to contentSkip to conversation

linux-next: build failure after merge of the bpf-next tree

PATCH Stephen Rothwell 3 participants 6 messages Apr 18, 2019

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the bpf-next tree, today's linux-next build (powerpc perf) failed like this:

In file included from xsk.c:32:
libbpf_util.h:49:3: error: #warning Architecture missing native barrier functions in libbpf_util.h. [-Werror=cpp]

 # warning Architecture missing native barrier functions in libbpf_util.h.
   ^~~~~~~
cc1: all warnings being treated as errors

Caused by commit

b7e3a28019c9 ("libbpf: remove dependency on barrier.h in xsk.h")

I have applied the following patch for today ... please fix this.

From: Stephen Rothwell <[email protected]>
Date: Thu, 18 Apr 2019 11:54:56 +1000
Subject: [PATCH] suppress warning in tools/lib/bpf/libbpf_util.h

---
 tools/lib/bpf/libbpf_util.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/lib/bpf/libbpf_util.h +1 -1
index 172b707e007b..a54eb2cdbdd6 100644
@@ -46,7 +46,7 @@ do {				\
 # define libbpf_smp_mb() asm volatile("dmb ish" : : : "memory")
 # define libbpf_smp_rwmb() libbpf_smp_mb()
 #else
-# warning Architecture missing native barrier functions in libbpf_util.h.
+//# warning Architecture missing native barrier functions in libbpf_util.h.
 # define libbpf_smp_rmb() __sync_synchronize()
 # define libbpf_smp_wmb() __sync_synchronize()
 # define libbpf_smp_mb() __sync_synchronize()
Signature · 5 lines
2.20.1

-- 
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 43 lines · Stephen Rothwell

Hi all,

After merging the bpf-next tree, today's linux-next build (powerpc perf) failed like this:

In file included from xsk.c:32:
libbpf_util.h:49:3: error: #warning Architecture missing native barrier functions in libbpf_util.h. [-Werror=cpp]

 # warning Architecture missing native barrier functions in libbpf_util.h.
   ^~~~~~~
cc1: all warnings being treated as errors

Caused by commit

b7e3a28019c9 ("libbpf: remove dependency on barrier.h in xsk.h")

I have applied the following patch for today ... please fix this.

From: Stephen Rothwell <[email protected]>
Date: Thu, 18 Apr 2019 11:54:56 +1000
Subject: [PATCH] suppress warning in tools/lib/bpf/libbpf_util.h

---
 tools/lib/bpf/libbpf_util.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/lib/bpf/libbpf_util.h +1 -2
index 172b707e007b..a54eb2cdbdd6 100644
@@ -46,7 +46,7 @@ do {                          \
 # define libbpf_smp_mb() asm volatile("dmb ish" : : : "memory")
 # define libbpf_smp_rwmb() libbpf_smp_mb()
 #else
-# warning Architecture missing native barrier functions in libbpf_util.h.
+//# warning Architecture missing native barrier functions in libbpf_util.h.
 # define libbpf_smp_rmb() __sync_synchronize()
 # define libbpf_smp_wmb() __sync_synchronize()
 # define libbpf_smp_mb() __sync_synchronize()
--

2.20.1

Quoted 3 lines

--
Cheers,
Stephen Rothwell

My apologies, I will fix this. I just have two questions first so I do not mess things up.

* I see my commit in bpf-next but not in bpf. As I submitted it against bpf, what was the reason it was applied to bpf-next instead? Unfortunately, I forgot to add "Fixes" tags to the commits, so was this the reason? I view 4 out of 5 of these patches as bug fixes, the last one being an optimization.
* Do you want a separate patch for this fix or a V4 of the original patch set? Against bpf-next or bpf (with Fixes tags)?

Thanks: Magnus

#2 lore raw
Quoted 51 lines · Magnus Karlsson
Quoted 43 lines · Stephen Rothwell

Hi all,

After merging the bpf-next tree, today's linux-next build (powerpc perf) failed like this:

In file included from xsk.c:32:
libbpf_util.h:49:3: error: #warning Architecture missing native barrier functions in libbpf_util.h. [-Werror=cpp]

 # warning Architecture missing native barrier functions in libbpf_util.h.
   ^~~~~~~
cc1: all warnings being treated as errors

Caused by commit

b7e3a28019c9 ("libbpf: remove dependency on barrier.h in xsk.h")

I have applied the following patch for today ... please fix this.

From: Stephen Rothwell <[email protected]>
Date: Thu, 18 Apr 2019 11:54:56 +1000
Subject: [PATCH] suppress warning in tools/lib/bpf/libbpf_util.h

---
 tools/lib/bpf/libbpf_util.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/lib/bpf/libbpf_util.h +1 -2
index 172b707e007b..a54eb2cdbdd6 100644
@@ -46,7 +46,7 @@ do {                          \
 # define libbpf_smp_mb() asm volatile("dmb ish" : : : "memory")
 # define libbpf_smp_rwmb() libbpf_smp_mb()
 #else
-# warning Architecture missing native barrier functions in libbpf_util.h.
+//# warning Architecture missing native barrier functions in libbpf_util.h.
 # define libbpf_smp_rmb() __sync_synchronize()
 # define libbpf_smp_wmb() __sync_synchronize()
 # define libbpf_smp_mb() __sync_synchronize()
--

2.20.1

Quoted 3 lines

--
Cheers,
Stephen Rothwell

My apologies, I will fix this. I just have two questions first so I do not mess things up.

Quoted 5 lines

* I see my commit in bpf-next but not in bpf. As I submitted it against bpf, what was the reason it was applied to bpf-next instead? Unfortunately, I forgot to add "Fixes" tags to the commits, so was this the reason? I view 4 out of 5 of these patches as bug fixes, the last one being an optimization.

new macros that users still have to learn how to use are hardly fixes.

I can toss it out of bpf-next if it's easier.

#3 lore raw
Quoted 53 lines · Alexei Starovoitov
Quoted 51 lines · Magnus Karlsson
Quoted 43 lines · Stephen Rothwell

Hi all,

After merging the bpf-next tree, today's linux-next build (powerpc perf) failed like this:

In file included from xsk.c:32:
libbpf_util.h:49:3: error: #warning Architecture missing native barrier functions in libbpf_util.h. [-Werror=cpp]

 # warning Architecture missing native barrier functions in libbpf_util.h.
   ^~~~~~~
cc1: all warnings being treated as errors

Caused by commit

b7e3a28019c9 ("libbpf: remove dependency on barrier.h in xsk.h")

I have applied the following patch for today ... please fix this.

From: Stephen Rothwell <[email protected]>
Date: Thu, 18 Apr 2019 11:54:56 +1000
Subject: [PATCH] suppress warning in tools/lib/bpf/libbpf_util.h

---
 tools/lib/bpf/libbpf_util.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/lib/bpf/libbpf_util.h +1 -2
index 172b707e007b..a54eb2cdbdd6 100644
@@ -46,7 +46,7 @@ do {                          \
 # define libbpf_smp_mb() asm volatile("dmb ish" : : : "memory")
 # define libbpf_smp_rwmb() libbpf_smp_mb()
 #else
-# warning Architecture missing native barrier functions in libbpf_util.h.
+//# warning Architecture missing native barrier functions in libbpf_util.h.
 # define libbpf_smp_rmb() __sync_synchronize()
 # define libbpf_smp_wmb() __sync_synchronize()
 # define libbpf_smp_mb() __sync_synchronize()
--

2.20.1

Quoted 3 lines

--
Cheers,
Stephen Rothwell

My apologies, I will fix this. I just have two questions first so I do not mess things up.

Quoted 7 lines
Quoted 5 lines

* I see my commit in bpf-next but not in bpf. As I submitted it against bpf, what was the reason it was applied to bpf-next instead? Unfortunately, I forgot to add "Fixes" tags to the commits, so was this the reason? I view 4 out of 5 of these patches as bug fixes, the last one being an optimization.

new macros that users still have to learn how to use are hardly fixes.

That is fair.

Quoted 1 line

I can toss it out of bpf-next if it's easier.

How about you toss it out of bpf-next, then I resubmit the first two patches (the barrier fixes) to bpf and the last three (new macros, etc.) to bpf-next? Would that make it easier for you?

Thanks: Magnus

/Magnus

#4 lore raw
Quoted 63 lines · Magnus Karlsson
Quoted 53 lines · Alexei Starovoitov
Quoted 51 lines · Magnus Karlsson
Quoted 43 lines · Stephen Rothwell

Hi all,

After merging the bpf-next tree, today's linux-next build (powerpc perf) failed like this:

In file included from xsk.c:32:
libbpf_util.h:49:3: error: #warning Architecture missing native barrier functions in libbpf_util.h. [-Werror=cpp]

 # warning Architecture missing native barrier functions in libbpf_util.h.
   ^~~~~~~
cc1: all warnings being treated as errors

Caused by commit

b7e3a28019c9 ("libbpf: remove dependency on barrier.h in xsk.h")

I have applied the following patch for today ... please fix this.

From: Stephen Rothwell <[email protected]>
Date: Thu, 18 Apr 2019 11:54:56 +1000
Subject: [PATCH] suppress warning in tools/lib/bpf/libbpf_util.h

---
 tools/lib/bpf/libbpf_util.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/lib/bpf/libbpf_util.h +1 -2
index 172b707e007b..a54eb2cdbdd6 100644
@@ -46,7 +46,7 @@ do {                          \
 # define libbpf_smp_mb() asm volatile("dmb ish" : : : "memory")
 # define libbpf_smp_rwmb() libbpf_smp_mb()
 #else
-# warning Architecture missing native barrier functions in libbpf_util.h.
+//# warning Architecture missing native barrier functions in libbpf_util.h.
 # define libbpf_smp_rmb() __sync_synchronize()
 # define libbpf_smp_wmb() __sync_synchronize()
 # define libbpf_smp_mb() __sync_synchronize()
--

2.20.1

Quoted 3 lines

--
Cheers,
Stephen Rothwell

My apologies, I will fix this. I just have two questions first so I do not mess things up.

Quoted 7 lines
Quoted 5 lines

* I see my commit in bpf-next but not in bpf. As I submitted it against bpf, what was the reason it was applied to bpf-next instead? Unfortunately, I forgot to add "Fixes" tags to the commits, so was this the reason? I view 4 out of 5 of these patches as bug fixes, the last one being an optimization.

new macros that users still have to learn how to use are hardly fixes.

Quoted 7 lines

That is fair.

Quoted 1 line

I can toss it out of bpf-next if it's easier.

How about you toss it out of bpf-next, then I resubmit the first two patches (the barrier fixes) to bpf and the last three (new macros, etc.) to bpf-next? Would that make it easier for you?

the easiest is to do a trivial patch for bpf-next, but if you insist on first two as fixes that is ok as well.

#5 lore raw
Quoted 67 lines · Alexei Starovoitov
Quoted 65 lines · Magnus Karlsson
Quoted 53 lines · Alexei Starovoitov
Quoted 51 lines · Magnus Karlsson
Quoted 43 lines · Stephen Rothwell

Hi all,

After merging the bpf-next tree, today's linux-next build (powerpc perf) failed like this:

In file included from xsk.c:32:
libbpf_util.h:49:3: error: #warning Architecture missing native barrier functions in libbpf_util.h. [-Werror=cpp]

 # warning Architecture missing native barrier functions in libbpf_util.h.
   ^~~~~~~
cc1: all warnings being treated as errors

Caused by commit

b7e3a28019c9 ("libbpf: remove dependency on barrier.h in xsk.h")

I have applied the following patch for today ... please fix this.

From: Stephen Rothwell <[email protected]>
Date: Thu, 18 Apr 2019 11:54:56 +1000
Subject: [PATCH] suppress warning in tools/lib/bpf/libbpf_util.h

---
 tools/lib/bpf/libbpf_util.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/lib/bpf/libbpf_util.h +1 -2
index 172b707e007b..a54eb2cdbdd6 100644
@@ -46,7 +46,7 @@ do {                          \
 # define libbpf_smp_mb() asm volatile("dmb ish" : : : "memory")
 # define libbpf_smp_rwmb() libbpf_smp_mb()
 #else
-# warning Architecture missing native barrier functions in libbpf_util.h.
+//# warning Architecture missing native barrier functions in libbpf_util.h.
 # define libbpf_smp_rmb() __sync_synchronize()
 # define libbpf_smp_wmb() __sync_synchronize()
 # define libbpf_smp_mb() __sync_synchronize()
--

2.20.1

Quoted 3 lines

--
Cheers,
Stephen Rothwell

My apologies, I will fix this. I just have two questions first so I do not mess things up.

Quoted 7 lines
Quoted 5 lines

* I see my commit in bpf-next but not in bpf. As I submitted it against bpf, what was the reason it was applied to bpf-next instead? Unfortunately, I forgot to add "Fixes" tags to the commits, so was this the reason? I view 4 out of 5 of these patches as bug fixes, the last one being an optimization.

new macros that users still have to learn how to use are hardly fixes.

That is fair.

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

I can toss it out of bpf-next if it's easier.

How about you toss it out of bpf-next, then I resubmit the first two patches (the barrier fixes) to bpf and the last three (new macros, etc.) to bpf-next? Would that make it easier for you?

the easiest is to do a trivial patch for bpf-next, but if you insist on first two as fixes that is ok as well.

Will submit a trivial patch. Thanks for your quick answers and help.

/Magnus