add include/asm-m68k/unaligned.h
authorWolfgang Wegner <w.wegner@astro-kom.de>
Wed, 9 Dec 2009 22:32:12 +0000 (17:32 -0500)
committerTsiChung Liew <tsicliew@gmail.com>
Thu, 4 Mar 2010 07:45:38 +0000 (01:45 -0600)
lib_generic/zlib.c needs include/asm/unaligned.h since commit
cd514aeb996e2f7aefbe1f78481965d9d074aed4, which broke compilation for
Coldfire/M68K. This patch adds the missing header for these
architectures.

Signed-off-by: Wolfgang Wegner <w.wegner at astro-kom.de>
include/asm-m68k/unaligned.h [new file with mode: 0644]

diff --git a/include/asm-m68k/unaligned.h b/include/asm-m68k/unaligned.h
new file mode 100644 (file)
index 0000000..328aa0c
--- /dev/null
@@ -0,0 +1,15 @@
+#ifndef _ASM_M68K_UNALIGNED_H
+#define _ASM_M68K_UNALIGNED_H
+
+#ifdef CONFIG_COLDFIRE
+#include <linux/unaligned/be_byteshift.h>
+#else
+#include <linux/unaligned/access_ok.h>
+#endif
+
+#include <linux/unaligned/generic.h>
+
+#define get_unaligned  __get_unaligned_be
+#define put_unaligned  __put_unaligned_be
+
+#endif /* _ASM_M68K_UNALIGNED_H */