提交 fc6d2a3c 编写于 作者: A Artur Paszkiewicz 提交者: Shaohua Li

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: NGreg Thelen <gthelen@google.com>
Reported-by: NNigel Croxon <ncroxon@redhat.com>
Tested-by: NGreg Thelen <gthelen@google.com>
Signed-off-by: NArtur Paszkiewicz <artur.paszkiewicz@intel.com>
Signed-off-by: NShaohua Li <shli@fb.com>
上级 835d89e9
...@@ -411,7 +411,7 @@ struct ppl_header_entry { ...@@ -411,7 +411,7 @@ struct ppl_header_entry {
#define PPL_HEADER_SIZE 4096 #define PPL_HEADER_SIZE 4096
#define PPL_HDR_RESERVED 512 #define PPL_HDR_RESERVED 512
#define PPL_HDR_ENTRY_SPACE \ #define PPL_HDR_ENTRY_SPACE \
(PPL_HEADER_SIZE - PPL_HDR_RESERVED - 4 * sizeof(u32) - sizeof(u64)) (PPL_HEADER_SIZE - PPL_HDR_RESERVED - 4 * sizeof(__le32) - sizeof(__le64))
#define PPL_HDR_MAX_ENTRIES \ #define PPL_HDR_MAX_ENTRIES \
(PPL_HDR_ENTRY_SPACE / sizeof(struct ppl_header_entry)) (PPL_HDR_ENTRY_SPACE / sizeof(struct ppl_header_entry))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册