]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
nfs: fix compilation warning
authorJovi Zhang <bookjovi@gmail.com>
Wed, 2 Mar 2011 23:19:37 +0000 (23:19 +0000)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Wed, 14 Mar 2012 14:57:37 +0000 (10:57 -0400)
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 <bookjovi@gmail.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
fs/nfs/nfs4proc.c

index 5b33856109fc1ea5ddbe9e35a64e0b648c40e906..8dd330925edeca9a71070d73bae5a8504e566ca7 100644 (file)
@@ -3251,7 +3251,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)