From 1deacf25945f04d3e1f2adea18aa0e86a096116a Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Wed, 23 Nov 2016 21:03:58 +0000 Subject: [PATCH] ipc-sem-rework-task-wakeups-checkpatch-fixes WARNING: line over 80 characters #241: FILE: ipc/sem.c:815: + semop_completed |= wake_const_ops(sma, num, wake_q); WARNING: line over 80 characters #250: FILE: ipc/sem.c:826: + semop_completed |= wake_const_ops(sma, i, wake_q); WARNING: line over 80 characters #282: FILE: ipc/sem.c:857: +static int update_queue(struct sem_array *sma, int semnum, struct wake_q_head *wake_q) WARNING: line over 80 characters #344: FILE: ipc/sem.c:973: + sops[i].sem_num, wake_q); WARNING: Missing a blank line after declarations #405: FILE: ipc/sem.c:1242: + int err, val; + WAKE_Q(wake_q); WARNING: line over 80 characters #570: FILE: ipc/sem.c:1920: + * We _do_ care, nonetheless, about being awoken by a signal or spuriously. total: 0 errors, 6 warnings, 567 lines checked NOTE: For some of the reported defects, checkpatch may be able to mechanically convert to the typical style using --fix or --fix-inplace. ./patches/ipc-sem-rework-task-wakeups.patch has style problems, please review. NOTE: If any of the errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. Please run checkpatch prior to sending patches Cc: Davidlohr Bueso Signed-off-by: Andrew Morton --- ipc/sem.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ipc/sem.c b/ipc/sem.c index b4e206f3e8a8b6..0e66169843f9c0 100644 --- a/ipc/sem.c +++ b/ipc/sem.c @@ -1917,10 +1917,11 @@ SYSCALL_DEFINE4(semtimedop, int, semid, struct sembuf __user *, tsops, * fastpath: the semop has completed, either successfully or not, from * the syscall pov, is quite irrelevant to us at this point; we're done. * - * We _do_ care, nonetheless, about being awoken by a signal or spuriously. - * The queue.status is checked again in the slowpath (aka after taking - * sem_lock), such that we can detect scenarios where we were awakened - * externally, during the window between wake_q_add() and wake_up_q(). + * We _do_ care, nonetheless, about being awoken by a signal or + * spuriously. The queue.status is checked again in the slowpath (aka + * after taking sem_lock), such that we can detect scenarios where we + * were awakened externally, during the window between wake_q_add() and + * wake_up_q(). */ error = READ_ONCE(queue.status); if (error != -EINTR) {