ARM: 7836/1: add __get_user_unaligned/__put_user_unaligned
authorNicolas Pitre <nicolas.pitre@linaro.org>
Tue, 17 Sep 2013 18:16:38 +0000 (19:16 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 18 Sep 2013 09:58:23 +0000 (10:58 +0100)
BTRFS is now relying on those since v3.12-rc1.

Signed-off-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/uaccess.h

index 7e1f760..72abdc5 100644 (file)
 #include <asm/unified.h>
 #include <asm/compiler.h>
 
+#if __LINUX_ARM_ARCH__ < 6
+#include <asm-generic/uaccess-unaligned.h>
+#else
+#define __get_user_unaligned __get_user
+#define __put_user_unaligned __put_user
+#endif
+
 #define VERIFY_READ 0
 #define VERIFY_WRITE 1