From: Andrew Morton Date: Sat, 17 May 2014 13:19:24 +0000 (+1000) Subject: rwsem-support-optimistic-spinning-checkpatch-fixes X-Git-Tag: next-20140519~3^2~38 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=5f0202bc5e034d4801511dd568de7d8ccbb7a00b;p=karo-tx-linux.git rwsem-support-optimistic-spinning-checkpatch-fixes 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 ./patches/rwsem-support-optimistic-spinning.patch has style problems, please review. If any of these errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. Please run checkpatch prior to sending patches Cc: Davidlohr Bueso Cc: Tim Chen Signed-off-by: Andrew Morton --- diff --git a/kernel/locking/rwsem-xadd.c b/kernel/locking/rwsem-xadd.c index b562aca654cd..1f99664b7f87 100644 --- a/kernel/locking/rwsem-xadd.c +++ b/kernel/locking/rwsem-xadd.c @@ -431,9 +431,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);