Re: New warning from nfs code

From: Trond Myklebust
Date: Wed Apr 28 2004 - 16:48:00 EST


On Wed, 2004-04-28 at 04:01, Meelis Roos wrote:
> This is 2.6.6-rc3 on a sparc64:
>
> CC [M] fs/nfs/direct.o
> fs/nfs/direct.c: In function `nfs_direct_IO':
> fs/nfs/direct.c:458: warning: int format, different type arg (arg 2)
>
> ssize_t is long (64-bit) on sparc64 but int (32-bit) on i386 and so on.

Does this help?

Cheers,
Trond

--- linux-2.6.6-rc3/fs/nfs/direct.c.orig 2004-04-27 22:41:02.000000000 -0400
+++ linux-2.6.6-rc3/fs/nfs/direct.c 2004-04-28 12:23:26.000000000 -0400
@@ -455,6 +455,6 @@ nfs_direct_IO(int rw, struct kiocb *iocb
}

out:
- dprintk("NFS: direct_IO result=%d\n", result);
+ dprintk("NFS: direct_IO result=%zd\n", result);
return result;
}

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/