OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9f8105
)
nfs: fix compilation warning
author
Jovi Zhang
<bookjovi@gmail.com>
Wed, 2 Mar 2011 23:19:37 +0000
(23:19 +0000)
committer
Trond Myklebust
<Trond.Myklebust@netapp.com>
Thu, 10 Mar 2011 20:04:56 +0000
(15:04 -0500)
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>
fs/nfs/nfs4proc.c
patch
|
blob
|
history
diff --git
a/fs/nfs/nfs4proc.c
b/fs/nfs/nfs4proc.c
index
d1ed671
..
b07d4e2
100644
(file)
--- 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)