projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e46645
)
m68k/m68knommu: Implement __get_user_unaligned/__put_user_unaligned()
author
Geert Uytterhoeven
<geert@linux-m68k.org>
Tue, 3 Sep 2013 09:17:25 +0000
(11:17 +0200)
committer
Geert Uytterhoeven
<geert@linux-m68k.org>
Tue, 10 Sep 2013 09:06:17 +0000
(11:06 +0200)
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>
arch/m68k/include/asm/uaccess.h
patch
|
blob
|
history
diff --git
a/arch/m68k/include/asm/uaccess.h
b/arch/m68k/include/asm/uaccess.h
index
639c731
..
3fadc4a
100644
(file)
--- 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