WSL2-Linux-Kernel/drivers/s390
Vasily Gorbik a09baa9543 s390/crypto: fix gcc 8 stringop-truncation warning
Replace strncpy which is used to deliberately avoid string NUL-termination
with memcpy. This allows to get rid of gcc 8 stringop-truncation warning:

    inlined from 'query_crypto_facility.constprop' at
    drivers/s390/crypto/pkey_api.c:702:2:
./include/linux/string.h:246:9: warning: '__builtin_strncpy' output
truncated before terminating nul copying 8 bytes from a string of the
same length [-Wstringop-truncation]

Reviewed-by: Harald Freudenberger <freude@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2018-07-16 15:45:36 +02:00
..
block s390/dasd: fix cast-function-type warnings 2018-07-04 08:35:59 +02:00
char s390/sclp_async: replace callhome proc handler with generic one 2018-07-06 08:47:53 +02:00
cio s390/qdio: reset old sbal_state flags 2018-06-25 10:14:37 +02:00
crypto s390/crypto: fix gcc 8 stringop-truncation warning 2018-07-16 15:45:36 +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