public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] linux/ufs_fs.h: use __u64 for userspace
@ 2008-01-02  1:51 Mike Frysinger
  2008-01-02  2:02 ` Adrian Bunk
  0 siblings, 1 reply; 6+ messages in thread
From: Mike Frysinger @ 2008-01-02  1:51 UTC (permalink / raw)
  To: Andrew Morton, LKML

Fix the ufs_inotofsba macro to use __u64 rather than u64 since this is
exported to userspace.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
diff --git a/include/linux/ufs_fs.h b/include/linux/ufs_fs.h
index 10b854d..35b6e59 100644
--- a/include/linux/ufs_fs.h
+++ b/include/linux/ufs_fs.h
@@ -225,7 +225,7 @@ typedef __u16 __bitwise __fs16;
  */
 #define	ufs_inotocg(x)		((x) / uspi->s_ipg)
 #define	ufs_inotocgoff(x)	((x) % uspi->s_ipg)
-#define	ufs_inotofsba(x)	(((u64)ufs_cgimin(ufs_inotocg(x))) + ufs_inotocgoff(x) / uspi->s_inopf)
+#define	ufs_inotofsba(x)	(((__u64)ufs_cgimin(ufs_inotocg(x))) + ufs_inotocgoff(x) / uspi->s_inopf)
 #define	ufs_inotofsbo(x)	((x) % uspi->s_inopf)
 
 /*

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-01-02 13:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-02  1:51 [patch] linux/ufs_fs.h: use __u64 for userspace Mike Frysinger
2008-01-02  2:02 ` Adrian Bunk
2008-01-02  7:50   ` Christoph Hellwig
2008-01-02  8:04     ` David Miller
2008-01-02  8:10       ` Christoph Hellwig
2008-01-02 13:40       ` [patch] linux/ufs_fs.h: do not export to userspace anymore Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox