Browse Source

s390/uprobes: fix address space annotation

Remove __user address space annotation for sim_stor_event() calls since it
generates false positive warnings from sparse.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Heiko Carstens 10 năm trước cách đây
mục cha
commit
9f9d86e1e9
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      arch/s390/kernel/uprobes.c

+ 3 - 1
arch/s390/kernel/uprobes.c

@@ -188,7 +188,9 @@ static void adjust_psw_addr(psw_t *psw, unsigned long len)
 	else if (put_user(*(input), __ptr))		\
 		__rc = EMU_ADDRESSING;			\
 	if (__rc == 0)					\
-		sim_stor_event(regs, __ptr, mask + 1);	\
+		sim_stor_event(regs,			\
+			       (void __force *)__ptr,	\
+			       mask + 1);		\
 	__rc;						\
 })