Skip to contentSkip to conversation

linux-next: build failure after merge of the kspp-gustavo tree

PATCH Stephen Rothwell 3 participants 7 messages Oct 18, 2021 – Oct 25, 2021

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

Hi all,

After merging the kspp-gustavo tree, today's linux-next build (powerpc pseries_le_defconfig) failed like this:

In file included from include/linux/perf_event.h:49,
from arch/powerpc/perf/callchain.c:9:
include/linux/ftrace.h:49:41: error: 'struct ftrace_regs' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
49 | struct ftrace_ops *op, struct ftrace_regs *fregs);
| ^~~~~~~~~~~
cc1: all warnings being treated as errors

(many of these)

Caused by commit

c45ede6c2781 ("ftrace: Fix -Wmissing-prototypes errors")

I have added the following fixup for today.

From: Stephen Rothwell <[email protected]>
Date: Mon, 18 Oct 2021 17:56:30 +1100
Subject: [PATCH] fixup for "ftrace: Fix -Wmissing-prototypes errors"

---
 include/linux/ftrace.h | 1 +
 1 file changed, 1 insertion(+)
include/linux/ftrace.h +1 -0
index 871b51bec170..ada656c6824d 100644
@@ -45,6 +45,7 @@ struct ftrace_ops;
 void arch_ftrace_ops_list_func(unsigned long ip, unsigned long parent_ip);
 #else
 # define FTRACE_FORCE_LIST_FUNC 0
+struct ftrace_regs;
 void arch_ftrace_ops_list_func(unsigned long ip, unsigned long parent_ip,
 			       struct ftrace_ops *op, struct ftrace_regs *fregs);
 #endif
Signature · 5 lines
2.33.0

-- 
Cheers,
Stephen Rothwell
#1 lore raw

Thanks, Stephen.
--
Gustavo

Quoted 47 lines · Stephen Rothwell

Hi all,

After merging the kspp-gustavo tree, today's linux-next build (powerpc pseries_le_defconfig) failed like this:

In file included from include/linux/perf_event.h:49,
from arch/powerpc/perf/callchain.c:9:
include/linux/ftrace.h:49:41: error: 'struct ftrace_regs' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
49 | struct ftrace_ops *op, struct ftrace_regs *fregs);
| ^~~~~~~~~~~
cc1: all warnings being treated as errors

(many of these)

Caused by commit

c45ede6c2781 ("ftrace: Fix -Wmissing-prototypes errors")

I have added the following fixup for today.

From: Stephen Rothwell <[email protected]>
Date: Mon, 18 Oct 2021 17:56:30 +1100
Subject: [PATCH] fixup for "ftrace: Fix -Wmissing-prototypes errors"

---
 include/linux/ftrace.h | 1 +
 1 file changed, 1 insertion(+)
include/linux/ftrace.h +1 -0
index 871b51bec170..ada656c6824d 100644
@@ -45,6 +45,7 @@ struct ftrace_ops;
 void arch_ftrace_ops_list_func(unsigned long ip, unsigned long parent_ip);
 #else
 # define FTRACE_FORCE_LIST_FUNC 0
+struct ftrace_regs;
 void arch_ftrace_ops_list_func(unsigned long ip, unsigned long parent_ip,
 			       struct ftrace_ops *op, struct ftrace_regs *fregs);
 #endif
Signature · 5 lines
2.33.0

-- 
Cheers,
Stephen Rothwell
#2 lore raw
In reply to Stephen Rothwell

Hi all,

Quoted 42 lines · On Mon, 18 Oct 2021 18:15:59 +1100 Stephen Rothwell <[email protected]>…

After merging the kspp-gustavo tree, today's linux-next build (powerpc pseries_le_defconfig) failed like this:

In file included from include/linux/perf_event.h:49,
from arch/powerpc/perf/callchain.c:9:
include/linux/ftrace.h:49:41: error: 'struct ftrace_regs' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
49 | struct ftrace_ops *op, struct ftrace_regs *fregs);
| ^~~~~~~~~~~
cc1: all warnings being treated as errors

(many of these)

Caused by commit

c45ede6c2781 ("ftrace: Fix -Wmissing-prototypes errors")

I have added the following fixup for today.

From: Stephen Rothwell <[email protected]>
Date: Mon, 18 Oct 2021 17:56:30 +1100
Subject: [PATCH] fixup for "ftrace: Fix -Wmissing-prototypes errors"

---
 include/linux/ftrace.h | 1 +
 1 file changed, 1 insertion(+)
include/linux/ftrace.h +1 -0
index 871b51bec170..ada656c6824d 100644
@@ -45,6 +45,7 @@ struct ftrace_ops;
 void arch_ftrace_ops_list_func(unsigned long ip, unsigned long parent_ip);
 #else
 # define FTRACE_FORCE_LIST_FUNC 0
