fs/partitions endianness annotations
PATCH 14/16 fs/partitions endianness annotations
Date: Sat, 24 Dec 2005 14:39:13 -0500
Signed-off-by Al Viro <[email protected]>
--- fs/partitions/msdos.c | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-)
fs/partitions/msdos.c +2 -4
@@ -32,13 +32,11 @@ #include "efi.h"#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); \ })
Signature · 1 line
1.4.2.GIT