]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/partitions/msdos.c
[PATCH] fs/partitions endianness annotations
[linux-2.6-omap-h63xx.git] / fs / partitions / msdos.c
index 4f8df71e49d330038614c4f81a300f477b6f9a95..8c7af1777819e2b2d5cdeabc49ef87298ca89c19 100644 (file)
 #include <asm/unaligned.h>
 
 #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); \
                        })