summaryrefslogtreecommitdiffstats
path: root/include/asm-generic
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.ibm.com>2019-01-08 19:13:44 +0100
committerPaul E. McKenney <paulmck@linux.ibm.com>2019-01-26 00:36:04 +0100
commit728e3e6178aa5790066b642dd2ebc9e9bdacff1b (patch)
treebc8eda942e3fab5bf5308c57682c9e9879402430 /include/asm-generic
parentMerge branches 'consolidate.2019.01.26a' and 'fwd.2019.01.26a' into HEAD (diff)
downloadlinux-728e3e6178aa5790066b642dd2ebc9e9bdacff1b.tar.xz
linux-728e3e6178aa5790066b642dd2ebc9e9bdacff1b.zip
include/asm-generic: Remove spin_is_locked() comment
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>
Diffstat (limited to 'include/asm-generic')
-rw-r--r--include/asm-generic/bug.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/asm-generic/bug.h b/include/asm-generic/bug.h
index 20561a60db9c..0e9bd9c83870 100644
--- a/include/asm-generic/bug.h
+++ b/include/asm-generic/bug.h
@@ -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:
*