From: "K.R. Foley" <kr@cybsft.com>
To: Gene Heskett <gene.heskett@verizon.net>
Cc: linux-kernel@vger.kernel.org, Ingo Molnar <mingo@elte.hu>,
Lee Revell <rlrevell@joe-job.com>,
Rui Nuno Capela <rncbc@rncbc.org>,
Steven Rostedt <rostedt@goodmis.org>
Subject: Re: [patch] Real-Time Preemption, -RT-2.6.12-rc1-V0.7.43-00
Date: Fri, 01 Apr 2005 12:27:11 -0600 [thread overview]
Message-ID: <424D927F.2020601@cybsft.com> (raw)
In-Reply-To: <200504011231.55717.gene.heskett@verizon.net>
[-- Attachment #1: Type: text/plain, Size: 855 bytes --]
Gene Heskett wrote:
<snip>
> It was up to 43-04 by the time I got there.
>
> This one didn't go in cleanly Ingo. From my build-src scripts output:
> -------------------
> Applying patch realtime-preempt-2.6.12-rc1-V0.7.43-04
> [...]
> patching file lib/rwsem-spinlock.c
> Hunk #5 FAILED at 133.
> Hunk #6 FAILED at 160.
> Hunk #7 FAILED at 179.
> Hunk #8 FAILED at 194.
> Hunk #9 FAILED at 204.
> Hunk #10 FAILED at 231.
> Hunk #11 FAILED at 250.
> Hunk #12 FAILED at 265.
> Hunk #13 FAILED at 274.
> Hunk #14 FAILED at 293.
> Hunk #15 FAILED at 314.
> 11 out of 15 hunks FAILED -- saving rejects to file
> lib/rwsem-spinlock.c.rej
> -----------
> I doubt it would run, so I haven't built it. Should I?
>
Adding the attached patch on top of the above should resolve the
failures, at least in the patching. Still working on building it.
--
kr
[-- Attachment #2: rwsem-spinlock.patch --]
[-- Type: text/x-patch, Size: 3860 bytes --]
--- linux-2.6.12/lib/rwsem-spinlock.c.orig 2005-04-01 12:00:21.000000000 -0600
+++ linux-2.6.12/lib/rwsem-spinlock.c 2005-04-01 12:19:06.000000000 -0600
@@ -18,7 +18,7 @@ struct rwsem_waiter {
};
#if RWSEM_DEBUG
-void rwsemtrace(struct rw_semaphore *sem, const char *str)
+void rwsemtrace(struct compat_rw_semaphore *sem, const char *str)
{
if (sem->debug)
printk("[%d] %s({%d,%d})\n",
@@ -30,7 +30,7 @@ void rwsemtrace(struct rw_semaphore *sem
/*
* initialise the semaphore
*/
-void fastcall init_rwsem(struct rw_semaphore *sem)
+void fastcall compat_init_rwsem(struct compat_rw_semaphore *sem)
{
sem->activity = 0;
spin_lock_init(&sem->wait_lock);
@@ -49,8 +49,8 @@ void fastcall init_rwsem(struct rw_semap
* - woken process blocks are discarded from the list after having task zeroed
* - writers are only woken if wakewrite is non-zero
*/
-static inline struct rw_semaphore *
-__rwsem_do_wake(struct rw_semaphore *sem, int wakewrite)
+static inline struct compat_rw_semaphore *
+__rwsem_do_wake(struct compat_rw_semaphore *sem, int wakewrite)
{
struct rwsem_waiter *waiter;
struct task_struct *tsk;
@@ -111,8 +111,8 @@ __rwsem_do_wake(struct rw_semaphore *sem
/*
* wake a single writer
*/
-static inline struct rw_semaphore *
-__rwsem_wake_one_writer(struct rw_semaphore *sem)
+static inline struct compat_rw_semaphore *
+__rwsem_wake_one_writer(struct compat_rw_semaphore *sem)
{
struct rwsem_waiter *waiter;
struct task_struct *tsk;
@@ -133,7 +133,8 @@ __rwsem_wake_one_writer(struct rw_semaph
/*
* get a read lock on the semaphore
*/
-void fastcall __sched __down_read(struct rw_semaphore *sem)
+void fastcall __sched __down_read(struct compat_rw_semaphore *sem)
+
{
struct rwsem_waiter waiter;
struct task_struct *tsk;
@@ -179,7 +180,8 @@ void fastcall __sched __down_read(struct
/*
* trylock for reading -- returns 1 if successful, 0 if contention
*/
-int fastcall __down_read_trylock(struct rw_semaphore *sem)
+int fastcall __down_read_trylock(struct compat_rw_semaphore *sem)
+
{
unsigned long flags;
int ret = 0;
@@ -204,7 +206,8 @@ int fastcall __down_read_trylock(struct
* get a write lock on the semaphore
* - we increment the waiting count anyway to indicate an exclusive lock
*/
-void fastcall __sched __down_write(struct rw_semaphore *sem)
+void fastcall __sched __down_write(struct compat_rw_semaphore *sem)
+
{
struct rwsem_waiter waiter;
struct task_struct *tsk;
@@ -250,7 +253,8 @@ void fastcall __sched __down_write(struc
/*
* trylock for writing -- returns 1 if successful, 0 if contention
*/
-int fastcall __down_write_trylock(struct rw_semaphore *sem)
+int fastcall __down_write_trylock(struct compat_rw_semaphore *sem)
+
{
unsigned long flags;
int ret = 0;
@@ -274,7 +278,8 @@ int fastcall __down_write_trylock(struct
/*
* release a read lock on the semaphore
*/
-void fastcall __up_read(struct rw_semaphore *sem)
+void fastcall __up_read(struct compat_rw_semaphore *sem)
+
{
unsigned long flags;
@@ -293,7 +298,7 @@ void fastcall __up_read(struct rw_semaph
/*
* release a write lock on the semaphore
*/
-void fastcall __up_write(struct rw_semaphore *sem)
+void fastcall __up_write(struct compat_rw_semaphore *sem)
{
unsigned long flags;
@@ -314,7 +319,7 @@ void fastcall __up_write(struct rw_semap
* downgrade a write lock into a read lock
* - just wake up any readers at the front of the queue
*/
-void fastcall __downgrade_write(struct rw_semaphore *sem)
+void fastcall __downgrade_write(struct compat_rw_semaphore *sem)
{
unsigned long flags;
@@ -331,7 +336,7 @@ void fastcall __downgrade_write(struct r
rwsemtrace(sem, "Leaving __downgrade_write");
}
-EXPORT_SYMBOL(init_rwsem);
+EXPORT_SYMBOL(compat_init_rwsem);
EXPORT_SYMBOL(__down_read);
EXPORT_SYMBOL(__down_read_trylock);
EXPORT_SYMBOL(__down_write);
next prev parent reply other threads:[~2005-04-01 18:37 UTC|newest]
Thread overview: 86+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-25 14:59 [patch] Real-Time Preemption, -RT-2.6.12-rc1-V0.7.41-10 Ingo Molnar
2005-03-25 22:33 ` Lee Revell
2005-03-25 22:39 ` Ingo Molnar
2005-03-26 5:14 ` Lee Revell
2005-03-27 8:58 ` Ingo Molnar
2005-03-30 5:16 ` Lee Revell
2005-03-30 6:54 ` Ingo Molnar
2005-03-29 22:31 ` Lee Revell
2005-03-30 8:03 ` Ingo Molnar
2005-03-31 8:55 ` [patch] Real-Time Preemption, -RT-2.6.12-rc1-V0.7.41-25 Ingo Molnar
2005-04-01 10:47 ` [patch] Real-Time Preemption, -RT-2.6.12-rc1-V0.7.43-00 Ingo Molnar
2005-04-01 12:13 ` Rui Nuno Capela
2005-04-01 12:52 ` Ingo Molnar
2005-04-01 14:42 ` Rui Nuno Capela
2005-04-01 15:06 ` Ingo Molnar
2005-04-01 15:52 ` Rui Nuno Capela
2005-04-01 16:28 ` Ingo Molnar
2005-04-01 21:26 ` Rui Nuno Capela
2005-04-01 17:31 ` Gene Heskett
2005-04-01 18:27 ` K.R. Foley [this message]
2005-04-01 18:29 ` Ingo Molnar
2005-04-01 19:21 ` Gene Heskett
2005-04-01 19:19 ` Gene Heskett
2005-04-01 19:22 ` K.R. Foley
2005-04-01 23:34 ` Gene Heskett
2005-04-02 1:45 ` Lee Revell
2005-04-02 2:30 ` Gene Heskett
2005-04-02 5:12 ` Ingo Molnar
2005-04-02 19:37 ` Steven Rostedt
2005-04-02 20:06 ` Steven Rostedt
2005-04-02 20:17 ` Lee Revell
2005-04-02 20:34 ` Ingo Molnar
2005-04-02 22:38 ` Gene Heskett
2005-04-02 20:35 ` Ingo Molnar
2005-04-02 20:44 ` Steven Rostedt
2005-04-02 22:09 ` Steven Rostedt
2005-04-03 0:06 ` Steven Rostedt
2005-04-04 20:00 ` Ingo Molnar
2005-04-04 20:40 ` Steven Rostedt
2005-04-04 20:47 ` Ingo Molnar
2005-04-04 21:14 ` Steven Rostedt
2005-04-04 22:51 ` Zwane Mwaikambo
2005-04-04 22:59 ` Steven Rostedt
2005-04-04 23:09 ` Esben Nielsen
2005-04-05 7:57 ` Zwane Mwaikambo
2005-04-05 15:18 ` Mike Galbraith
2005-04-04 23:06 ` Esben Nielsen
2005-04-05 5:34 ` Ingo Molnar
2005-04-05 9:25 ` Esben Nielsen
2005-04-02 23:45 ` Lee Revell
2005-04-02 20:10 ` Lee Revell
2005-04-05 7:19 ` [patch] Real-Time Preemption, -RT-2.6.12-rc2-V0.7.44-00 Ingo Molnar
2005-04-05 19:06 ` Rui Nuno Capela
2005-04-05 19:36 ` Steven Rostedt
2005-04-08 15:22 ` Rui Nuno Capela
2005-04-08 17:15 ` Lee Revell
2005-04-08 20:15 ` K.R. Foley
2005-04-08 20:17 ` Lee Revell
2005-04-08 20:26 ` K.R. Foley
2005-04-08 21:00 ` Lee Revell
2005-04-08 21:36 ` K.R. Foley
2005-04-10 17:23 ` K.R. Foley
2005-04-10 17:27 ` Ingo Molnar
2005-04-10 17:39 ` Steven Rostedt
2005-04-10 17:47 ` Ingo Molnar
2005-04-12 18:17 ` Lee Revell
2005-04-21 7:35 ` [patch] Real-Time Preemption, -RT-2.6.12-rc3-V0.7.46-00 Ingo Molnar
2005-04-21 8:45 ` Paolo Ciarrocchi
2005-04-21 16:16 ` Daniel Walker
2005-04-21 19:54 ` Daniel Walker
2005-04-22 6:27 ` [patch] Real-Time Preemption, -RT-2.6.12-rc3-V0.7.46-01 Ingo Molnar
2005-04-22 7:34 ` Ingo Molnar
2005-04-22 15:48 ` Daniel Walker
2005-04-22 15:49 ` Ingo Molnar
2005-04-22 15:53 ` Daniel Walker
2005-04-22 15:55 ` Ingo Molnar
2005-04-22 15:56 ` Ingo Molnar
2005-04-26 17:49 ` Daniel Walker
2005-05-09 7:23 ` Ingo Molnar
2005-04-22 21:06 ` Inaky Perez-Gonzalez
2005-04-22 21:15 ` Daniel Walker
2005-05-04 8:24 ` Ingo Molnar
2005-04-22 21:17 ` Daniel Walker
2005-04-30 23:28 ` Lee Revell
2005-05-04 8:22 ` Ingo Molnar
2005-05-04 15:05 ` Lee Revell
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=424D927F.2020601@cybsft.com \
--to=kr@cybsft.com \
--cc=gene.heskett@verizon.net \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=rlrevell@joe-job.com \
--cc=rncbc@rncbc.org \
--cc=rostedt@goodmis.org \
/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