ChangeSet 1.2253, 2005/03/31 08:34:28-08:00, [EMAIL PROTECTED]

        [PATCH] m32r: Fix spinlock.h for CONFIG_DEBUG_SPINLOCK
        
        This patch is for fixing a build error of asm-m32r/spinlock.h for
        CONFIG_DEBUG_SPINLOCK.
        
        Signed-off-by: Hirokazu Takata <[EMAIL PROTECTED]>
        Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
        Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>



 spinlock.h |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)


diff -Nru a/include/asm-m32r/spinlock.h b/include/asm-m32r/spinlock.h
--- a/include/asm-m32r/spinlock.h       2005-03-31 10:15:54 -08:00
+++ b/include/asm-m32r/spinlock.h       2005-03-31 10:15:54 -08:00
@@ -102,10 +102,8 @@
        unsigned long tmp0, tmp1;
 
 #ifdef CONFIG_DEBUG_SPINLOCK
-       __label__ here;
-here:
-       if (lock->magic != SPINLOCK_MAGIC) {
-               printk("pc: %p\n", &&here);
+       if (unlikely(lock->magic != SPINLOCK_MAGIC)) {
+               printk("pc: %p\n", __builtin_return_address(0));
                BUG();
        }
 #endif
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to