* 2.6.13-rc7-rt3 compile fix
@ 2005-08-26 21:17 K.R. Foley
2005-08-26 21:36 ` Steven Rostedt
0 siblings, 1 reply; 4+ messages in thread
From: K.R. Foley @ 2005-08-26 21:17 UTC (permalink / raw)
To: Ingo Molnar; +Cc: Steven Rostedt, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 73 bytes --]
2.6.13-rc7-rt3 won't compile without the simple patch below.
--
kr
[-- Attachment #2: rtspinfix.patch --]
[-- Type: text/x-patch, Size: 565 bytes --]
--- linux-2.6.13/kernel/rt.c.orig 2005-08-26 15:51:35.000000000 -0500
+++ linux-2.6.13/kernel/rt.c 2005-08-26 15:51:55.000000000 -0500
@@ -672,7 +672,7 @@
struct rt_mutex_waiter *w;
struct plist *curr1;
- __raw_spin_lock(old_owner->task->pi_lock);
+ __raw_spin_lock(&old_owner->task->pi_lock);
TRACE_WARN_ON_LOCKED(plist_empty(&waiter->pi_list));
TRACE_WARN_ON_LOCKED(lock_owner(lock));
@@ -683,7 +683,7 @@
}
TRACE_WARN_ON_LOCKED(1);
ok:
- __raw_spin_unlock(old_owner->task->pi_lock);
+ __raw_spin_unlock(&old_owner->task->pi_lock);
return;
}
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: 2.6.13-rc7-rt3 compile fix
2005-08-26 21:17 2.6.13-rc7-rt3 compile fix K.R. Foley
@ 2005-08-26 21:36 ` Steven Rostedt
2005-08-26 23:43 ` K.R. Foley
0 siblings, 1 reply; 4+ messages in thread
From: Steven Rostedt @ 2005-08-26 21:36 UTC (permalink / raw)
To: K.R. Foley; +Cc: Ingo Molnar, linux-kernel
On Fri, 2005-08-26 at 16:17 -0500, K.R. Foley wrote:
> 2.6.13-rc7-rt3 won't compile without the simple patch below.
>
- __raw_spin_lock(old_owner->task->pi_lock);
+ __raw_spin_lock(&old_owner->task->pi_lock);
TRACE_WARN_ON_LOCKED(plist_empty(&waiter->pi_list));
TRACE_WARN_ON_LOCKED(lock_owner(lock));
@@ -683,7 +683,7 @@
}
TRACE_WARN_ON_LOCKED(1);
ok:
- __raw_spin_unlock(old_owner->task->pi_lock);
+ __raw_spin_unlock(&old_owner->task->pi_lock);
return;
Oops! my bad. I saw that needed locking, but I didn't have the tracing
on (I was trying for internal deadlocks), so that part of the code
wasn't compiling. If you turn off tracing it would compile :-)
Anyway, the next time I modify code that's protected by ifdefs, I'll
change my config and see at least the code compiles.
Thanks,
-- Steve
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: 2.6.13-rc7-rt3 compile fix
2005-08-26 21:36 ` Steven Rostedt
@ 2005-08-26 23:43 ` K.R. Foley
2005-08-26 23:56 ` Steven Rostedt
0 siblings, 1 reply; 4+ messages in thread
From: K.R. Foley @ 2005-08-26 23:43 UTC (permalink / raw)
To: Steven Rostedt; +Cc: Ingo Molnar, linux-kernel
Steven Rostedt wrote:
> On Fri, 2005-08-26 at 16:17 -0500, K.R. Foley wrote:
>
>>2.6.13-rc7-rt3 won't compile without the simple patch below.
>>
>
> - __raw_spin_lock(old_owner->task->pi_lock);
> + __raw_spin_lock(&old_owner->task->pi_lock);
> TRACE_WARN_ON_LOCKED(plist_empty(&waiter->pi_list));
> TRACE_WARN_ON_LOCKED(lock_owner(lock));
>
> @@ -683,7 +683,7 @@
> }
> TRACE_WARN_ON_LOCKED(1);
> ok:
> - __raw_spin_unlock(old_owner->task->pi_lock);
> + __raw_spin_unlock(&old_owner->task->pi_lock);
> return;
>
>
> Oops! my bad. I saw that needed locking, but I didn't have the tracing
> on (I was trying for internal deadlocks), so that part of the code
> wasn't compiling. If you turn off tracing it would compile :-)
Understood. ;-)
>
> Anyway, the next time I modify code that's protected by ifdefs, I'll
> change my config and see at least the code compiles.
>
> Thanks,
>
> -- Steve
>
>
>
--
kr
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: 2.6.13-rc7-rt3 compile fix
2005-08-26 23:43 ` K.R. Foley
@ 2005-08-26 23:56 ` Steven Rostedt
0 siblings, 0 replies; 4+ messages in thread
From: Steven Rostedt @ 2005-08-26 23:56 UTC (permalink / raw)
To: K.R. Foley; +Cc: Ingo Molnar, linux-kernel
On Fri, 2005-08-26 at 18:43 -0500, K.R. Foley wrote:
> Steven Rostedt wrote:
> > Oops! my bad. I saw that needed locking, but I didn't have the tracing
> > on (I was trying for internal deadlocks), so that part of the code
> > wasn't compiling. If you turn off tracing it would compile :-)
>
> Understood. ;-)
>
I'm wrong again :-) It wasn't the tracing. Here's the ifdef
#if defined(ALL_TASKS_PI) && defined(CONFIG_RT_DEADLOCK_DETECT)
And Ingo turned on ALL_TASKS_PI now. But I had
CONFIG_RT_DEADLOCK_DETECT also turned off.
-- Steve
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-08-26 23:56 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-26 21:17 2.6.13-rc7-rt3 compile fix K.R. Foley
2005-08-26 21:36 ` Steven Rostedt
2005-08-26 23:43 ` K.R. Foley
2005-08-26 23:56 ` Steven Rostedt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox