Skip to content

Commit fc6d2a3

Browse files
apaszkieshligit
authored andcommitted
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)) Reported-by: Greg Thelen <gthelen@google.com> Reported-by: Nigel Croxon <ncroxon@redhat.com> Tested-by: Greg Thelen <gthelen@google.com> Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com> Signed-off-by: Shaohua Li <shli@fb.com>
1 parent 835d89e commit fc6d2a3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/uapi/linux/raid/md_p.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ struct ppl_header_entry {
411411
#define PPL_HEADER_SIZE 4096
412412
#define PPL_HDR_RESERVED 512
413413
#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))
415415
#define PPL_HDR_MAX_ENTRIES \
416416
(PPL_HDR_ENTRY_SPACE / sizeof(struct ppl_header_entry))
417417

0 commit comments

Comments
 (0)