* [PATCH] NFSD: Avoid warning message when compile at i686 arch
[not found] <53aebf38.2Sl+piCGJ4BiEZLl%fengguang.wu@intel.com>
@ 2014-06-29 11:18 ` Kinglong Mee
0 siblings, 0 replies; only message in thread
From: Kinglong Mee @ 2014-06-29 11:18 UTC (permalink / raw)
To: kbuild test robot
Cc: J. Bruce Fields, kbuild-all, Linux NFS Mailing List, kinglongmee
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>
---
fs/nfsd/nfs4xdr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c
index ec198fa..1b61fbe 100644
--- a/fs/nfsd/nfs4xdr.c
+++ b/fs/nfsd/nfs4xdr.c
@@ -3150,7 +3150,7 @@ static __be32 nfsd4_encode_readv(struct nfsd4_compoundres *resp,
len = maxcount;
v = 0;
- thislen = min(len, ((void *)xdr->end - (void *)xdr->p));
+ thislen = min_t(long, len, ((void *)xdr->end - (void *)xdr->p));
p = xdr_reserve_space(xdr, (thislen+3)&~3);
WARN_ON_ONCE(!p);
resp->rqstp->rq_vec[v].iov_base = p;
--
1.9.3
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-06-29 11:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <53aebf38.2Sl+piCGJ4BiEZLl%fengguang.wu@intel.com>
2014-06-29 11:18 ` [PATCH] NFSD: Avoid warning message when compile at i686 arch Kinglong Mee
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox