summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorVasily Gorbik <gor@linux.ibm.com>2018-06-28 13:33:35 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2018-07-16 15:45:36 +0200
commita09baa9543ef1ced2cc7c171a055712ec8af62a3 (patch)
treec31b814df144504baca0e282717aa7436bf9ed7c /arch
parent9dcc7570b06836a9aa497bb921ff73c6b319d94c (diff)
downloadlinux-stable-a09baa9543ef1ced2cc7c171a055712ec8af62a3.tar.gz
linux-stable-a09baa9543ef1ced2cc7c171a055712ec8af62a3.tar.bz2
linux-stable-a09baa9543ef1ced2cc7c171a055712ec8af62a3.zip
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>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions