linux-next: build failure after merge of the rcu tree
Subsystems (2)
Hi Paul,
After merging the rcu tree, today's linux-next build (x86_64 allmodconfig) failed like this:
ERROR: "sched_setscheduler_nocheck" [kernel/locking/locktorture.ko] undefined!
ERROR: "percpu_down_write" [kernel/locking/locktorture.ko] undefined!
ERROR: "percpu_up_write" [kernel/locking/locktorture.ko] undefined!
ERROR: "percpu_down_read" [kernel/locking/locktorture.ko] undefined!
ERROR: "percpu_up_read" [kernel/locking/locktorture.ko] undefined!
ERROR: "__percpu_init_rwsem" [kernel/locking/locktorture.ko] undefined!
Caused by commits
04be76a9b067 ("locktorture: Support rtmutex torturing") 40b2996f9b32 ("locktorture: Add torture tests for percpu_rwsem")
and maybe more.
I have used the rcu tree from next-20150831 for today.
Signature · 2 lines
Cheers, Stephen Rothwell [email protected]
Quoted 12 lines · Stephen Rothwell
Hi Paul,
After merging the rcu tree, today's linux-next build (
x86_64allmodconfig) failed like this:ERROR: "
sched_setscheduler_nocheck" [kernel/locking/locktorture.ko] undefined!
ERROR: "percpu_down_write" [kernel/locking/locktorture.ko] undefined!
ERROR: "percpu_up_write" [kernel/locking/locktorture.ko] undefined!
ERROR: "percpu_down_read" [kernel/locking/locktorture.ko] undefined!
ERROR: "percpu_up_read" [kernel/locking/locktorture.ko] undefined!
ERROR: "__percpu_init_rwsem" [kernel/locking/locktorture.ko] undefined!
Quoted 8 lines
Caused by commits
04be76a9b067("locktorture: Support rtmutex torturing")40b2996f9b32("locktorture: Add torture tests forpercpu_rwsem")and maybe more.
I have used the rcu tree from next-20150831 for today.
It is looking like I will be deferring these to v4.4, apologies for the hassle!
Thanx, Paul
Hi Paul,
Quoted 18 lines · On Tue, 1 Sep 2015 00:49:46 -0700 "Paul E. McKenney"…
Quoted 16 lines · Stephen Rothwell
After merging the rcu tree, today's linux-next build (
x86_64allmodconfig) failed like this:ERROR: "
sched_setscheduler_nocheck" [kernel/locking/locktorture.ko] undefined!
ERROR: "percpu_down_write" [kernel/locking/locktorture.ko] undefined!
ERROR: "percpu_up_write" [kernel/locking/locktorture.ko] undefined!
ERROR: "percpu_down_read" [kernel/locking/locktorture.ko] undefined!
ERROR: "percpu_up_read" [kernel/locking/locktorture.ko] undefined!
ERROR: "__percpu_init_rwsem" [kernel/locking/locktorture.ko] undefined!Caused by commits
04be76a9b067("locktorture: Support rtmutex torturing")40b2996f9b32("locktorture: Add torture tests forpercpu_rwsem")
Quoted 6 lines
Quoted 3 lines
and maybe more.
I have used the rcu tree from next-20150831 for today.
It is looking like I will be deferring these to v4.4, apologies for the hassle!
This still fails to build but now I only get the error about sched_setscheduler_nocheck.
Signature · 2 lines
Cheers, Stephen Rothwell [email protected]
Quoted 23 lines · Stephen Rothwell
Hi Paul,
Quoted 20 lines · On Tue, 1 Sep 2015 00:49:46 -0700 "Paul E. McKenney"…
Quoted 18 lines · Stephen Rothwell
After merging the rcu tree, today's linux-next build (
x86_64allmodconfig) failed like this:ERROR: "
sched_setscheduler_nocheck" [kernel/locking/locktorture.ko] undefined!
ERROR: "percpu_down_write" [kernel/locking/locktorture.ko] undefined!
ERROR: "percpu_up_write" [kernel/locking/locktorture.ko] undefined!
ERROR: "percpu_down_read" [kernel/locking/locktorture.ko] undefined!
ERROR: "percpu_up_read" [kernel/locking/locktorture.ko] undefined!
ERROR: "__percpu_init_rwsem" [kernel/locking/locktorture.ko] undefined!Caused by commits
04be76a9b067("locktorture: Support rtmutex torturing")40b2996f9b32("locktorture: Add torture tests forpercpu_rwsem")and maybe more.
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
I have used the rcu tree from next-20150831 for today.
It is looking like I will be deferring these to v4.4, apologies for the hassle!
This still fails to build but now I only get the error about
sched_setscheduler_nocheck.
OK, now I actually have deferred these to v4.4.
Davidlohr, the error is due to sched_setscheduler_nocheck() not being exported, so that Stephen gets this failure when building modules. This is 04be76a9b067 (locktorture: Support rtmutex torturing) in -rcu.
Thoughts?
Thanx, Paul
Quoted 5 lines · Paul E. McKenney
Davidlohr, the error is due to
sched_setscheduler_nocheck()not being exported, so that Stephen gets this failure when building modules. This is04be76a9b067(locktorture: Support rtmutex torturing) in -rcu.Thoughts?
Right, the below should take care of it. Although I think it makes sense to get this into at least 4.3 even if we won't use it until 4.4. Simply because we already export sched_setscheduler(). If you agree I guess we could route via -tip.
Thanks,
Davidlohr
----8<------------------------------------
Subject: [PATCH -next] sched: Export sched_setscheduler_nocheck
... just like regular sched_setscheduler(). We need this, for locktorture otherwise we can fail to build modules, ie:
ERROR: "sched_setscheduler_nocheck" [kernel/locking/locktorture.ko] undefined!
--- kernel/sched/core.c | 1 + 1 file changed, 1 insertion(+)
kernel/sched/core.c +1 -0
@@ -4012,6 +4012,7 @@ int sched_setscheduler_nocheck(struct task_struct *p, int policy, {return _sched_setscheduler (p, policy, param, false); } +EXPORT_SYMBOL_GPL (sched_setscheduler_nocheck);static int do_sched_setscheduler (pid_t pid,int policy,struct sched_param __user *param)
Signature · 1 line
2.1.4
Quoted 11 lines · Davidlohr Bueso
Quoted 5 lines · Paul E. McKenney
Davidlohr, the error is due to
sched_setscheduler_nocheck()not being exported, so that Stephen gets this failure when building modules. This is04be76a9b067(locktorture: Support rtmutex torturing) in -rcu.Thoughts?
Right, the below should take care of it. Although I think it makes sense to get this into at least 4.3 even if we won't use it until 4.4. Simply because we already export
sched_setscheduler(). If you agree I guess we could route via -tip.
Given an ack from Peter or Ingo, I would happy to queue it. But we are talking 4.4 rather than 4.3, sorry!
Thanx, Paul
Quoted 35 lines
Thanks,
Davidlohr----8<------------------------------------
Subject: [PATCH -next] sched: Exportsched_setscheduler_nocheck... just like regular
sched_setscheduler(). We need this, for locktorture otherwise we can fail to build modules, ie:ERROR: "
sched_setscheduler_nocheck" [kernel/locking/locktorture.ko] undefined!Signed-off-by Davidlohr Bueso <[email protected]>Reported-by Stephen Rothwell <[email protected]>Cc Ingo Molnar <[email protected]>--- kernel/sched/core.c | 1 + 1 file changed, 1 insertion(+)kernel/sched/core.c +1
-0@@ -4012,6 +4012,7 @@ int sched_setscheduler_nocheck(struct task_struct *p, int policy, {return _sched_setscheduler (p, policy, param, false); } +EXPORT_SYMBOL_GPL (sched_setscheduler_nocheck);static int do_sched_setscheduler (pid_t pid,int policy,struct sched_param __user *param)Signature · 1 line
2.1.4
Ingo Molnar
Acked-byQuoted 8 lines · Paul E. McKenney
Quoted 7 lines · Davidlohr Bueso
Quoted 5 lines · Paul E. McKenney
Davidlohr, the error is due to
sched_setscheduler_nocheck()not being exported, so that Stephen gets this failure when building modules. This is04be76a9b067(locktorture: Support rtmutex torturing) in -rcu.Thoughts?
Quoted 7 lines
Quoted 4 lines
Right, the below should take care of it. Although I think it makes sense to get this into at least 4.3 even if we won't use it until 4.4. Simply because we already export
sched_setscheduler(). If you agree I guess we could route via -tip.Given an ack from Peter or Ingo, I would happy to queue it. But we are talking 4.4 rather than 4.3, sorry!
The export looks good to me:
Thanks,
Ingo
Paul E. McKenney
Acked-by Ingo MolnarQuoted 16 lines · Ingo Molnar
Quoted 13 lines · Paul E. McKenney
Quoted 11 lines · Davidlohr Bueso
Quoted 5 lines · Paul E. McKenney
Davidlohr, the error is due to
sched_setscheduler_nocheck()not being exported, so that Stephen gets this failure when building modules. This is04be76a9b067(locktorture: Support rtmutex torturing) in -rcu.Thoughts?
Right, the below should take care of it. Although I think it makes sense to get this into at least 4.3 even if we won't use it until 4.4. Simply because we already export
sched_setscheduler(). If you agree I guess we could route via -tip.
Quoted 6 lines
Quoted 2 lines
Given an ack from Peter or Ingo, I would happy to queue it. But we are talking 4.4 rather than 4.3, sorry!
The export looks good to me:
Acked-by Ingo Molnar <[email protected]>
Very good, queued for 4.4!
Thanx, Paul
------------------------------------------------------------------------
sched: Export sched_setscheduler_nocheck
The new locktorture rtmutex_lock tests exercise priority boosting, which means that they need to set some tasks to real-time priority. To do this, they use sched_setscheduler_nocheck(). However, this is not exported to modules, which results in the following error when building locktorture as a module:
ERROR: "sched_setscheduler_nocheck" [kernel/locking/locktorture.ko] undefined!
This commit therefore adds an EXPORT_SYMBOL_GPL() to allow this function to be invoked from locktorture when built as a module.
kernel/sched/core.c +1 -0
@@ -3960,6 +3960,7 @@ int sched_setscheduler_nocheck(struct task_struct *p, int policy, {return _sched_setscheduler (p, policy, param, false); } +EXPORT_SYMBOL_GPL (sched_setscheduler_nocheck);static int do_sched_setscheduler (pid_t pid,int policy,struct sched_param __user *param)