[PATCH 7/8] fs: use get_unaligned_* helpers

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Harvey Harrison
Date: Thursday, May 1, 2008 - 8:52 pm

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
---
 fs/partitions/ldm.h |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/fs/partitions/ldm.h b/fs/partitions/ldm.h
index 80f63b5..8c341f3 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((__be16*)(x))))
-#define BE32(x)			((u32)be32_to_cpu(get_unaligned((__be32*)(x))))
-#define BE64(x)			((u64)be64_to_cpu(get_unaligned((__be64*)(x))))
+#define BE16(x)		get_unaligned_be16((x))
+#define BE32(x)		get_unaligned_be32((x))
+#define BE64(x)		get_unaligned_be64((x))
 
 /* Borrowed from msdos.c */
 #define SYS_IND(p)		(get_unaligned(&(p)->sys_ind))
-- 
1.5.5.1.350.gbbbf


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 7/8] fs: use get_unaligned_* helpers, Harvey Harrison, (Thu May 1, 8:52 pm)
Re: [PATCH 7/8] fs: use get_unaligned_* helpers, Stefan Richter, (Fri May 2, 4:40 am)
Re: [PATCH 7/8] fs: use get_unaligned_* helpers, Harvey Harrison, (Fri May 2, 11:17 am)