linux_dsm_epyc7002/drivers/s390
Vasily Gorbik 9acdb3bb07 s390/monwriter: fix gcc 8 stringop-truncation warning
The following gcc warning is issued for strncpy which is used to
deliberately avoid string NUL-termination. Reuse memcpy to avoid the
warning.

    inlined from 'monwrite_diag' at drivers/s390/char/monwriter.c:64:2:
./include/linux/string.h:246:9: warning: '__builtin_strncpy' output
truncated before terminating nul copying 7 bytes from a string of the
same length [-Wstringop-truncation]

Reviewed-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2018-07-02 11:25:03 +02:00
..
block s390/dasd: fix gcc 8 stringop-truncation warning 2018-07-02 11:24:53 +02:00
char s390/monwriter: fix gcc 8 stringop-truncation warning 2018-07-02 11:25:03 +02:00
cio s390/qdio: reset old sbal_state flags 2018-06-25 10:14:37 +02:00
crypto s390/zcrypt: add copy_from_user length plausibility checks 2018-07-02 11:24:55 +02:00
net treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
scsi s390/dasd,zfcp: fix gcc 8 stringop-truncation warnings 2018-07-02 11:24:52 +02:00
virtio virtio/s390: implement PM operations for virtio_ccw 2018-02-14 14:34:09 +02:00
Makefile kbuild: rename built-in.o to built-in.a 2018-03-26 02:01:19 +09:00