public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sched/s390: fix compile error in sched/core.c
@ 2012-01-11  7:58 Christian Borntraeger
  2012-01-11  9:07 ` Peter Zijlstra
  2012-01-26 20:26 ` [tip:sched/urgent] sched/s390: Fix " tip-bot for Christian Borntraeger
  0 siblings, 2 replies; 6+ messages in thread
From: Christian Borntraeger @ 2012-01-11  7:58 UTC (permalink / raw)
  To: Peter Zijlstra
  Cc: Ingo Molnar, Martin Schwidefsky, linux-kernel,
	Christian Borntraeger

From: Christian Borntraeger <borntraeger@de.ibm.com>

commit 029632fbb7b7c9d85063cc9eb470de6c54873df3
    sched: Make separate sched*.c translation units

removed the include of asm/mutex.h from sched.c. This breaks the combination of

CONFIG_MUTEX_SPIN_ON_OWNER=yes
CONFIG_HAVE_ARCH_MUTEX_CPU_RELAX=yes
like s390 without mutex debugging:

  CC      kernel/sched/core.o
kernel/sched/core.c: In function ‘mutex_spin_on_owner’:
kernel/sched/core.c:3287: error: implicit declaration of function ‘arch_mutex_cpu_relax’
make[2]: *** [kernel/sched/core.o] Error 1

Lets re-add the include to kernel/sched/core.c

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
---
 kernel/sched/core.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index cecbb64..f82efdc 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -74,6 +74,9 @@
 
 #include <asm/tlb.h>
 #include <asm/irq_regs.h>
+#ifdef CONFIG_HAVE_ARCH_MUTEX_CPU_RELAX
+#include <asm/mutex.h>
+#endif
 #ifdef CONFIG_PARAVIRT
 #include <asm/paravirt.h>
 #endif
-- 
1.7.8.2


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-01-26 20:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-11  7:58 [PATCH] sched/s390: fix compile error in sched/core.c Christian Borntraeger
2012-01-11  9:07 ` Peter Zijlstra
2012-01-11  9:17   ` Christian Borntraeger
2012-01-18  9:33   ` Christian Borntraeger
2012-01-24 10:04     ` Peter Zijlstra
2012-01-26 20:26 ` [tip:sched/urgent] sched/s390: Fix " tip-bot for Christian Borntraeger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox