summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAlexander Viro <viro@www.linux.org.uk>2004-10-05 17:51:50 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-10-05 17:51:50 -0700
commit8784a0db977d6df1de55ba8f1cee6389a8ccf934 (patch)
tree605a7d6270ec8d14056c706686ccb24403f89fc2 /include/linux
parent46eec798d7d5079d244aa326997d0dcf4b3715c5 (diff)
[PATCH] romfs endianness annotations
Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/romfs_fs.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/include/linux/romfs_fs.h b/include/linux/romfs_fs.h
index 8f452cbd4c08..e20bbf9eb365 100644
--- a/include/linux/romfs_fs.h
+++ b/include/linux/romfs_fs.h
@@ -12,27 +12,27 @@
#define __mkw(h,l) (((h)&0x00ff)<< 8|((l)&0x00ff))
#define __mkl(h,l) (((h)&0xffff)<<16|((l)&0xffff))
-#define __mk4(a,b,c,d) htonl(__mkl(__mkw(a,b),__mkw(c,d)))
+#define __mk4(a,b,c,d) cpu_to_be32(__mkl(__mkw(a,b),__mkw(c,d)))
#define ROMSB_WORD0 __mk4('-','r','o','m')
#define ROMSB_WORD1 __mk4('1','f','s','-')
/* On-disk "super block" */
struct romfs_super_block {
- __u32 word0;
- __u32 word1;
- __u32 size;
- __u32 checksum;
+ __be32 word0;
+ __be32 word1;
+ __be32 size;
+ __be32 checksum;
char name[0]; /* volume name */
};
/* On disk inode */
struct romfs_inode {
- __u32 next; /* low 4 bits see ROMFH_ */
- __u32 spec;
- __u32 size;
- __u32 checksum;
+ __be32 next; /* low 4 bits see ROMFH_ */
+ __be32 spec;
+ __be32 size;
+ __be32 checksum;
char name[0];
};