Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+2 -2
+2 -2
drivers/s390/char/con3215.c
··· 159 159 ccw->cmd_code = 0x0A; /* read inquiry */ 160 160 ccw->flags = 0x20; /* ignore incorrect length */ 161 161 ccw->count = 160; 162 - ccw->cda = (__u32)__pa(raw->inbuf); 162 + ccw->cda = virt_to_dma32(raw->inbuf); 163 163 } 164 164 165 165 /* ··· 218 218 ccw[-1].flags |= 0x40; /* use command chaining */ 219 219 ccw->cmd_code = 0x01; /* write, auto carrier return */ 220 220 ccw->flags = 0x20; /* ignore incorrect length ind. */ 221 - ccw->cda = (__u32)__pa(raw->buffer + ix); 221 + ccw->cda = virt_to_dma32(raw->buffer + ix); 222 222 count = len; 223 223 if (ix + count > RAW3215_BUFFER_SIZE) 224 224 count = RAW3215_BUFFER_SIZE - ix;