Skip to content

Commit 0cc3d01

Browse files
akpm00Ingo Molnar
authored and
Ingo Molnar
committed
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]>
1 parent dbb5eaf commit 0cc3d01

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

kernel/locking/rwsem-xadd.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -433,9 +433,9 @@ struct rw_semaphore __sched *rwsem_down_write_failed(struct rw_semaphore *sem)
433433
count = ACCESS_ONCE(sem->count);
434434

435435
/*
436-
* If there were already threads queued before us and there are no
437-
* active writers, the lock must be read owned; so we try to wake
438-
* any read locks that were queued ahead of us.
436+
* If there were already threads queued before us and there are
437+
* no active writers, the lock must be read owned; so we try to
438+
* wake any read locks that were queued ahead of us.
439439
*/
440440
if (count > RWSEM_WAITING_BIAS)
441441
sem = __rwsem_do_wake(sem, RWSEM_WAKE_READERS);

0 commit comments

Comments
 (0)