[pnfs] [PATCH} fix compiler warning in nfs/write.c

Benny Halevy bhalevy at panasas.com
Mon Apr 23 06:34:43 EDT 2007


for some reason the compiler asserts that u64 is long unsigned on x86_64, not long long
and it prints the following warning:
/var/export/home/bhalevy/dev/git/linux-pnfs/fs/nfs/write.c: In function `nfs_sync_inode_wait':
/var/export/home/bhalevy/dev/git/linux-pnfs/fs/nfs/write.c:1831: warning: long long unsigned int format, long unsigned int arg (arg 4)

diff --git a/fs/nfs/write.c b/fs/nfs/write.c
index 2f6c34d..3e4c9c0 100644
--- a/fs/nfs/write.c
+++ b/fs/nfs/write.c
@@ -1828,7 +1828,7 @@ int nfs_sync_inode_wait(struct inode *inode, unsigned long idx_start,
                                                printk(KERN_NOTICE "%s: failed to get the layo
                                                       " %Zd@%llu error=%d\n",
                                                       __FUNCTION__, npages * idx_start * PAGE
-                                                      (u64)idx_start * PAGE_SIZE, ret);
+                                                      (unsigned long long)idx_start * PAGE_SI
                                                ret = 0;
                                        }
                                #endif



More information about the pNFS mailing list