Commit 88856d67 authored by Paul Mundt's avatar Paul Mundt

sh: Fix up uaccess_64 put/get_user() cast warnings.

Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 1bec157a
...@@ -26,16 +26,20 @@ do { \ ...@@ -26,16 +26,20 @@ do { \
retval = 0; \ retval = 0; \
switch (size) { \ switch (size) { \
case 1: \ case 1: \
retval = __get_user_asm_b(x, ptr); \ retval = __get_user_asm_b((void *)&x, \
(long)ptr); \
break; \ break; \
case 2: \ case 2: \
retval = __get_user_asm_w(x, ptr); \ retval = __get_user_asm_w((void *)&x, \
(long)ptr); \
break; \ break; \
case 4: \ case 4: \
retval = __get_user_asm_l(x, ptr); \ retval = __get_user_asm_l((void *)&x, \
(long)ptr); \
break; \ break; \
case 8: \ case 8: \
retval = __get_user_asm_q(x, ptr); \ retval = __get_user_asm_q((void *)&x, \
(long)ptr); \
break; \ break; \
default: \ default: \
__get_user_unknown(); \ __get_user_unknown(); \
...@@ -54,16 +58,20 @@ do { \ ...@@ -54,16 +58,20 @@ do { \
retval = 0; \ retval = 0; \
switch (size) { \ switch (size) { \
case 1: \ case 1: \
retval = __put_user_asm_b(x, ptr); \ retval = __put_user_asm_b((void *)&x, \
(long)ptr); \
break; \ break; \
case 2: \ case 2: \
retval = __put_user_asm_w(x, ptr); \ retval = __put_user_asm_w((void *)&x, \
(long)ptr); \
break; \ break; \
case 4: \ case 4: \
retval = __put_user_asm_l(x, ptr); \ retval = __put_user_asm_l((void *)&x, \
(long)ptr); \
break; \ break; \
case 8: \ case 8: \
retval = __put_user_asm_q(x, ptr); \ retval = __put_user_asm_q((void *)&x, \
(long)ptr); \
break; \ break; \
default: \ default: \
__put_user_unknown(); \ __put_user_unknown(); \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment