Commit-ID:  0cc3d01164aba483edd8232aa5c781136843c367
Gitweb:     http://git.kernel.org/tip/0cc3d01164aba483edd8232aa5c781136843c367
Author:     Andrew Morton <[email protected]>
AuthorDate: Wed, 4 Jun 2014 20:19:48 +0200
Committer:  Ingo Molnar <[email protected]>
CommitDate: Thu, 5 Jun 2014 10:39:36 +0200

locking/rwsem: Fix checkpatch.pl warnings

WARNING: line over 80 characters
#205: FILE: kernel/locking/rwsem-xadd.c:275:
+               old = cmpxchg(&sem->count, count, count + 
RWSEM_ACTIVE_WRITE_BIAS);

WARNING: line over 80 characters
#376: FILE: kernel/locking/rwsem-xadd.c:434:
+                * If there were already threads queued before us and there are 
no

WARNING: line over 80 characters
#377: FILE: kernel/locking/rwsem-xadd.c:435:
+                * active writers, the lock must be read owned; so we try to 
wake

total: 0 errors, 3 warnings, 417 lines checked

Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Peter Zijlstra <[email protected]>
Cc: "H. Peter Anvin" <[email protected]>
Cc: Davidlohr Bueso <[email protected]>
Cc: Tim Chen <[email protected]>
Cc: Linus Torvalds <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
---
 kernel/locking/rwsem-xadd.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/kernel/locking/rwsem-xadd.c b/kernel/locking/rwsem-xadd.c
index 4a75278..dacc321 100644
--- a/kernel/locking/rwsem-xadd.c
+++ b/kernel/locking/rwsem-xadd.c
@@ -433,9 +433,9 @@ struct rw_semaphore __sched *rwsem_down_write_failed(struct 
rw_semaphore *sem)
                count = ACCESS_ONCE(sem->count);
 
                /*
-                * If there were already threads queued before us and there are 
no
-                * active writers, the lock must be read owned; so we try to 
wake
-                * any read locks that were queued ahead of us.
+                * If there were already threads queued before us and there are
+                * no active writers, the lock must be read owned; so we try to
+                * wake any read locks that were queued ahead of us.
                 */
                if (count > RWSEM_WAITING_BIAS)
                        sem = __rwsem_do_wake(sem, RWSEM_WAKE_READERS);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to