All of lore.kernel.org
 help / color / mirror / Atom feed
From: Aya Mahfouz <mahfouz.saif.elyazal@gmail.com>
To: lustre-devel@lists.lustre.org
Subject: [lustre-devel] [RESEND PATCH v2 2/5] staging: lustre: hash.c: Replace IS_PO2 by is_power_of_2
Date: Thu, 29 Oct 2015 02:26:56 +0200	[thread overview]
Message-ID: <20151029002656.GA12848@waves> (raw)
In-Reply-To: <20151028064159.GB3649@sudip-pc>

On Wed, Oct 28, 2015 at 12:11:59PM +0530, Sudip Mukherjee wrote:
> On Tue, Oct 27, 2015 at 07:43:34PM +0200, Aya Mahfouz wrote:
> > Replaces IS_PO2 by is_power_of_2. It is more accurate to use
> > is_power_of_2 since it returns 1 for numbers that are powers
> > of 2 only whereas IS_PO2 returns 1 for 0 and numbers that are
> > powers of 2.
> > 
> > Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
> > Signed-off-by: Aya Mahfouz <mahfouz.saif.elyazal@gmail.com>
> > ---
> > v2:
> >         -changed commit message
> >         -added Andreas Reviewed by tag
> > 
> >  drivers/staging/lustre/lustre/libcfs/hash.c | 4 +++-
> >  1 file changed, 3 insertions(+), 1 deletion(-)
> > 
> > diff --git a/drivers/staging/lustre/lustre/libcfs/hash.c b/drivers/staging/lustre/lustre/libcfs/hash.c
> > index 6f4c7d4..4b5e79a 100644
> > --- a/drivers/staging/lustre/lustre/libcfs/hash.c
> > +++ b/drivers/staging/lustre/lustre/libcfs/hash.c
> > @@ -109,6 +109,8 @@
> >  
> >  #include "../../include/linux/libcfs/libcfs.h"
> >  #include <linux/seq_file.h>
> > +#include <linux/log2.h>
> > +
> 
> This extra blank line will introduce new checkpatch error of "multiple
> blank lines"
> 
> regards
> sudip
Thanks Sudip! I will handle your comments on the patchset and resend it.

-- 
Kind Regards,
Aya Saif El-yazal Mahfouz

  reply	other threads:[~2015-10-29  0:26 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-27 17:41 [lustre-devel] [RESEND PATCH v2 0/5] Remove uses and definition of IS_PO2 Aya Mahfouz
2015-10-27 17:42 ` [lustre-devel] [RESEND PATCH v2 1/5] staging: lustre: ldlm_extent.c: replace IS_PO2 by is_power_of_2 Aya Mahfouz
2015-10-27 17:43 ` [lustre-devel] [RESEND PATCH v2 2/5] staging: lustre: hash.c: Replace " Aya Mahfouz
2015-10-28  6:41   ` Sudip Mukherjee
2015-10-29  0:26     ` Aya Mahfouz [this message]
2015-10-27 17:44 ` [lustre-devel] [RESEND PATCH v2 3/5] staging: lustre: workitem.c: replace " Aya Mahfouz
2015-10-27 17:45 ` [lustre-devel] [RESEND PATCH v2 4/5] staging: lustre: selftest.h: " Aya Mahfouz
2015-10-28  6:44   ` Sudip Mukherjee
2015-10-27 17:46 ` [lustre-devel] [RESEND PATCH v2 5/5] staging: lustre: libcfs.h: remove IS_PO2 and __is_po2 Aya Mahfouz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20151029002656.GA12848@waves \
    --to=mahfouz.saif.elyazal@gmail.com \
    --cc=lustre-devel@lists.lustre.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.