Skip to content

Commit

Permalink
m68k/m68knommu: Implement __get_user_unaligned/__put_user_unaligned()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Geert Uytterhoeven committed Sep 10, 2013
1 parent 6e46645 commit 21e884b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions arch/m68k/include/asm/uaccess.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 21e884b

Please sign in to comment.