* New warnings on NTFS code
@ 2004-04-28 8:13 Meelis Roos
2004-04-28 8:38 ` Anton Altaparmakov
0 siblings, 1 reply; 2+ messages in thread
From: Meelis Roos @ 2004-04-28 8:13 UTC (permalink / raw)
To: Anton Altaparmakov, Linux Kernel list
This is 2.6.6-rc3 on sparc64. It has recently got some new warnings in
NTFS (there was a warning before but now there are more):
fs/ntfs/super.c: In function `parse_ntfs_boot_sector':
fs/ntfs/super.c:638: warning: long long unsigned int format, s64 arg (arg 4)
fs/ntfs/super.c: In function `ntfs_fill_super':
fs/ntfs/super.c:1523: warning: cast to pointer from integer of different size
fs/ntfs/super.c:1529: warning: cast to pointer from integer of different size
fs/ntfs/super.c:1634: warning: cast to pointer from integer of different size
The 3 new warnings are because of this definition:
#define OGIN ((struct inode*)le32_to_cpu(0x4e49474f)) /* OGIN */
This seems suspicious - hardcoded pointer?
--
Meelis Roos (mroos@linux.ee)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: New warnings on NTFS code
2004-04-28 8:13 New warnings on NTFS code Meelis Roos
@ 2004-04-28 8:38 ` Anton Altaparmakov
0 siblings, 0 replies; 2+ messages in thread
From: Anton Altaparmakov @ 2004-04-28 8:38 UTC (permalink / raw)
To: Meelis Roos; +Cc: Linux Kernel list
On Wed, 2004-04-28 at 09:13, Meelis Roos wrote:
> This is 2.6.6-rc3 on sparc64. It has recently got some new warnings in
> NTFS (there was a warning before but now there are more):
>
> fs/ntfs/super.c: In function `parse_ntfs_boot_sector':
> fs/ntfs/super.c:638: warning: long long unsigned int format, s64 arg (arg 4)
Oops. A missing cast in a printf(). Now fixed in my tree.
> fs/ntfs/super.c: In function `ntfs_fill_super':
> fs/ntfs/super.c:1523: warning: cast to pointer from integer of different size
> fs/ntfs/super.c:1529: warning: cast to pointer from integer of different size
> fs/ntfs/super.c:1634: warning: cast to pointer from integer of different size
>
> The 3 new warnings are because of this definition:
>
> #define OGIN ((struct inode*)le32_to_cpu(0x4e49474f)) /* OGIN */
>
> This seems suspicious - hardcoded pointer?
It is a pointer poison. Now fixed in my tree.
I will submit the fixes with the next NTFS release which should be in a
few weeks. None of the above indicate anything is broken, so there is
no hurry...
Thanks for the report!
Best regards,
Anton
--
Anton Altaparmakov <aia21 at cam.ac.uk> (replace at with @)
Unix Support, Computing Service, University of Cambridge, CB2 3QH, UK
Linux NTFS maintainer / IRC: #ntfs on irc.freenode.net
WWW: http://linux-ntfs.sf.net/ &
http://www-stu.christs.cam.ac.uk/~aia21/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-04-28 8:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-28 8:13 New warnings on NTFS code Meelis Roos
2004-04-28 8:38 ` Anton Altaparmakov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®