All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeff Layton <jlayton@poochiereds.net>
To: Geert Uytterhoeven <geert@linux-m68k.org>,
	"J. Bruce Fields" <bfields@fieldses.org>
Cc: linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] nfds: Fix NFSD_MDS_PR_KEY on 32-bit by adding ULL postfix
Date: Sun, 05 Jun 2016 06:21:43 -0400	[thread overview]
Message-ID: <1465122103.5944.0.camel@poochiereds.net> (raw)
In-Reply-To: <1465118633-2659-1-git-send-email-geert@linux-m68k.org>

On Sun, 2016-06-05 at 11:23 +0200, Geert Uytterhoeven wrote:
> On 32-bit:
> 
>     fs/nfsd/blocklayout.c: In function ‘nfsd4_block_get_device_info_scsi’:
>     fs/nfsd/blocklayout.c:337: warning: integer constant is too large for ‘long’ type
>     fs/nfsd/blocklayout.c:344: warning: integer constant is too large for ‘long’ type
>     fs/nfsd/blocklayout.c: In function ‘nfsd4_scsi_fence_client’:
>     fs/nfsd/blocklayout.c:385: warning: integer constant is too large for ‘long’ type
> 
> Add the missing "ULL" postfix to 64-bit constant NFSD_MDS_PR_KEY to fix
> this.
> 
> Fixes: f99d4fbdae6765d0 ("nfsd: add SCSI layout support")
> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
> Reviewed-by: Christoph Hellwig <hch@lst.de>
> ---
> v2:
>   - Add Reviewed-by.
> 
> Despite Bruce's "Thanks, applying for 4.6.--b." on 2016-03-29, this
> still hasn't made it into next-20160603.
> ---
>  fs/nfsd/blocklayout.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fs/nfsd/blocklayout.c b/fs/nfsd/blocklayout.c
> index e55b5242614da7a9..31f3df193bdbb47b 100644
> --- a/fs/nfsd/blocklayout.c
> +++ b/fs/nfsd/blocklayout.c
> @@ -290,7 +290,7 @@ out_free_buf:
>  	return error;
>  }
>  
> -#define NFSD_MDS_PR_KEY		0x0100000000000000
> +#define NFSD_MDS_PR_KEY		0x0100000000000000ULL
>  
>  /*
>   * We use the client ID as a unique key for the reservations.

Thanks!

Reviewed-by: Jeff Layton <jlayton@poochiereds.net>

  reply	other threads:[~2016-06-05 10:39 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-05  9:23 [PATCH] nfds: Fix NFSD_MDS_PR_KEY on 32-bit by adding ULL postfix Geert Uytterhoeven
2016-06-05 10:21 ` Jeff Layton [this message]
2016-06-06 18:56   ` J. Bruce Fields
  -- strict thread matches above, loose matches on Subject: below --
2016-03-25 10:47 Geert Uytterhoeven
2016-03-25 18:04 ` Christoph Hellwig
2016-03-25 18:25   ` Joe Perches
2016-03-28 23:48   ` J. Bruce Fields

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=1465122103.5944.0.camel@poochiereds.net \
    --to=jlayton@poochiereds.net \
    --cc=bfields@fieldses.org \
    --cc=geert@linux-m68k.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-nfs@vger.kernel.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.