Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3524de1c authored by Al Viro's avatar Al Viro Committed by Linus Torvalds
Browse files

[PATCH] fs/partitions endianness annotations

parent d136fe72
Loading
Loading
Loading
Loading
+2 −4
Original line number Original line Diff line number Diff line
@@ -32,13 +32,11 @@
#include <asm/unaligned.h>
#include <asm/unaligned.h>


#define SYS_IND(p)	(get_unaligned(&p->sys_ind))
#define SYS_IND(p)	(get_unaligned(&p->sys_ind))
#define NR_SECTS(p)	({ __typeof__(p->nr_sects) __a =	\
#define NR_SECTS(p)	({ __le32 __a =	get_unaligned(&p->nr_sects);	\
				get_unaligned(&p->nr_sects);	\
				le32_to_cpu(__a); \
				le32_to_cpu(__a); \
			})
			})


#define START_SECT(p)	({ __typeof__(p->start_sect) __a =	\
#define START_SECT(p)	({ __le32 __a =	get_unaligned(&p->start_sect);	\
				get_unaligned(&p->start_sect);	\
				le32_to_cpu(__a); \
				le32_to_cpu(__a); \
			})
			})