summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2012-04-14 18:03:10 +0200
committerDave Airlie <airlied@redhat.com>2012-04-23 17:41:18 +0100
commit9923777dff4543050fdf938cf6b19f6d4376b7c5 (patch)
treea51131ecfe7212f81c42f1a21bf0ff29c0719892
parent8353e6c632aeaea1470a286b83e68ca233073068 (diff)
downloadlinux-9923777dff4543050fdf938cf6b19f6d4376b7c5.tar.gz
linux-9923777dff4543050fdf938cf6b19f6d4376b7c5.tar.bz2
linux-9923777dff4543050fdf938cf6b19f6d4376b7c5.zip
mm: fixup compilation error due to an asm write through a const pointer
This regression has been introduced in commit f56f821feb7b36223f309e0ec05986bb137ce418 Author: Daniel Vetter <daniel.vetter@ffwll.ch> Date: Sun Mar 25 19:47:41 2012 +0200 mm: extend prefault helpers to fault in more than PAGE_SIZE I have failed to notice this because x86 asm seems to happily compile things as-is. Reported-by: Geert Uytterhoeven <geert@linux-m68k.org Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r--include/linux/pagemap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h
index c93a9a9bcd35..efa26b4da8d2 100644
--- a/include/linux/pagemap.h
+++ b/include/linux/pagemap.h
@@ -461,7 +461,7 @@ static inline int fault_in_pages_readable(const char __user *uaddr, int size)
static inline int fault_in_multipages_writeable(char __user *uaddr, int size)
{
int ret;
- const char __user *end = uaddr + size - 1;
+ char __user *end = uaddr + size - 1;
if (unlikely(size == 0))
return 0;