aufs on 64 bit nodes: warnings on compilation [message #11674] |
Mon, 02 April 2007 14:25 |
Vasily Tarasov
Messages: 1345 Registered: January 2006
|
Senior Member |
|
|
Hello, I've just compiled aufs on my 64bit node and there were a lot of
warnings caused by 64bit specifics. The tiny patch below fixes most of
them. However there are still a bit warnings, but it depends greatly on
the author how to fix it, so I just report about them:
fs/aufs/xino.c:118: warning: conflicting types for built-in function
'fwrite'
fs/aufs/xino.c: In function `xino_write':
fs/aufs/xino.c:226: warning: int format, different type arg (arg 6)
fs/aufs/xino.c: In function `xino_read':
fs/aufs/xino.c:281: warning: int format, different type arg (arg 6)
fs/aufs/xino.c:286: warning: int format, different type arg (arg 6)
--- ./fs/aufs/file.h.aufs-fix 2007-04-02 17:46:53.000000000 +0400
+++ ./fs/aufs/file.h 2007-04-02 18:04:06.000000000 +0400
@@ -104,7 +104,7 @@ static inline int au_figen(struct file *
static inline int au_is_mmapped(struct file *f)
{
- return (int)ftofi(f)->fi_h_vm_ops;
+ return ftofi(f)->fi_h_vm_ops ? 1 : 0;
}
/* ------------------------------------------------------------ ---------- */
|
|
|