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 8/9] cred: Replace deprecated spinlock initialization
    SPIN_LOCK_UNLOCK is deprecated. Use the lockdep capable variant
    instead.

    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
    ---
    kernel/cred.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    Index: linux-2.6/kernel/cred.c
    ===================================================================
    --- linux-2.6.orig/kernel/cred.c
    +++ linux-2.6/kernel/cred.c
    @@ -35,7 +35,7 @@ static struct kmem_cache *cred_jar;
    static struct thread_group_cred init_tgcred = {
    .usage = ATOMIC_INIT(2),
    .tgid = 0,
    - .lock = SPIN_LOCK_UNLOCKED,
    + .lock = __SPIN_LOCK_UNLOCKED(init_cred.tgcred.lock),
    };
    #endif




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