NFSD: Avoid warning message when compile at i686 arch
authorKinglong Mee <kinglongmee@gmail.com>
Sun, 29 Jun 2014 11:18:17 +0000 (19:18 +0800)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 8 Jul 2014 21:14:28 +0000 (17:14 -0400)
commit1055414fe19db2db6c8947c0b9ee9c8fe07beea1
treecc63dd806e6c4c2846e2b66b6fc3768e061fb66f
parentd5e2338324102dcf34aa25aeaf96064cc4d94dce
NFSD: Avoid warning message when compile at i686 arch

fs/nfsd/nfs4xdr.c: In function 'nfsd4_encode_readv':
>> fs/nfsd/nfs4xdr.c:3137:148: warning: comparison of distinct pointer types lacks a cast [enabled by default]
thislen = min(len, ((void *)xdr->end - (void *)xdr->p));

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4xdr.c