summaryrefslogtreecommitdiffstats
path: root/Documentation/mic
diff options
context:
space:
mode:
authorPeter Foley <pefoley2@pefoley.com>2014-09-25 11:23:32 -0700
committerJiri Kosina <jkosina@suse.cz>2014-09-26 11:02:58 +0200
commit8c2b0dc83d9840da4d993a5dbb15c5974ad5a188 (patch)
treed1750009baa6051f3aec12087baad8700af7e3b5 /Documentation/mic
parent19f94f97003a70a5241efff035f6c181c290a799 (diff)
downloadop-kernel-dev-8c2b0dc83d9840da4d993a5dbb15c5974ad5a188.zip
op-kernel-dev-8c2b0dc83d9840da4d993a5dbb15c5974ad5a188.tar.gz
Documentation: support glibc versions without htole macros
glibc 2.9 introduced the htole<16/32/64> macros, add them to tools/include to support older versions of glibc. Reported-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Peter Foley <pefoley2@pefoley.com> Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'Documentation/mic')
-rw-r--r--Documentation/mic/mpssd/Makefile2
-rw-r--r--Documentation/mic/mpssd/mpssd.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/Documentation/mic/mpssd/Makefile b/Documentation/mic/mpssd/Makefile
index aaa89d1..505d84f18 100644
--- a/Documentation/mic/mpssd/Makefile
+++ b/Documentation/mic/mpssd/Makefile
@@ -6,7 +6,7 @@ mpssd-objs := mpssd.o sysfs.o
# Tell kbuild to always build the programs
always := $(hostprogs-y)
-HOSTCFLAGS_mpssd.o += -I$(objtree)/usr/include
+HOSTCFLAGS_mpssd.o += -I$(objtree)/usr/include -I$(srctree)/tools/include
ifdef DEBUG
HOSTCFLAGS += -DDEBUG=$(DEBUG)
diff --git a/Documentation/mic/mpssd/mpssd.c b/Documentation/mic/mpssd/mpssd.c
index 24203dd..3c5c379 100644
--- a/Documentation/mic/mpssd/mpssd.c
+++ b/Documentation/mic/mpssd/mpssd.c
@@ -41,6 +41,7 @@
#include "mpssd.h"
#include <linux/mic_ioctl.h>
#include <linux/mic_common.h>
+#include <tools/endian.h>
static void init_mic(struct mic_info *mic);
OpenPOWER on IntegriCloud