lkml.org 
[lkml]   [2011]   [Jan]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch 5/9] um: Replace deprecated spinlock initialization
    SPIN_LOCK_UNLOCK is deprecated. Use the lockdep capable variant
    instead.

    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
    Cc: Jeff Dike <jdike@addtoit.com>
    ---
    arch/um/drivers/ubd_kern.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    Index: linux-2.6/arch/um/drivers/ubd_kern.c
    ===================================================================
    --- linux-2.6.orig/arch/um/drivers/ubd_kern.c
    +++ linux-2.6/arch/um/drivers/ubd_kern.c
    @@ -185,7 +185,7 @@ struct ubd {
    .no_cow = 0, \
    .shared = 0, \
    .cow = DEFAULT_COW, \
    - .lock = SPIN_LOCK_UNLOCKED, \
    + .lock = __SPIN_LOCK_UNLOCKED(ubd_devs.lock), \
    .request = NULL, \
    .start_sg = 0, \
    .end_sg = 0, \



    \
     
     \ /
      Last update: 2011-01-23 16:21    [W:2.431 / U:0.064 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site