diff options
| author | Artur Paszkiewicz <artur.paszkiewicz@intel.com> | 2017-04-19 04:48:06 -0400 |
|---|---|---|
| committer | Shaohua Li <shli@fb.com> | 2017-04-20 12:41:45 -0400 |
| commit | fc6d2a3ca59d5656d5b0ac3b25ecf493e4614abd (patch) | |
| tree | bbddb54fc1a0f813da7c2962981ee233819a4951 /include/uapi/linux/raid | |
| parent | 835d89e92fa77b6a1effea3db80202e1ffec413a (diff) | |
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>
Diffstat (limited to 'include/uapi/linux/raid')
| -rw-r--r-- | include/uapi/linux/raid/md_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/uapi/linux/raid/md_p.h b/include/uapi/linux/raid/md_p.h index d9a1ead867b9..d500bd224979 100644 --- a/include/uapi/linux/raid/md_p.h +++ b/include/uapi/linux/raid/md_p.h | |||
| @@ -411,7 +411,7 @@ struct ppl_header_entry { | |||
| 411 | #define PPL_HEADER_SIZE 4096 | 411 | #define PPL_HEADER_SIZE 4096 |
| 412 | #define PPL_HDR_RESERVED 512 | 412 | #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 | ||
