summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arch/s390/include/asm/ctlreg.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/s390/include/asm/ctlreg.h b/arch/s390/include/asm/ctlreg.h
index e60c672ffb9c..a49459adba9d 100644
--- a/arch/s390/include/asm/ctlreg.h
+++ b/arch/s390/include/asm/ctlreg.h
@@ -45,6 +45,7 @@
\
_esize = (_high - _low + 1) * sizeof(unsigned long); \
BUILD_BUG_ON(sizeof(struct addrtype) != _esize); \
+ typecheck(unsigned long, array[0]); \
asm volatile( \
" lctlg %[_low],%[_high],%[_arr]\n" \
: \
@@ -63,6 +64,7 @@
\
_esize = (_high - _low + 1) * sizeof(unsigned long); \
BUILD_BUG_ON(sizeof(struct addrtype) != _esize); \
+ typecheck(unsigned long, array[0]); \
asm volatile( \
" stctg %[_low],%[_high],%[_arr]\n" \
: [_arr] "=Q" (*(struct addrtype *)(&array)) \