Commit 785e3b8a authored by Mitchell Blank Jr's avatar Mitchell Blank Jr Committed by David S. Miller

[SPARC64]: Control debuglocks.c compilation using Makefile rules.

parent 450fa027
...@@ -5,11 +5,12 @@ ...@@ -5,11 +5,12 @@
EXTRA_AFLAGS := -ansi EXTRA_AFLAGS := -ansi
EXTRA_CFLAGS := -Werror EXTRA_CFLAGS := -Werror
lib-y := PeeCeeI.o blockops.o debuglocks.o strlen.o strncmp.o \ lib-y := PeeCeeI.o blockops.o strlen.o strncmp.o \
memscan.o strncpy_from_user.o strlen_user.o memcmp.o checksum.o \ memscan.o strncpy_from_user.o strlen_user.o memcmp.o checksum.o \
VIScopy.o VISbzero.o VISmemset.o VIScsum.o VIScsumcopy.o \ VIScopy.o VISbzero.o VISmemset.o VIScsum.o VIScsumcopy.o \
VIScsumcopyusr.o VISsave.o atomic.o rwlock.o bitops.o \ VIScsumcopyusr.o VISsave.o atomic.o rwlock.o bitops.o \
U3memcpy.o U3copy_from_user.o U3copy_to_user.o \ U3memcpy.o U3copy_from_user.o U3copy_to_user.o \
U3copy_in_user.o mcount.o ipcsum.o rwsem.o xor.o U3copy_in_user.o mcount.o ipcsum.o rwsem.o xor.o
lib-$(CONFIG_DEBUG_SPINLOCK) += debuglocks.o
lib-$(CONFIG_HAVE_DEC_LOCK) += dec_and_lock.o lib-$(CONFIG_HAVE_DEC_LOCK) += dec_and_lock.o
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
#include <linux/spinlock.h> #include <linux/spinlock.h>
#include <asm/system.h> #include <asm/system.h>
#if defined(CONFIG_SMP) && defined(CONFIG_DEBUG_SPINLOCK) #ifdef CONFIG_SMP
#define GET_CALLER(PC) __asm__ __volatile__("mov %%i7, %0" : "=r" (PC)) #define GET_CALLER(PC) __asm__ __volatile__("mov %%i7, %0" : "=r" (PC))
...@@ -296,4 +296,4 @@ void _do_write_unlock(rwlock_t *rw) ...@@ -296,4 +296,4 @@ void _do_write_unlock(rwlock_t *rw)
} }
} }
#endif /* CONFIG_SMP && CONFIG_DEBUG_SPINLOCK */ #endif /* CONFIG_SMP */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment