[lkml]   [2005]   [Oct]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
SubjectRe: 2.6.14-rc3-rt1

* Felix Oxley <> wrote:

> I have a compile error in drivers/net/hamradio/mkiss.c
> CC [M] drivers/net/hamradio/mkiss.o
> drivers/net/hamradio/mkiss.c:625: error:
> RW_LOCK_UNLOCKED’ undeclared here (not in a function)
> Due to the fact that
> has not been converted to the form
> RW_LOCK_UNLOCKED(name.lock)
> by the RT patch.

i've applied the cleanup below to my tree - it might as well go upstream
too, it's slightly more compact than the explicit initializer.


Signed-off-by: Ingo Molnar <>

Index: linux/drivers/net/hamradio/mkiss.c
--- linux.orig/drivers/net/hamradio/mkiss.c
+++ linux/drivers/net/hamradio/mkiss.c
@@ -622,7 +622,7 @@ static void ax_setup(struct net_device *
* best way to fix this is to use a rwlock in the tty struct, but for now we
* use a single global rwlock for all ttys in ppp line discipline.
-static rwlock_t disc_data_lock = RW_LOCK_UNLOCKED;
+static DEFINE_RWLOCK(disc_data_lock);

static struct mkiss *mkiss_get(struct tty_struct *tty)
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at
 \ /
  Last update: 2005-10-03 08:36    [from the cache]
©2003-2014 Jasper Spaans. hosted at Digital Ocean