Skip to contentSkip to conversation

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

DISCUSSION Stephen Rothwell 4 participants 4 messages Apr 13, 2015

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

Hi Paul,

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

init/main.c: In function 'rest_init':
init/main.c:387:2: error: implicit declaration of function 'smpboot_thread_init' [-Werror=implicit-function-declaration]
smpboot_thread_init();
^

Caused by commit c55f6e1f6f69 ("cpu: Defer smpboot kthread unparking until CPU known to scheduler"). The declaration in include/linux/cpu.h is protected by CONFIG_SMP, its use is not.

I have reverted that commit for today.

Signature · 2 lines
Cheers,
Stephen Rothwell                    [email protected]
#1 lore raw
Quoted 10 lines · Stephen Rothwell

Hi Paul,

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

init/main.c: In function 'rest_init':
init/main.c:387:2: error: implicit declaration of function 'smpboot_thread_init' [-Werror=implicit-function-declaration]
smpboot_thread_init();
^

Quoted 5 lines

Caused by commit c55f6e1f6f69 ("cpu: Defer smpboot kthread unparking until CPU known to scheduler"). The declaration in include/linux/cpu.h is protected by CONFIG_SMP, its use is not.

I have reverted that commit for today.

Thanks for the report Stephen, I know today is the day of b0rked linux-next builds :-(

I think Ingo merged Paul's patch already so here's a fix ontop:

---
From: Borislav Petkov <[email protected]>
Date: Mon, 13 Apr 2015 13:01:32 +0200
Subject: [PATCH] smpboot: Fix CONFIG_SMP=n build

Stephen Rothwell reported a CONFIG_SMP=n breakage with latest rcu/next. The timing of this is very unfortunate as we've been hunting this bug hastily over the weekend, just to be in time for the merge window.

So here's a fix ontop.

---
 include/linux/cpu.h | 4 ++++
 1 file changed, 4 insertions(+)
include/linux/cpu.h +4 -0
index 091badf0f6ba..bbdee1e6cf48 100644
@@ -198,6 +198,10 @@ static inline void __unregister_cpu_notifier(struct notifier_block *nb)
 {
 }
 
+static inline void smpboot_thread_init(void)
+{
+}
+
 static inline void cpu_maps_update_begin(void)
 {
 }
Signature · 8 lines
2.3.5

-- 
Regards/Gruss,
    Boris.

ECO tip #101: Trim your mails when you reply.
--
#2 lore raw
Quoted 15 lines · Borislav Petkov
Quoted 14 lines · Stephen Rothwell

Hi Paul,

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

init/main.c: In function 'rest_init':
init/main.c:387:2: error: implicit declaration of function 'smpboot_thread_init' [-Werror=implicit-function-declaration]
smpboot_thread_init();
^

Caused by commit c55f6e1f6f69 ("cpu: Defer smpboot kthread unparking until CPU known to scheduler"). The declaration in include/linux/cpu.h is protected by CONFIG_SMP, its use is not.

Quoted 6 lines
Quoted 1 line

I have reverted that commit for today.

Thanks for the report Stephen, I know today is the day of b0rked linux-next builds :-(

I think Ingo merged Paul's patch already so here's a fix ontop:

Yeah, I too triggered that build failure and fixed it locally.

Thanks,

Ingo

#3 lore raw
Quoted 18 lines · Ingo Molnar
Quoted 15 lines · Borislav Petkov
Quoted 14 lines · Stephen Rothwell

Hi Paul,

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

init/main.c: In function 'rest_init':
init/main.c:387:2: error: implicit declaration of function 'smpboot_thread_init' [-Werror=implicit-function-declaration]
smpboot_thread_init();
^

Caused by commit c55f6e1f6f69 ("cpu: Defer smpboot kthread unparking until CPU known to scheduler"). The declaration in include/linux/cpu.h is protected by CONFIG_SMP, its use is not.

Quoted 8 lines
Quoted 6 lines
Quoted 1 line

I have reverted that commit for today.

Thanks for the report Stephen, I know today is the day of b0rked linux-next builds :-(

I think Ingo merged Paul's patch already so here's a fix ontop:

Yeah, I too triggered that build failure and fixed it locally.

What I get for immediately going to long-term testing. The scenarios that trigger this one were of course the last to run. :-/

Thank you all, and apologies for the hassle!

Thanx, Paul