Minor clean-ups in plist and spinlock
cover Minor clean-ups in plist and spinlock
Thomas / Ingo
These patches clean-up some minor problems.
They are safe for 2.6.33, but can also wait for 2.6.34. They should also be applied to the -rt branch until accepted upstream.
They can be pulled atgit://git.kernel.org/pub/scm/linux/kernel/git/jkacur/jk-2.6.git
branch: jk/v2.6.33-rc3-cleanups
John Kacur (2):
plist: Fix grammar mistake, and c-style mistake.
spinlock: Fix some indentation problems in spinlock.h
include/linux/plist.h | 4 ++-- include/linux/spinlock.h | 20 ++++++++++---------- 2 files changed, 12 insertions(+), 12 deletions(-)
PATCH 1/2 plist: Fix grammar mistake, and c-style mistake.
Signed-off-by John Kacur <[email protected]>
--- include/linux/plist.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
include/linux/plist.h +2 -2
@@ -45,7 +45,7 @@* the insertion of new nodes. There are no nodes with duplicate * priorites on the list. * -* The nodes on the node_list is ordered by priority and can contain +* The nodes on the node_list are ordered by priority and can contain * entries which have the same priority. Those entries are ordered * FIFO *
@@ -265,7 +265,7 @@ static inline int plist_node_empty(const struct plist_node *node)* * Assumes the plist is _not_ empty. */ -static inline struct plist_node *plist_first (const struct plist_head *head) +static inline struct plist_node *plist_first (const struct plist_head *head) {return list_entry (head->node_list.next, struct plist_node, plist.node_list);
Signature · 1 line
1.6.5.2
PATCH 2/2 spinlock: Fix some indentation problems in spinlock.h
Signed-off-by John Kacur <[email protected]>
--- include/linux/spinlock.h | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-)
include/linux/spinlock.h +10 -10
@@ -63,14 +63,14 @@#define LOCK_SECTION_NAME ".text.lock."KBUILD_BASENAME#define LOCK_SECTION_START (extra) \ - ".subsection 1\n\t" \ - extra \ - ".ifndef " LOCK_SECTION_NAME "\n\t" \ - LOCK_SECTION_NAME ":\n\t" \ - ".endif\n" + ".subsection 1\n\t" \ + extra \ + ".ifndef " LOCK_SECTION_NAME "\n\t" \ + LOCK_SECTION_NAME ":\n\t" \ + ".endif\n"#define LOCK_SECTION_END \ - ".previous\n\t" + ".previous\n\t"#define __lockfunc __attribute__((section(".spinlock.text")))
@@ -170,10 +170,10 @@ static inline void do_raw_spin_unlock(raw_spinlock_t *lock) _raw_spin_lock_nested(lock, subclass)# define raw_spin_lock_nest_lock (lock, nest_lock) \ - do { \ - typecheck(struct lockdep_map *, &(nest_lock)->dep_map);\ - _raw_spin_lock_nest_lock(lock, &(nest_lock)->dep_map); \ - } while (0) + do { \ + typecheck(struct lockdep_map *, &(nest_lock)->dep_map);\ + _raw_spin_lock_nest_lock(lock, &(nest_lock)->dep_map); \ + } while (0)#else # define raw_spin_lock_nested (lock, subclass) _raw_spin_lock(lock)# define raw_spin_lock_nest_lock (lock, nest_lock) _raw_spin_lock(lock)
Signature · 1 line
1.6.5.2
[tip:core/locking] plist: Fix grammar mistake, and c-style mistake
In reply to John KacurCommit-ID: 9ca94d7c016130f9ed77f142424ace9c19742809 Gitweb: http://git.kernel.org/tip/9ca94d7c016130f9ed77f142424ace9c19742809 Author: John Kacur <[email protected]> AuthorDate: Mon, 11 Jan 2010 21:21:06 +0100 Committer: Ingo Molnar <[email protected]> CommitDate: Wed, 13 Jan 2010 10:51:39 +0100
plist: Fix grammar mistake, and c-style mistake
Signed-off-by John Kacur <[email protected]>
Acked-by Peter Zijlstra <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by Ingo Molnar <[email protected]>
--- include/linux/plist.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
include/linux/plist.h +2 -2
@@ -45,7 +45,7 @@* the insertion of new nodes. There are no nodes with duplicate * priorites on the list. * -* The nodes on the node_list is ordered by priority and can contain +* The nodes on the node_list are ordered by priority and can contain * entries which have the same priority. Those entries are ordered * FIFO *
@@ -265,7 +265,7 @@ static inline int plist_node_empty(const struct plist_node *node)* * Assumes the plist is _not_ empty. */ -static inline struct plist_node *plist_first (const struct plist_head *head) +static inline struct plist_node *plist_first (const struct plist_head *head) {return list_entry (head->node_list.next, struct plist_node, plist.node_list);