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

    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
    Cc: David S. Miller <davem@davemloft.net>
    Cc: sparclinux@vger.kernel.org
    ---
    arch/sparc/lib/atomic32.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    Index: linux-2.6/arch/sparc/lib/atomic32.c
    ===================================================================
    --- linux-2.6.orig/arch/sparc/lib/atomic32.c
    +++ linux-2.6/arch/sparc/lib/atomic32.c
    @@ -16,7 +16,7 @@
    #define ATOMIC_HASH(a) (&__atomic_hash[(((unsigned long)a)>>8) & (ATOMIC_HASH_SIZE-1)])

    spinlock_t __atomic_hash[ATOMIC_HASH_SIZE] = {
    - [0 ... (ATOMIC_HASH_SIZE-1)] = SPIN_LOCK_UNLOCKED
    + [0 ... (ATOMIC_HASH_SIZE-1)] = __SPIN_LOCK_UNLOCKED(__atomic_hash)
    };

    #else /* SMP */



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