From: Jovi Zhang <[email protected]>

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 <[email protected]>
Signed-off-by: Trond Myklebust <[email protected]>
---
Hi Greg,

This fixes a warning that was introduced by
commit 4ff51e31281b8628f6d2e16770e1f047efa34713 in 2.6.37.4


 fs/nfs/nfs4proc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index d1ed671..b07d4e2 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -3262,7 +3262,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)
-- 
1.7.4

_______________________________________________
stable mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/stable

Reply via email to