This patch fixes a couple of warnings when compiling on the x86_64
architecture.
Signed-off-by: Miklos Szeredi <[email protected]>
diff -rup linux-2.6.12-rc1-mm4/fs/fuse/file.c linux-fuse/fs/fuse/file.c
--- linux-2.6.12-rc1-mm4/fs/fuse/file.c 2005-03-31 21:52:18.000000000 +0200
+++ linux-fuse/fs/fuse/file.c 2005-03-31 21:52:00.000000000 +0200
@@ -420,7 +420,7 @@ static ssize_t fuse_direct_io(struct fil
{
struct inode *inode = file->f_dentry->d_inode;
struct fuse_conn *fc = get_fuse_conn(inode);
- unsigned nmax = write ? fc->max_write : fc->max_read;
+ size_t nmax = write ? fc->max_write : fc->max_read;
loff_t pos = *ppos;
ssize_t res = 0;
struct fuse_req *req = fuse_get_request(fc);
@@ -428,8 +428,8 @@ static ssize_t fuse_direct_io(struct fil
return -ERESTARTSYS;
while (count) {
- unsigned tmp;
- unsigned nres;
+ size_t tmp;
+ size_t nres;
size_t nbytes = min(count, nmax);
int err = fuse_get_user_pages(req, buf, nbytes, !write);
if (err) {
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]