linux/arch/m32r
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
..
boot m32r: fix build warning about putc 2016-07-15 14:54:27 +09:00
configs m32r: defconfig: cleanup from old Kconfig options 2017-09-08 18:26:51 -07:00
include locking/core: Remove {read,spin,write}_can_lock() 2017-10-10 11:50:18 +02:00
kernel m32r: fix build failure 2017-10-03 17:54:26 -07:00
lib get rid of unused __strncpy_from_user() instances 2017-05-15 23:40:28 -04:00
mm m32r: migrate exception table users off module.h and onto extable.h 2017-01-24 12:41:46 -05:00
oprofile
platforms m32r: fix build warning 2016-12-12 18:55:06 -08:00
Kconfig m32r: define CPU_BIG_ENDIAN 2017-10-03 17:54:24 -07:00
Kconfig.debug consolidate per-arch stack overflow debugging options 2013-07-04 11:25:39 -07:00
Makefile m32r: Use generic init_task 2012-05-05 13:00:23 +02:00