]> git.baikalelectronics.ru Git - kernel.git/commit
UAPI: include <asm/byteorder.h> in linux/raid/md_p.h
authorAurelien Jarno <aurelien@aurel32.net>
Thu, 14 Nov 2013 04:16:19 +0000 (15:16 +1100)
committerNeilBrown <neilb@suse.de>
Tue, 19 Nov 2013 04:19:18 +0000 (15:19 +1100)
commitabee9c2039e82ae0228c925d820c5fdf63e27b57
tree1773655dfcc772b43174b85721d889f785ffd779
parente392bfc1d3ad94b1774445ed8d2d5cc893c0d378
UAPI: include <asm/byteorder.h> in linux/raid/md_p.h

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>
include/uapi/linux/raid/md_p.h