linux/arch
Will Deacon a8a217c221 locking/core: Remove {read,spin,write}_can_lock()
Outside of the locking code itself, {read,spin,write}_can_lock() have no
users in tree. Apparmor (the last remaining user of write_can_lock()) got
moved over to lockdep by the previous patch.

This patch removes the use of {read,spin,write}_can_lock() from the
BUILD_LOCK_OPS macro, deferring to the trylock operation for testing the
lock status, and subsequently removes the unused macros altogether. They
aren't guaranteed to work in a concurrent environment and can give
incorrect results in the case of qrwlock.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: paulmck@linux.vnet.ibm.com
Link: http://lkml.kernel.org/r/1507055129-12300-2-git-send-email-will.deacon@arm.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2017-10-10 11:50:18 +02:00
..
alpha locking/core: Remove {read,spin,write}_can_lock() 2017-10-10 11:50:18 +02:00
arc locking/core: Remove {read,spin,write}_can_lock() 2017-10-10 11:50:18 +02:00
arm locking/core: Remove {read,spin,write}_can_lock() 2017-10-10 11:50:18 +02:00
arm64 arm64 fixes: 2017-10-06 11:31:46 -07:00
blackfin locking/core: Remove {read,spin,write}_can_lock() 2017-10-10 11:50:18 +02:00
c6x arch: remove unused *_segments() macros/functions 2017-09-22 12:59:52 -10:00
cris MTD changes for 4.14: 2017-09-09 14:48:21 -07:00
frv arch: remove unused *_segments() macros/functions 2017-09-22 12:59:52 -10:00
h8300 arch: define CPU_BIG_ENDIAN for all fixed big endian archs 2017-09-08 18:26:48 -07:00
hexagon locking/core: Remove {read,spin,write}_can_lock() 2017-10-10 11:50:18 +02:00
ia64 locking/core: Remove {read,spin,write}_can_lock() 2017-10-10 11:50:18 +02:00
m32r locking/core: Remove {read,spin,write}_can_lock() 2017-10-10 11:50:18 +02:00
m68k Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu 2017-09-10 21:07:39 -07:00
metag locking/core: Remove {read,spin,write}_can_lock() 2017-10-10 11:50:18 +02:00
microblaze arch: change default endian for microblaze 2017-09-25 15:31:26 +02:00
mips pci-v4.14-fixes-2 2017-09-22 13:09:11 -10:00
mn10300 locking/core: Remove {read,spin,write}_can_lock() 2017-10-10 11:50:18 +02:00
nios2 nios2 update for v4.14-rc1 2017-09-15 12:47:21 -07:00
openrisc OpenRISC patches for 4.14 2017-09-13 11:52:18 -07:00
parisc locking/core: Remove {read,spin,write}_can_lock() 2017-10-10 11:50:18 +02:00
powerpc locking/core: Remove {read,spin,write}_can_lock() 2017-10-10 11:50:18 +02:00
s390 locking/core: Remove {read,spin,write}_can_lock() 2017-10-10 11:50:18 +02:00
score
sh locking/core: Remove {read,spin,write}_can_lock() 2017-10-10 11:50:18 +02:00
sparc locking/core: Remove {read,spin,write}_can_lock() 2017-10-10 11:50:18 +02:00
tile locking/core: Remove {read,spin,write}_can_lock() 2017-10-10 11:50:18 +02:00
um um/time: Fixup namespace collision 2017-09-29 10:07:44 +02:00
unicore32 unicore32/PCI: Replace pci_fixup_irqs() call with host bridge IRQ mapping hooks 2017-08-03 16:29:34 -05:00
x86 locking/arch, x86: Add __down_read_killable() 2017-10-10 11:50:15 +02:00
xtensa locking/core: Remove {read,spin,write}_can_lock() 2017-10-10 11:50:18 +02:00
.gitignore
Kconfig Revert commit 1a8b6d76dc ("net:add one common config...") 2017-10-09 07:43:06 -07:00