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>
This commit is contained in:
Geert Uytterhoeven 2013-09-03 11:17:25 +02:00
parent 6e4664525b
commit 21e884bafa
1 changed files with 7 additions and 0 deletions

View File

@ -3,3 +3,10 @@
#else #else
#include <asm/uaccess_mm.h> #include <asm/uaccess_mm.h>
#endif #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