1# SPDX-License-Identifier: GPL-2.0 2# Any varying coverage in these files is non-deterministic 3# and is generally not a function of system call inputs. 4KCOV_INSTRUMENT := n 5 6obj-y += mutex.o semaphore.o rwsem.o percpu-rwsem.o 7 8ifdef CONFIG_FUNCTION_TRACER 9CFLAGS_REMOVE_lockdep.o = $(CC_FLAGS_FTRACE) 10CFLAGS_REMOVE_lockdep_proc.o = $(CC_FLAGS_FTRACE) 11CFLAGS_REMOVE_mutex-debug.o = $(CC_FLAGS_FTRACE) 12CFLAGS_REMOVE_rtmutex-debug.o = $(CC_FLAGS_FTRACE) 13endif 14 15obj-$(CONFIG_DEBUG_MUTEXES) += mutex-debug.o 16obj-$(CONFIG_LOCKDEP) += lockdep.o 17ifeq ($(CONFIG_PROC_FS),y) 18obj-$(CONFIG_LOCKDEP) += lockdep_proc.o 19endif 20obj-$(CONFIG_SMP) += spinlock.o 21obj-$(CONFIG_LOCK_SPIN_ON_OWNER) += osq_lock.o 22obj-$(CONFIG_PROVE_LOCKING) += spinlock.o 23obj-$(CONFIG_QUEUED_SPINLOCKS) += qspinlock.o 24obj-$(CONFIG_RT_MUTEXES) += rtmutex.o 25obj-$(CONFIG_DEBUG_RT_MUTEXES) += rtmutex-debug.o 26obj-$(CONFIG_DEBUG_SPINLOCK) += spinlock.o 27obj-$(CONFIG_DEBUG_SPINLOCK) += spinlock_debug.o 28obj-$(CONFIG_RWSEM_GENERIC_SPINLOCK) += rwsem-spinlock.o 29obj-$(CONFIG_RWSEM_XCHGADD_ALGORITHM) += rwsem-xadd.o 30obj-$(CONFIG_QUEUED_RWLOCKS) += qrwlock.o 31obj-$(CONFIG_LOCK_TORTURE_TEST) += locktorture.o 32obj-$(CONFIG_WW_MUTEX_SELFTEST) += test-ww_mutex.o 33