public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Steven Rostedt <rostedt@goodmis.org>
To: Lee Revell <rlrevell@joe-job.com>
Cc: david singleton <dsingleton@mvista.com>,
	linux-kernel <linux-kernel@vger.kernel.org>,
	Thomas Gleixner <tglx@linutronix.de>, Ingo Molnar <mingo@elte.hu>
Subject: Re: 2.6.15-rc5-rt1 will not compile (was Re: 2.6.14-rt15: cannot build with !PREEMPT_RT)
Date: Mon, 12 Dec 2005 22:28:00 -0500	[thread overview]
Message-ID: <1134444480.24145.30.camel@localhost.localdomain> (raw)
In-Reply-To: <1134426711.17058.10.camel@mindpipe>

On Mon, 2005-12-12 at 17:31 -0500, Lee Revell wrote:
> On Mon, 2005-12-12 at 17:22 -0500, Steven Rostedt wrote:
> > On Mon, 2005-12-12 at 17:14 -0500, Lee Revell wrote:
> > 
> > > 
> > > The patch had no effect.
> > 
> > The patch should work for krfoley though.  His errors where the same
> > that I had for i386.  I also have it working under x86_64.
> > > 
> > > In fact x86-64 does not set CONFIG_RWSEM_XCHGADD_ALGORITHM so this test
> > > in include/linux/rwsem.h causes asm/rwsem.h to be included which does
> > > not exist on x86-64:
> > 
> > Yeah OK, you have a different problem.  Did you post your .config?  You
> > can send it privately to me if you haven't already posted it.
> 
> Yes I posted the .config earlier in the thread.  Let me know if you want
> me to resend it to you.

Here Lee,

I got it to compile, but I haven't yet tried to boot it.  As a matter of
fact, I haven't booted any 2.6.15-rc5-rt1 on any of my machines.  I must
trust Ingo too much, since I started porting my kernel to his before
testing it to see if it works without my changes.  Oh well, I know what
to do tomorrow.

Well, this compiles, you can see if it boots ;-)

-- Steve

Index: linux-2.6.15-rc5-rt1/arch/x86_64/Kconfig
===================================================================
--- linux-2.6.15-rc5-rt1.orig/arch/x86_64/Kconfig	2005-12-12 10:56:37.000000000 -0500
+++ linux-2.6.15-rc5-rt1/arch/x86_64/Kconfig	2005-12-12 21:33:56.000000000 -0500
@@ -240,7 +240,6 @@
 
 config RWSEM_GENERIC_SPINLOCK
 	bool
-	depends on PREEMPT_RT
 	default y
 
 config RWSEM_XCHGADD_ALGORITHM
Index: linux-2.6.15-rc5-rt1/include/asm-x86_64/semaphore.h
===================================================================
--- linux-2.6.15-rc5-rt1.orig/include/asm-x86_64/semaphore.h	2005-12-12 10:56:37.000000000 -0500
+++ linux-2.6.15-rc5-rt1/include/asm-x86_64/semaphore.h	2005-12-12 22:13:08.000000000 -0500
@@ -104,6 +104,7 @@
 asmlinkage int  __compat_down_interruptible(struct compat_semaphore * sem);
 asmlinkage int  __compat_down_trylock(struct compat_semaphore * sem);
 asmlinkage void __compat_up(struct compat_semaphore * sem);
+asmlinkage int compat_sem_is_locked(struct compat_semaphore *sem);
 
 /*
  * This is ugly, but we want the default case to fall through.
@@ -199,5 +200,10 @@
 		:"D" (sem)
 		:"memory");
 }
+
+#ifndef CONFIG_PREEMPT_RT
+# include <linux/semaphore.h>
+#endif
+
 #endif /* __KERNEL__ */
 #endif
Index: linux-2.6.15-rc5-rt1/include/linux/rwsem.h
===================================================================
--- linux-2.6.15-rc5-rt1.orig/include/linux/rwsem.h	2005-12-12 10:56:37.000000000 -0500
+++ linux-2.6.15-rc5-rt1/include/linux/rwsem.h	2005-12-12 22:13:00.000000000 -0500
@@ -163,6 +163,10 @@
 {
 	compat_downgrade_write(rwsem);
 }
+static inline int rwsem_is_locked(struct compat_rw_semaphore *sem)
+{
+	return compat_rwsem_is_locked(sem);
+}
 #endif /* CONFIG_PREEMPT_RT */
 
 #endif /* __KERNEL__ */



  parent reply	other threads:[~2005-12-13  3:28 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-26  6:52 2.6.14-rt15: cannot build with !PREEMPT_RT Lee Revell
2005-11-26 12:23 ` Ingo Molnar
2005-11-26 19:05   ` Lee Revell
2005-11-26 19:46     ` Thomas Gleixner
2005-11-27 12:30       ` Ingo Molnar
2005-11-27 19:57         ` Lee Revell
2005-11-28 11:44           ` Ingo Molnar
2005-11-28  1:27         ` Lee Revell
2005-11-28 11:48           ` Ingo Molnar
2005-11-28 14:56             ` Lee Revell
2005-11-28 16:00               ` Ingo Molnar
2005-11-28 17:50                 ` Lee Revell
2005-11-28 20:34                 ` Lee Revell
2005-11-28 22:40                 ` Lee Revell
2005-11-29  2:08                   ` Lee Revell
2005-11-29  7:29                     ` Ingo Molnar
2005-11-29  9:32                       ` Ingo Molnar
2005-11-29 23:19                         ` Lee Revell
2005-12-09  1:05                         ` Lee Revell
2005-12-10  0:25                           ` Lee Revell
2005-12-12 17:44                             ` 2.6.15-rc5-rt1 will not compile (was Re: 2.6.14-rt15: cannot build with !PREEMPT_RT) Lee Revell
2005-12-12 21:49                               ` Steven Rostedt
2005-12-12 22:14                                 ` Lee Revell
2005-12-12 22:22                                   ` Steven Rostedt
2005-12-12 22:31                                     ` Lee Revell
2005-12-12 22:34                                       ` Steven Rostedt
2005-12-13  3:28                                       ` Steven Rostedt [this message]
2005-12-13  8:08                                         ` Ingo Molnar
2005-12-16 20:53                                         ` Lee Revell
2005-12-12 22:39                                     ` K.R. Foley
2005-12-13  8:15                                 ` Ingo Molnar
2005-12-13 14:32                                   ` [PATCH -RT] fix i386 RWSEM_GENERIC_SPINLOCK (was: Re: 2.6.15-rc5-rt1 will not compile) Steven Rostedt
2005-12-13 15:03                                     ` Steven Rostedt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1134444480.24145.30.camel@localhost.localdomain \
    --to=rostedt@goodmis.org \
    --cc=dsingleton@mvista.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=rlrevell@joe-job.com \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox