Skip to content

Commit

Permalink
mm: fixup compilation error due to an asm write through a const pointer
Browse files Browse the repository at this point in the history
This regression has been introduced in

commit f56f821
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>
  • Loading branch information
Daniel Vetter authored and Dave Airlie committed Apr 23, 2012
1 parent 8353e6c commit 9923777
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/pagemap.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9923777

Please sign in to comment.