Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eee93016 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by J. Bruce Fields
Browse files

nfsd: Fix NFSD_MDS_PR_KEY on 32-bit by adding ULL postfix



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: f99d4fbd ("nfsd: add SCSI layout support")
Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent 5edb5649
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -290,7 +290,7 @@ static int nfsd4_scsi_identify_device(struct block_device *bdev,
	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.