Skip to content

Commit

Permalink
UAPI: include <asm/byteorder.h> in linux/raid/md_p.h
Browse files Browse the repository at this point in the history
linux/raid/md_p.h is using conditionals depending on endianess and fails
with an error if neither of __BIG_ENDIAN, __LITTLE_ENDIAN or
__BYTE_ORDER are defined, but it doesn't include any header which can
define these constants. This make this header unusable alone.

This patch adds a #include <asm/byteorder.h> at the beginning of this
header to make it usable alone. This is needed to compile klibc on MIPS.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: NeilBrown <neilb@suse.de>
  • Loading branch information
Aurelien Jarno authored and NeilBrown committed Nov 19, 2013
1 parent 79ef3a8 commit c0f8bd1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/uapi/linux/raid/md_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#define _MD_P_H

#include <linux/types.h>
#include <asm/byteorder.h>

/*
* RAID superblock.
Expand Down

0 comments on commit c0f8bd1

Please sign in to comment.