diff options
author | Akira Takeuchi <takeuchi.akr@jp.panasonic.com> | 2013-06-28 17:53:01 +0200 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2013-06-28 17:53:01 +0200 |
commit | c6dc9f0a4eeb7c014904475372c66e6d0ac5a572 (patch) | |
tree | d97a2ca85db1e46820cee0fc3a48bd3db1ad4bec /arch/mn10300 | |
parent | Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net (diff) | |
download | linux-c6dc9f0a4eeb7c014904475372c66e6d0ac5a572.tar.xz linux-c6dc9f0a4eeb7c014904475372c66e6d0ac5a572.zip |
mn10300: Allow to pass array name to get_user()
This fixes the following compile error:
CC block/scsi_ioctl.o
block/scsi_ioctl.c: In function 'sg_scsi_ioctl':
block/scsi_ioctl.c:449: error: invalid initializer
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'arch/mn10300')
-rw-r--r-- | arch/mn10300/include/asm/uaccess.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mn10300/include/asm/uaccess.h b/arch/mn10300/include/asm/uaccess.h index 780560b330d9..d7966e0f7698 100644 --- a/arch/mn10300/include/asm/uaccess.h +++ b/arch/mn10300/include/asm/uaccess.h @@ -161,7 +161,7 @@ struct __large_struct { unsigned long buf[100]; }; #define __get_user_check(x, ptr, size) \ ({ \ - const __typeof__(ptr) __guc_ptr = (ptr); \ + const __typeof__(*(ptr))* __guc_ptr = (ptr); \ int _e; \ if (likely(__access_ok((unsigned long) __guc_ptr, (size)))) \ _e = __get_user_nocheck((x), __guc_ptr, (size)); \ |