Skip to content

Commit e6ccda5

Browse files
committed
s390/3215: use new address translation helpers
Use virt_to_dma32() and friends to properly convert virtual to physical and physical to virtual addresses so that "make C=1" does not generate any warnings anymore. Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
1 parent f869763 commit e6ccda5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/s390/char/con3215.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ static void raw3215_mk_read_req(struct raw3215_info *raw)
159159
ccw->cmd_code = 0x0A; /* read inquiry */
160160
ccw->flags = 0x20; /* ignore incorrect length */
161161
ccw->count = 160;
162-
ccw->cda = (__u32)__pa(raw->inbuf);
162+
ccw->cda = virt_to_dma32(raw->inbuf);
163163
}
164164

165165
/*
@@ -218,7 +218,7 @@ static void raw3215_mk_write_req(struct raw3215_info *raw)
218218
ccw[-1].flags |= 0x40; /* use command chaining */
219219
ccw->cmd_code = 0x01; /* write, auto carrier return */
220220
ccw->flags = 0x20; /* ignore incorrect length ind. */
221-
ccw->cda = (__u32)__pa(raw->buffer + ix);
221+
ccw->cda = virt_to_dma32(raw->buffer + ix);
222222
count = len;
223223
if (ix + count > RAW3215_BUFFER_SIZE)
224224
count = RAW3215_BUFFER_SIZE - ix;

0 commit comments

Comments
 (0)