Skip to content

Commit d32e3ba

Browse files
committed
ipc/sem: merge fix for WAKE_Q to DEFINE_WAKE_Q rename
Link: http://lkml.kernel.org/r/20161122210410.5eca9fc2@canb.auug.org.au Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Cc: Davidlohr Bueso <dbueso@suse.de> Cc: Manfred Spraul <manfred@colorfullife.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent 5e819aa commit d32e3ba

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ipc/sem.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,7 +1059,7 @@ static void freeary(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp)
10591059
struct sem_queue *q, *tq;
10601060
struct sem_array *sma = container_of(ipcp, struct sem_array, sem_perm);
10611061
int i;
1062-
WAKE_Q(wake_q);
1062+
DEFINE_WAKE_Q(wake_q);
10631063

10641064
/* Free the existing undo structures for this semaphore set. */
10651065
ipc_assert_locked_object(&sma->sem_perm);
@@ -1239,7 +1239,7 @@ static int semctl_setval(struct ipc_namespace *ns, int semid, int semnum,
12391239
struct sem_array *sma;
12401240
struct sem *curr;
12411241
int err, val;
1242-
WAKE_Q(wake_q);
1242+
DEFINE_WAKE_Q(wake_q);
12431243

12441244
#if defined(CONFIG_64BIT) && defined(__BIG_ENDIAN)
12451245
/* big-endian 64bit */
@@ -1309,7 +1309,7 @@ static int semctl_main(struct ipc_namespace *ns, int semid, int semnum,
13091309
int err, nsems;
13101310
ushort fast_sem_io[SEMMSL_FAST];
13111311
ushort *sem_io = fast_sem_io;
1312-
WAKE_Q(wake_q);
1312+
DEFINE_WAKE_Q(wake_q);
13131313

13141314
rcu_read_lock();
13151315
sma = sem_obtain_object_check(ns, semid);
@@ -1848,7 +1848,7 @@ SYSCALL_DEFINE4(semtimedop, int, semid, struct sembuf __user *, tsops,
18481848

18491849
error = perform_atomic_semop(sma, &queue);
18501850
if (error == 0) { /* non-blocking succesfull path */
1851-
WAKE_Q(wake_q);
1851+
DEFINE_WAKE_Q(wake_q);
18521852

18531853
/*
18541854
* If the operation was successful, then do
@@ -2031,7 +2031,7 @@ void exit_sem(struct task_struct *tsk)
20312031
struct sem_array *sma;
20322032
struct sem_undo *un;
20332033
int semid, i;
2034-
WAKE_Q(wake_q);
2034+
DEFINE_WAKE_Q(wake_q);
20352035

20362036
cond_resched();
20372037

0 commit comments

Comments
 (0)