From: Al Viro Date: Sat, 24 Dec 2005 19:39:13 +0000 (-0500) Subject: [PATCH] fs/partitions endianness annotations X-Git-Tag: v3.12-rc1~32601 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3524de1c7953e7a22c43b9214ffc3680af6f8edb;p=kernel%2Fkernel-generic.git [PATCH] fs/partitions endianness annotations Signed-off-by: Al Viro Signed-off-by: Linus Torvalds --- diff --git a/fs/partitions/msdos.c b/fs/partitions/msdos.c index 4f8df71..8c7af17 100644 --- a/fs/partitions/msdos.c +++ b/fs/partitions/msdos.c @@ -32,13 +32,11 @@ #include #define SYS_IND(p) (get_unaligned(&p->sys_ind)) -#define NR_SECTS(p) ({ __typeof__(p->nr_sects) __a = \ - get_unaligned(&p->nr_sects); \ +#define NR_SECTS(p) ({ __le32 __a = get_unaligned(&p->nr_sects); \ le32_to_cpu(__a); \ }) -#define START_SECT(p) ({ __typeof__(p->start_sect) __a = \ - get_unaligned(&p->start_sect); \ +#define START_SECT(p) ({ __le32 __a = get_unaligned(&p->start_sect); \ le32_to_cpu(__a); \ })