summaryrefslogtreecommitdiff
path: root/arch/s390/include/asm/scsw.h
diff options
context:
space:
mode:
authorHeiko Carstens <hca@linux.ibm.com>2024-03-07 15:28:06 +0300
committerHeiko Carstens <hca@linux.ibm.com>2024-03-13 11:23:46 +0300
commit1bcf7f48b7d40547eda6bfd1ea0bfed9cf9ec54f (patch)
treede81b064a81a98e184ec619615e87ef6c7b61c47 /arch/s390/include/asm/scsw.h
parent8b19e145e82f1bf1419541de7ad823f5cb7a4ec3 (diff)
downloadlinux-1bcf7f48b7d40547eda6bfd1ea0bfed9cf9ec54f.tar.xz
s390/cio: use bitwise types to allow for type checking
Change types of I/O structure members which contain physical addresses to dma32_t and dma64_t bitwise types. This allows to make use of sparse (aka "make C=1") to find incorrect usage of physical addresses. Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'arch/s390/include/asm/scsw.h')
-rw-r--r--arch/s390/include/asm/scsw.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/s390/include/asm/scsw.h b/arch/s390/include/asm/scsw.h
index 322bdcd4b616..56003e26cdbf 100644
--- a/arch/s390/include/asm/scsw.h
+++ b/arch/s390/include/asm/scsw.h
@@ -11,6 +11,7 @@
#include <linux/types.h>
#include <asm/css_chars.h>
+#include <asm/dma-types.h>
#include <asm/cio.h>
/**
@@ -53,7 +54,7 @@ struct cmd_scsw {
__u32 fctl : 3;
__u32 actl : 7;
__u32 stctl : 5;
- __u32 cpa;
+ dma32_t cpa;
__u32 dstat : 8;
__u32 cstat : 8;
__u32 count : 16;
@@ -93,7 +94,7 @@ struct tm_scsw {
u32 fctl:3;
u32 actl:7;
u32 stctl:5;
- u32 tcw;
+ dma32_t tcw;
u32 dstat:8;
u32 cstat:8;
u32 fcxs:8;
@@ -125,7 +126,7 @@ struct eadm_scsw {
u32 fctl:3;
u32 actl:7;
u32 stctl:5;
- u32 aob;
+ dma32_t aob;
u32 dstat:8;
u32 cstat:8;
u32:16;