]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
include/asm-generic: Remove spin_is_locked() comment
authorPaul E. McKenney <paulmck@linux.ibm.com>
Tue, 8 Jan 2019 18:13:44 +0000 (10:13 -0800)
committerPaul E. McKenney <paulmck@linux.ibm.com>
Fri, 25 Jan 2019 23:36:04 +0000 (15:36 -0800)
The WARN_ON_SMP() comment header suggests using spin_is_locked() to
check for locks being held.  But these days we prefer lockdep_assert_held(),
so this commit removes that suggestion.

Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: <linux-arch@vger.kernel.org>
include/asm-generic/bug.h

index 20561a60db9c4f077c68ee1a182eac38ff96d4dd..0e9bd9c83870ff31ce6cdf1bdb01eb398a29805f 100644 (file)
@@ -211,9 +211,6 @@ void __warn(const char *file, int line, void *caller, unsigned taint,
 /*
  * WARN_ON_SMP() is for cases that the warning is either
  * meaningless for !SMP or may even cause failures.
- * This is usually used for cases that we have
- * WARN_ON(!spin_is_locked(&lock)) checks, as spin_is_locked()
- * returns 0 for uniprocessor settings.
  * It can also be used with values that are only defined
  * on SMP:
  *