Skip to contentSkip to conversation

locking: Fix dangling references to nonexistent files

PATCH New Jason Wilkes 1 participant 1 message Nov 25, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 locking: Fix dangling references to nonexistent files

Commit e25a64c4017e (and others in the same series) moved the locking code to kernel/locking/. This patch just updates various docs and comments (things like "see kernel/semaphore.c for documentation") to refer to the new locations.

---
 Documentation/locking/lockdep-design.txt | 2 +-
 include/linux/lockdep.h                  | 2 +-
 include/linux/rwlock_api_smp.h           | 2 +-
 include/linux/semaphore.h                | 2 +-
 include/linux/spinlock_api_smp.h         | 2 +-
 kernel/locking/lockdep.c                 | 2 +-
 kernel/locking/lockdep_internals.h       | 2 +-
 kernel/locking/lockdep_proc.c            | 2 +-
 kernel/locking/mutex-debug.c             | 2 +-
 kernel/locking/mutex-debug.h             | 2 +-
 kernel/locking/rwsem-xadd.c              | 3 +--
 kernel/locking/rwsem.c                   | 3 +--
 tools/perf/builtin-lock.c                | 2 +-
 13 files changed, 13 insertions(+), 15 deletions(-)
Documentation/locking/lockdep-design.txt +1 -1
index 5dbc99c..5001280 100644
@@ -34,7 +34,7 @@ The validator tracks lock-class usage history into 4n + 1 separate state bits:
 - 'ever held with STATE enabled'
 - 'ever held as readlock with STATE enabled'
 
-Where STATE can be either one of (kernel/lockdep_states.h)
+Where STATE can be either one of (kernel/locking/lockdep_states.h)
  - hardirq
  - softirq
  - reclaim_fs
include/linux/lockdep.h +1 -1
index 74ab231..7901d7e 100644
@@ -24,7 +24,7 @@ extern int lock_stat;
 #include <linux/stacktrace.h>
 
 /*
- * We'd rather not expose kernel/lockdep_states.h this wide, but we do need
+ * We'd rather not expose kernel/locking/lockdep_states.h this wide, but we do need
  * the total number of states... :-(
  */
 #define XXX_LOCK_USAGE_STATES		(1+3*4)
include/linux/rwlock_api_smp.h +1 -1
index 5b9b84b..b3081c8 100644
@@ -9,7 +9,7 @@
  * include/linux/rwlock_api_smp.h
  *
  * spinlock API declarations on SMP (and debug)
- * (implemented in kernel/spinlock.c)
+ * (implemented in kernel/locking/spinlock.c)
  *
  * portions Copyright 2005, Red Hat, Inc., Ingo Molnar
  * Released under the General Public License (GPL).
include/linux/semaphore.h +1 -1
index dc368b8..11c86fb 100644
@@ -4,7 +4,7 @@
  *
  * Distributed under the terms of the GNU GPL, version 2
  *
- * Please see kernel/semaphore.c for documentation of these functions
+ * Please see kernel/locking/semaphore.c for documentation of these functions
  */
 #ifndef __LINUX_SEMAPHORE_H
 #define __LINUX_SEMAPHORE_H
include/linux/spinlock_api_smp.h +1 -1
index 42dfab8..364b674 100644
@@ -9,7 +9,7 @@
  * include/linux/spinlock_api_smp.h
  *
  * spinlock API declarations on SMP (and debug)
- * (implemented in kernel/spinlock.c)
+ * (implemented in kernel/locking/spinlock.c)
  *
  * portions Copyright 2005, Red Hat, Inc., Ingo Molnar
  * Released under the General Public License (GPL).
kernel/locking/lockdep.c +1 -1
index 88d0d44..69c8752 100644
@@ -1,5 +1,5 @@
 /*
- * kernel/lockdep.c
+ * kernel/locking/lockdep.c
  *
  * Runtime locking correctness validator
  *
kernel/locking/lockdep_internals.h +1 -1
index 51c4b24..9bb3bbf 100644
@@ -1,5 +1,5 @@
 /*
- * kernel/lockdep_internals.h
+ * kernel/locking/lockdep_internals.h
  *
  * Runtime locking correctness validator
  *
kernel/locking/lockdep_proc.c +1 -1
index ef43ac4..163a8dd 100644
@@ -1,5 +1,5 @@
 /*
- * kernel/lockdep_proc.c
+ * kernel/locking/lockdep_proc.c
  *
  * Runtime locking correctness validator
  *
kernel/locking/mutex-debug.c +1 -1
index 5cf6731..e3da177 100644
@@ -1,5 +1,5 @@
 /*
- * kernel/mutex-debug.c
+ * kernel/locking/mutex-debug.c
  *
  * Debugging code for mutexes
  *
kernel/locking/mutex-debug.h +1 -1
index 0799fd3..8a2fdcb 100644
@@ -7,7 +7,7 @@
  *
  * This file contains mutex debugging related internal declarations,
  * prototypes and inline functions, for the CONFIG_DEBUG_MUTEXES case.
- * More details are in kernel/mutex-debug.c.
+ * More details are in kernel/locking/mutex-debug.c.
  */
 
 /*
kernel/locking/rwsem-xadd.c +1 -2
index 7628c3f..a536adf 100644
@@ -1,7 +1,6 @@
-/* rwsem.c: R/W semaphores: contention handling functions
+/* rwsem-xadd.c: R/W semaphores: contention handling functions
  *
  * Written by David Howells ([email protected]).
- * Derived from arch/i386/kernel/semaphore.c
  *
  * Writer lock-stealing by Alex Shi <[email protected]>
  * and Michel Lespinasse <[email protected]>
kernel/locking/rwsem.c +1 -2
index e2d3bc7..5b03438 100644
@@ -1,7 +1,6 @@
-/* kernel/rwsem.c: R/W semaphores, public implementation
+/* kernel/locking/rwsem.c: R/W semaphores, public implementation
  *
  * Written by David Howells ([email protected]).
- * Derived from asm-i386/semaphore.h
  */
 
 #include <linux/types.h>
tools/perf/builtin-lock.c +1 -1
index e7ec715..55d612f 100644
@@ -29,7 +29,7 @@
 
 static struct perf_session *session;
 
-/* based on kernel/lockdep.c */
+/* based on kernel/locking/lockdep.c */
 #define LOCKHASH_BITS		12
 #define LOCKHASH_SIZE		(1UL << LOCKHASH_BITS)
 
Signature · 1 line
2.1.3