+struct ftrace_regs;
 void arch_ftrace_ops_list_func(unsigned long ip, unsigned long parent_ip,
 			       struct ftrace_ops *op, struct ftrace_regs *fregs);
 #endif
Signature · 1 line
2.33.0

I am still applying this fix ...

Signature · 2 lines
Cheers,
Stephen Rothwell
#3 lore raw
Quoted 6 lines · Stephen Rothwell
Quoted 6 lines
include/linux/ftrace.h +0 -0
@@ -45,6 +45,7 @@ struct ftrace_ops;
 void arch_ftrace_ops_list_func(unsigned long ip, unsigned long parent_ip);
 #else
 # define FTRACE_FORCE_LIST_FUNC 0
Quoted 8 lines
Quoted 6 lines
include/linux/ftrace.h +1 -0
+struct ftrace_regs;
 void arch_ftrace_ops_list_func(unsigned long ip, unsigned long parent_ip,
 			       struct ftrace_ops *op, struct ftrace_regs *fregs);
 #endif
Signature · 1 line
2.33.0

I am still applying this fix ...

I will add this fix to the original patch for my tomorrow's -next tree.

Thanks, Stephen.
--
Gustavo

maintainer
#4 lore raw
Quoted 16 lines · On Sun, 24 Oct 2021 21:11:19 -0500 "Gustavo A. R. Silva"…
Quoted 6 lines · Stephen Rothwell
Quoted 6 lines
include/linux/ftrace.h +0 -0
@@ -45,6 +45,7 @@ struct ftrace_ops;
 void arch_ftrace_ops_list_func(unsigned long ip, unsigned long parent_ip);
 #else
 # define FTRACE_FORCE_LIST_FUNC 0
Quoted 8 lines
Quoted 6 lines
include/linux/ftrace.h +1 -0
+struct ftrace_regs;
 void arch_ftrace_ops_list_func(unsigned long ip, unsigned long parent_ip,
 			       struct ftrace_ops *op, struct ftrace_regs *fregs);
 #endif
Signature · 1 line
2.33.0  

I am still applying this fix ...

Quoted 1 line

I will add this fix to the original patch for my tomorrow's -next tree.

Hmm, I pushed my version to my for-next branch. Do you have this in the next tree?

34cdd18b8d245f3e901e5325 ("tracing: Use linker magic instead of recasting ftrace_ops_list_func()")

Which shouldn't need this fix.

-- Steve

#5 lore raw

Hi Steven,

Quoted 22 lines · On Sun, 24 Oct 2021 22:42:15 -0400 Steven Rostedt <[email protected]> wrote:
Quoted 16 lines · On Sun, 24 Oct 2021 21:11:19 -0500 "Gustavo A. R. Silva"…
Quoted 6 lines · Stephen Rothwell
Quoted 6 lines
include/linux/ftrace.h +0 -0
@@ -45,6 +45,7 @@ struct ftrace_ops;
 void arch_ftrace_ops_list_func(unsigned long ip, unsigned long parent_ip);
 #else
 # define FTRACE_FORCE_LIST_FUNC 0
Quoted 8 lines
Quoted 6 lines
include/linux/ftrace.h +1 -0
+struct ftrace_regs;
 void arch_ftrace_ops_list_func(unsigned long ip, unsigned long parent_ip,
 			       struct ftrace_ops *op, struct ftrace_regs *fregs);
 #endif
Signature · 1 line
2.33.0    

I am still applying this fix ...

Quoted 1 line

I will add this fix to the original patch for my tomorrow's -next tree.

Quoted 7 lines

Hmm, I pushed my version to my for-next branch. Do you have this in the next tree?

34cdd18b8d245f3e901e5325 ("tracing: Use linker magic instead of recasting ftrace_ops_list_func()")

Which shouldn't need this fix.

Well, that is in your tree today, but (1) doesn't help with the build failure in Gustavo's tree on its own (i.e. it creates a dependency between Gustavo's tree and your tree) and (2) now I will get a conflict between the two trees today. Oh, well.

Signature · 2 lines
Cheers,
Stephen Rothwell
maintainer
#6 lore raw
Quoted 6 lines · On Mon, 25 Oct 2021 15:30:29 +1100 Stephen Rothwell <[email protected]>…
Quoted 1 line

Which shouldn't need this fix.

Well, that is in your tree today, but (1) doesn't help with the build failure in Gustavo's tree on its own (i.e. it creates a dependency between Gustavo's tree and your tree) and (2) now I will get a conflict between the two trees today. Oh, well.

Gustavo was only holding that commit so that he can have his commit still build. We knew of the dependency, and was going to let Linus know of it too.

Gustavo should be able to remove the conflicting commit now.

-- Steve