summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-04-10 07:32:41 -0400
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-07-15 07:53:27 -0400
commit387b14684f94483cbbb72843db406ec9a8d0d6d2 (patch)
tree95ef5ba916b0dd33a6ce5e740240ef523fdc5bd8 /include
parentfec88ab0af9706b2201e5daf377c5031c62d11f7 (diff)
docs: locking: convert docs to ReST and rename to *.rst
Convert the locking documents to ReST and add them to the kernel development book where it belongs. Most of the stuff here is just to make Sphinx to properly parse the text file, as they're already in good shape, not requiring massive changes in order to be parsed. The conversion is actually: - add blank lines and identation in order to identify paragraphs; - fix tables markups; - add some lists markups; - mark literal blocks; - adjust title markups. At its new index.rst, let's add a :orphan: while this is not linked to the main index.rst file, in order to avoid build warnings. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org> Acked-by: Federico Vaga <federico.vaga@vaga.pv.it>
Diffstat (limited to 'include')
-rw-r--r--include/linux/lockdep.h2
-rw-r--r--include/linux/mutex.h2
-rw-r--r--include/linux/rwsem.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/lockdep.h b/include/linux/lockdep.h
index 57baa27f238c..0b0d7259276d 100644
--- a/include/linux/lockdep.h
+++ b/include/linux/lockdep.h
@@ -5,7 +5,7 @@
5 * Copyright (C) 2006,2007 Red Hat, Inc., Ingo Molnar <mingo@redhat.com> 5 * Copyright (C) 2006,2007 Red Hat, Inc., Ingo Molnar <mingo@redhat.com>
6 * Copyright (C) 2007 Red Hat, Inc., Peter Zijlstra 6 * Copyright (C) 2007 Red Hat, Inc., Peter Zijlstra
7 * 7 *
8 * see Documentation/locking/lockdep-design.txt for more details. 8 * see Documentation/locking/lockdep-design.rst for more details.
9 */ 9 */
10#ifndef __LINUX_LOCKDEP_H 10#ifndef __LINUX_LOCKDEP_H
11#define __LINUX_LOCKDEP_H 11#define __LINUX_LOCKDEP_H
diff --git a/include/linux/mutex.h b/include/linux/mutex.h
index 3093dd162424..dcd03fee6e01 100644
--- a/include/linux/mutex.h
+++ b/include/linux/mutex.h
@@ -151,7 +151,7 @@ static inline bool mutex_is_locked(struct mutex *lock)
151 151
152/* 152/*
153 * See kernel/locking/mutex.c for detailed documentation of these APIs. 153 * See kernel/locking/mutex.c for detailed documentation of these APIs.
154 * Also see Documentation/locking/mutex-design.txt. 154 * Also see Documentation/locking/mutex-design.rst.
155 */ 155 */
156#ifdef CONFIG_DEBUG_LOCK_ALLOC 156#ifdef CONFIG_DEBUG_LOCK_ALLOC
157extern void mutex_lock_nested(struct mutex *lock, unsigned int subclass); 157extern void mutex_lock_nested(struct mutex *lock, unsigned int subclass);
diff --git a/include/linux/rwsem.h b/include/linux/rwsem.h
index e401358c4e7e..9d9c663987d8 100644
--- a/include/linux/rwsem.h
+++ b/include/linux/rwsem.h
@@ -160,7 +160,7 @@ extern void downgrade_write(struct rw_semaphore *sem);
160 * static then another method for expressing nested locking is 160 * static then another method for expressing nested locking is
161 * the explicit definition of lock class keys and the use of 161 * the explicit definition of lock class keys and the use of
162 * lockdep_set_class() at lock initialization time. 162 * lockdep_set_class() at lock initialization time.
163 * See Documentation/locking/lockdep-design.txt for more details.) 163 * See Documentation/locking/lockdep-design.rst for more details.)
164 */ 164 */
165extern void down_read_nested(struct rw_semaphore *sem, int subclass); 165extern void down_read_nested(struct rw_semaphore *sem, int subclass);
166extern void down_write_nested(struct rw_semaphore *sem, int subclass); 166extern void down_write_nested(struct rw_semaphore *sem, int subclass);