X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Fpartitions%2Fldm.h;h=6e8d7952b8b5889816fc0030a92f2b835514947c;hb=bef9ea3086d47cf98cfd0ea389953a0af0b60114;hp=14abedb995c65ca8d2526e12db7ed3c0bcfe0bc7;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/fs/partitions/ldm.h b/fs/partitions/ldm.h index 14abedb99..6e8d7952b 100644 --- a/fs/partitions/ldm.h +++ b/fs/partitions/ldm.h @@ -99,9 +99,9 @@ struct parsed_partitions; #define TOC_BITMAP2 "log" /* bitmaps in the TOCBLOCK. */ /* Most numbers we deal with are big-endian and won't be aligned. */ -#define BE16(x) ((u16)be16_to_cpu(get_unaligned((u16*)(x)))) -#define BE32(x) ((u32)be32_to_cpu(get_unaligned((u32*)(x)))) -#define BE64(x) ((u64)be64_to_cpu(get_unaligned((u64*)(x)))) +#define BE16(x) ((u16)be16_to_cpu(get_unaligned((__be16*)(x)))) +#define BE32(x) ((u32)be32_to_cpu(get_unaligned((__be32*)(x)))) +#define BE64(x) ((u64)be64_to_cpu(get_unaligned((__be64*)(x)))) /* Borrowed from msdos.c */ #define SYS_IND(p) (get_unaligned(&(p)->sys_ind))