mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 14/16] fs/partitions endianness annotations
@ 2006-10-10 22:39 Al Viro
  0 siblings, 0 replies; only message in thread
From: Al Viro @ 2006-10-10 22:39 UTC (permalink / raw)
  To: torvalds; +Cc: linux-kernel

Date: Sat, 24 Dec 2005 14:39:13 -0500

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
---
 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 4f8df71..8c7af17 100644
--- a/fs/partitions/msdos.c
+++ b/fs/partitions/msdos.c
@@ -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); \
 			})
 
-- 
1.4.2.GIT



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-10-10 22:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-10 22:39 [PATCH 14/16] fs/partitions endianness annotations Al Viro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®