History

uapi: fix linux/raid/md_p.h userspace compilation error

Use __le32 and __le64 instead of u32 and u64. This fixes klibc build error: In file included from /klibc/usr/klibc/../include/sys/md.h:30:0, from /klibc/usr/kinit/do_mounts_md.c:19: /linux-next/usr/include/linux/raid/md_p.h:414:51: error: 'u32' undeclared here (not in a function) (PPL_HEADER_SIZE - PPL_HDR_RESERVED - 4 * sizeof(u32) - sizeof(u64))

Artur Paszkiewicz committed 9 years ago

Commit fc6d2a31 parent 835d89e1 file · +1 −1Browse files

Showing the changes to include/uapi/linux/raid (1 of 1 file). Show all

Unified · Split

include/uapi/linux/raid/md_p.h+1−1
@@ -411,7 +411,7 @@ struct ppl_header_entry { · 410 unmodified lines
411#define PPL_HEADER_SIZE 4096411#define PPL_HEADER_SIZE 4096
412#define PPL_HDR_RESERVED 512412#define PPL_HDR_RESERVED 512
413#define PPL_HDR_ENTRY_SPACE \413#define PPL_HDR_ENTRY_SPACE \
414 (PPL_HEADER_SIZE - PPL_HDR_RESERVED - 4 * sizeof(u32) - sizeof(u64))414 (PPL_HEADER_SIZE - PPL_HDR_RESERVED - 4 * sizeof(__le32) - sizeof(__le64))
415#define PPL_HDR_MAX_ENTRIES \415#define PPL_HDR_MAX_ENTRIES \
416 (PPL_HDR_ENTRY_SPACE / sizeof(struct ppl_header_entry))416 (PPL_HDR_ENTRY_SPACE / sizeof(struct ppl_header_entry))
417 417