]> git.baikalelectronics.ru Git - kernel.git/commit
nfs4: The difference of 2 pointers is ptrdiff_t
authorGeert Uytterhoeven <geert@linux-m68k.org>
Thu, 28 Oct 2010 18:06:19 +0000 (20:06 +0200)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 28 Oct 2010 19:49:29 +0000 (15:49 -0400)
commit407a1a3b2050af4a18bf32503aff697de461cadd
tree4c005a806101a84b4154c3deeb96952e8b7fce1a
parentf4a45fa0f31f4520ea7a6102a805b9cf86e806d8
nfs4: The difference of 2 pointers is ptrdiff_t

On m68k, which is 32-bit:

fs/nfs/nfs4proc.c: In function ‘nfs41_sequence_done’:
fs/nfs/nfs4proc.c:432: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘int’
fs/nfs/nfs4proc.c: In function ‘nfs4_setup_sequence’:
fs/nfs/nfs4proc.c:576: warning: format ‘%ld’ expects type ‘long int’, but argument 5 has type ‘int’

On 32-bit, ptrdiff_t is int; on 64-bit, ptrdiff_t is long.

Introduced by commit 035593fb77277031a31e8c64b6ce83b439008e3c ("NFSv4.1: keep
seq_res.sr_slot as pointer rather than an index")

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4proc.c