From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758605AbcEFRhL (ORCPT ); Fri, 6 May 2016 13:37:11 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:44651 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755370AbcEFRhK (ORCPT ); Fri, 6 May 2016 13:37:10 -0400 Date: Fri, 6 May 2016 10:37:05 -0700 From: Darren Hart To: Thomas Gleixner Cc: LKML , Sebastian Andrzej Siewior , Linus Torvalds , Darren Hart , Peter Zijlstra , Ingo Molnar , Michael Kerrisk , Davidlohr Bueso , Chris Mason , "Carlos O'Donell" , Torvald Riegel , Eric Dumazet Subject: Re: [patch V2 1/7] futex: Add some more function commentry Message-ID: <20160506173705.GD48432@f23x64.localdomain> References: <20160505204230.932454245@linutronix.de> <20160505204353.896615701@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160505204353.896615701@linutronix.de> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 05, 2016 at 08:44:03PM -0000, Thomas Gleixner wrote: > Add some more comments and reformat existing ones to kernel doc style. > > Signed-off-by: Thomas Gleixner > --- > kernel/futex.c | 15 ++++++++++++--- > 1 file changed, 12 insertions(+), 3 deletions(-) > > --- a/kernel/futex.c > +++ b/kernel/futex.c > @@ -373,8 +373,12 @@ static inline int hb_waiters_pending(str > #endif > } > > -/* > - * We hash on the keys returned from get_futex_key (see below). > +/** > + * hash_futex - Return the hash bucket in the global hash > + * @key: Pointer to the futex key for which the hash is calculated > + * > + * We hash on the keys returned from get_futex_key (see below) and return the > + * corresponding hash bucket in the global hash. > */ > static struct futex_hash_bucket *hash_futex(union futex_key *key) > { > @@ -384,7 +388,12 @@ static struct futex_hash_bucket *hash_fu > return &futex_queues[hash & (futex_hashsize - 1)]; > } > > -/* > + > +/** > + * match_futex - Check whether to futex keys are equal s/to/two/ Otherwise: Reviewed-by: Darren Hart > + * @key1: Pointer to key1 > + * @key2: Pointer to key2 > + * > * Return 1 if two futex_keys are equal, 0 otherwise. > */ > static inline int match_futex(union futex_key *key1, union futex_key *key2) > > > -- Darren Hart Intel Open Source Technology Center