diff options
Diffstat (limited to 'fs/partitions/msdos.c')
-rw-r--r-- | fs/partitions/msdos.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/partitions/msdos.c b/fs/partitions/msdos.c index 4f8df71e49d3..8c7af1777819 100644 --- a/fs/partitions/msdos.c +++ b/fs/partitions/msdos.c | |||
@@ -32,13 +32,11 @@ | |||
32 | #include <asm/unaligned.h> | 32 | #include <asm/unaligned.h> |
33 | 33 | ||
34 | #define SYS_IND(p) (get_unaligned(&p->sys_ind)) | 34 | #define SYS_IND(p) (get_unaligned(&p->sys_ind)) |
35 | #define NR_SECTS(p) ({ __typeof__(p->nr_sects) __a = \ | 35 | #define NR_SECTS(p) ({ __le32 __a = get_unaligned(&p->nr_sects); \ |
36 | get_unaligned(&p->nr_sects); \ | ||
37 | le32_to_cpu(__a); \ | 36 | le32_to_cpu(__a); \ |
38 | }) | 37 | }) |
39 | 38 | ||
40 | #define START_SECT(p) ({ __typeof__(p->start_sect) __a = \ | 39 | #define START_SECT(p) ({ __le32 __a = get_unaligned(&p->start_sect); \ |
41 | get_unaligned(&p->start_sect); \ | ||
42 | le32_to_cpu(__a); \ | 40 | le32_to_cpu(__a); \ |
43 | }) | 41 | }) |
44 | 42 | ||