summaryrefslogtreecommitdiff
path: root/arch/m68k
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2013-09-03 13:17:25 +0400
committerGeert Uytterhoeven <geert@linux-m68k.org>2013-09-10 13:06:17 +0400
commit21e884bafa039fab0facd327c9380b58151e73f2 (patch)
treec1fd7da5995de3f35ea90d71b00b30a1c6d79890 /arch/m68k
parent6e4664525b1db28f8c4e1130957f70a94c19213e (diff)
downloadlinux-21e884bafa039fab0facd327c9380b58151e73f2.tar.xz
m68k/m68knommu: Implement __get_user_unaligned/__put_user_unaligned()
fs/btrfs/ioctl.c: In function ‘btrfs_ioctl_file_extent_same’: fs/btrfs/ioctl.c:2802: error: implicit declaration of function ‘__put_user_unaligned’ Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'arch/m68k')
-rw-r--r--arch/m68k/include/asm/uaccess.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/m68k/include/asm/uaccess.h b/arch/m68k/include/asm/uaccess.h
index 639c731568b0..3fadc4a93d97 100644
--- a/arch/m68k/include/asm/uaccess.h
+++ b/arch/m68k/include/asm/uaccess.h
@@ -3,3 +3,10 @@
#else
#include <asm/uaccess_mm.h>
#endif
+
+#ifdef CONFIG_CPU_HAS_NO_UNALIGNED
+#include <asm-generic/uaccess-unaligned.h>
+#else
+#define __get_user_unaligned(x, ptr) __get_user((x), (ptr))
+#define __put_user_unaligned(x, ptr) __put_user((x), (ptr))
+#endif