From: Geert Uytterhoeven Date: Tue, 3 Sep 2013 09:17:25 +0000 (+0200) Subject: m68k/m68knommu: Implement __get_user_unaligned/__put_user_unaligned() X-Git-Tag: firefly_0821_release~176^2~5041^2~1 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=21e884bafa039fab0facd327c9380b58151e73f2;p=firefly-linux-kernel-4.4.55.git 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 --- 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 #endif + +#ifdef CONFIG_CPU_HAS_NO_UNALIGNED +#include +#else +#define __get_user_unaligned(x, ptr) __get_user((x), (ptr)) +#define __put_user_unaligned(x, ptr) __put_user((x), (ptr)) +#endif