From: Jovi Zhang Date: Wed, 2 Mar 2011 23:19:37 +0000 (+0000) Subject: nfs: fix compilation warning X-Git-Tag: v2.6.35.14~208 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36a01162f9a6d45d87ffe118f72ec9bc9853acdf;p=thirdparty%2Fkernel%2Fstable.git nfs: fix compilation warning commit 43b7c3f051dea504afccc39bcb56d8e26c2e0b77 upstream. this commit fix compilation warning as following: linux-2.6/fs/nfs/nfs4proc.c:3265: warning: comparison of distinct pointer types lacks a cast Signed-off-by: Jovi Zhang Signed-off-by: Trond Myklebust Signed-off-by: Greg Kroah-Hartman Signed-off-by: Andi Kleen --- diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index b9f6ab66b1428..80943d88252a9 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c @@ -3284,7 +3284,7 @@ static int buf_to_pages_noslab(const void *buf, size_t buflen, spages = pages; do { - len = min(PAGE_CACHE_SIZE, buflen); + len = min_t(size_t, PAGE_CACHE_SIZE, buflen); newpage = alloc_page(GFP_KERNEL); if (newpage == NULL)