aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/futex.c
diff options
context:
space:
mode:
authorWaiman Long <longman@redhat.com>2016-11-17 11:46:38 -0500
committerIngo Molnar <mingo@kernel.org>2016-11-21 04:29:01 -0500
commit194a6b5b9cb6b91a5f7d86984165a3bc55188599 (patch)
treee8ffaad27b9b42a7cdf6092afa01cd01f4b28687 /kernel/futex.c
parent6d0d287891a022ebba572327cbd70b5de69a63a2 (diff)
sched/wake_q: Rename WAKE_Q to DEFINE_WAKE_Q
Currently the wake_q data structure is defined by the WAKE_Q() macro. This macro, however, looks like a function doing something as "wake" is a verb. Even checkpatch.pl was confused as it reported warnings like WARNING: Missing a blank line after declarations #548: FILE: kernel/futex.c:3665: + int ret; + WAKE_Q(wake_q); This patch renames the WAKE_Q() macro to DEFINE_WAKE_Q() which clarifies what the macro is doing and eliminates the checkpatch.pl warnings. Signed-off-by: Waiman Long <longman@redhat.com> Acked-by: Davidlohr Bueso <dave@stgolabs.net> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/1479401198-1765-1-git-send-email-longman@redhat.com [ Resolved conflict and added missing rename. ] Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/futex.c')
-rw-r--r--kernel/futex.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/futex.c b/kernel/futex.c
index 2c4be467fecd..9246d9f593d1 100644
--- a/kernel/futex.c
+++ b/kernel/futex.c
@@ -1298,7 +1298,7 @@ static int wake_futex_pi(u32 __user *uaddr, u32 uval, struct futex_q *this,
1298 struct task_struct *new_owner; 1298 struct task_struct *new_owner;
1299 struct futex_pi_state *pi_state = this->pi_state; 1299 struct futex_pi_state *pi_state = this->pi_state;
1300 u32 uninitialized_var(curval), newval; 1300 u32 uninitialized_var(curval), newval;
1301 WAKE_Q(wake_q); 1301 DEFINE_WAKE_Q(wake_q);
1302 bool deboost; 1302 bool deboost;
1303 int ret = 0; 1303 int ret = 0;
1304 1304
@@ -1415,7 +1415,7 @@ futex_wake(u32 __user *uaddr, unsigned int flags, int nr_wake, u32 bitset)
1415 struct futex_q *this, *next; 1415 struct futex_q *this, *next;
1416 union futex_key key = FUTEX_KEY_INIT; 1416 union futex_key key = FUTEX_KEY_INIT;
1417 int ret; 1417 int ret;
1418 WAKE_Q(wake_q); 1418 DEFINE_WAKE_Q(wake_q);
1419 1419
1420 if (!bitset) 1420 if (!bitset)
1421 return -EINVAL; 1421 return -EINVAL;
@@ -1469,7 +1469,7 @@ futex_wake_op(u32 __user *uaddr1, unsigned int flags, u32 __user *uaddr2,
1469 struct futex_hash_bucket *hb1, *hb2; 1469 struct futex_hash_bucket *hb1, *hb2;
1470 struct futex_q *this, *next; 1470 struct futex_q *this, *next;
1471 int ret, op_ret; 1471 int ret, op_ret;
1472 WAKE_Q(wake_q); 1472 DEFINE_WAKE_Q(wake_q);
1473 1473
1474retry: 1474retry:
1475 ret = get_futex_key(uaddr1, flags & FLAGS_SHARED, &key1, VERIFY_READ); 1475 ret = get_futex_key(uaddr1, flags & FLAGS_SHARED, &key1, VERIFY_READ);
@@ -1708,7 +1708,7 @@ static int futex_requeue(u32 __user *uaddr1, unsigned int flags,
1708 struct futex_pi_state *pi_state = NULL; 1708 struct futex_pi_state *pi_state = NULL;
1709 struct futex_hash_bucket *hb1, *hb2; 1709 struct futex_hash_bucket *hb1, *hb2;
1710 struct futex_q *this, *next; 1710 struct futex_q *this, *next;
1711 WAKE_Q(wake_q); 1711 DEFINE_WAKE_Q(wake_q);
1712 1712
1713 if (requeue_pi) { 1713 if (requeue_pi) {
1714 /* 1714 /*