From: Greg KH <gregkh@linuxfoundation.org>
To: Jaya Durga <rjdurga@gmail.com>
Cc: oleg.drokin@intel.com, andreas.dilger@intel.com,
jsimmons@infradead.org, john.hammond@intel.com,
bobijam@hotmail.com, mingo@kernel.org,
lustre-devel@lists.lustre.org, devel@driverdev.osuosl.org,
linux-kernel@vger.kernel.org
Subject: [lustre-devel] [PATCH 8/8] Staging: lustre :lustre: include :lustre_compat.h: Prefer using the BIT macro
Date: Tue, 11 Jul 2017 19:08:18 +0200 [thread overview]
Message-ID: <20170711170818.GA5013@kroah.com> (raw)
In-Reply-To: <1499325195-17466-1-git-send-email-rjdurga@gmail.com>
On Thu, Jul 06, 2017 at 12:43:15PM +0530, Jaya Durga wrote:
> Replace all instances of (1 << 27) with BIT(27) to fix
> checkpatch check messages
>
> Signed-off-by: Jaya Durga <rjdurga@gmail.com>
> ---
> drivers/staging/lustre/lustre/include/lustre_compat.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/staging/lustre/lustre/include/lustre_compat.h b/drivers/staging/lustre/lustre/include/lustre_compat.h
> index da9ce19..686a251 100644
> --- a/drivers/staging/lustre/lustre/include/lustre_compat.h
> +++ b/drivers/staging/lustre/lustre/include/lustre_compat.h
> @@ -43,7 +43,7 @@
> * set ATTR_BLOCKS to a high value to avoid any risk of collision with other
> * ATTR_* attributes (see bug 13828)
> */
> -#define ATTR_BLOCKS (1 << 27)
> +#define ATTR_BLOCKS BIT(27)
Isn't this used in lustre's userspace code? If so, you can't use the
BIT() macro there :(
Please check before you redo this.
thanks,
greg k-h
WARNING: multiple messages have this Message-ID (diff)
From: Greg KH <gregkh@linuxfoundation.org>
To: Jaya Durga <rjdurga@gmail.com>
Cc: oleg.drokin@intel.com, andreas.dilger@intel.com,
jsimmons@infradead.org, john.hammond@intel.com,
bobijam@hotmail.com, mingo@kernel.org,
lustre-devel@lists.lustre.org, devel@driverdev.osuosl.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 8/8] Staging: lustre :lustre: include :lustre_compat.h: Prefer using the BIT macro
Date: Tue, 11 Jul 2017 19:08:18 +0200 [thread overview]
Message-ID: <20170711170818.GA5013@kroah.com> (raw)
In-Reply-To: <1499325195-17466-1-git-send-email-rjdurga@gmail.com>
On Thu, Jul 06, 2017 at 12:43:15PM +0530, Jaya Durga wrote:
> Replace all instances of (1 << 27) with BIT(27) to fix
> checkpatch check messages
>
> Signed-off-by: Jaya Durga <rjdurga@gmail.com>
> ---
> drivers/staging/lustre/lustre/include/lustre_compat.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/staging/lustre/lustre/include/lustre_compat.h b/drivers/staging/lustre/lustre/include/lustre_compat.h
> index da9ce19..686a251 100644
> --- a/drivers/staging/lustre/lustre/include/lustre_compat.h
> +++ b/drivers/staging/lustre/lustre/include/lustre_compat.h
> @@ -43,7 +43,7 @@
> * set ATTR_BLOCKS to a high value to avoid any risk of collision with other
> * ATTR_* attributes (see bug 13828)
> */
> -#define ATTR_BLOCKS (1 << 27)
> +#define ATTR_BLOCKS BIT(27)
Isn't this used in lustre's userspace code? If so, you can't use the
BIT() macro there :(
Please check before you redo this.
thanks,
greg k-h
next prev parent reply other threads:[~2017-07-11 17:08 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-06 7:13 [lustre-devel] [PATCH 8/8] Staging: lustre :lustre: include :lustre_compat.h: Prefer using the BIT macro Jaya Durga
2017-07-06 7:13 ` Jaya Durga
2017-07-06 7:23 ` [lustre-devel] " Frans Klaver
2017-07-06 7:23 ` Frans Klaver
2017-07-11 17:08 ` Greg KH [this message]
2017-07-11 17:08 ` Greg KH
2017-07-12 5:13 ` [lustre-devel] " Dilger, Andreas
2017-07-12 5:13 ` Dilger, Andreas
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=20170711170818.GA5013@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=andreas.dilger@intel.com \
--cc=bobijam@hotmail.com \
--cc=devel@driverdev.osuosl.org \
--cc=john.hammond@intel.com \
--cc=jsimmons@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lustre-devel@lists.lustre.org \
--cc=mingo@kernel.org \
--cc=oleg.drokin@intel.com \
--cc=rjdurga@gmail.com \
/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.