summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorDesnes A. Nunes do Rosario <desnesn@linux.ibm.com>2019-10-17 13:35:05 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-11-10 11:25:42 +0100
commit158807d914dd4e43c2b2f420f26297785369b197 (patch)
tree35ea8e67a4a5ea2316f540fcb765174f322769f9 /kernel
parent5fda11bacfac1b72b0f241a76fad16ded2439ee9 (diff)
downloadlinux-stable-158807d914dd4e43c2b2f420f26297785369b197.tar.gz
linux-stable-158807d914dd4e43c2b2f420f26297785369b197.tar.bz2
linux-stable-158807d914dd4e43c2b2f420f26297785369b197.zip
selftests/powerpc: Fix compile error on tlbie_test due to newer gcc
commit 5b216ea1c40cf06eead15054c70e238c9bd4729e upstream. Newer versions of GCC (>= 9) demand that the size of the string to be copied must be explicitly smaller than the size of the destination. Thus, the NULL char has to be taken into account on strncpy. This will avoid the following compiling error: tlbie_test.c: In function 'main': tlbie_test.c:639:4: error: 'strncpy' specified bound 100 equals destination size strncpy(logdir, optarg, LOGDIR_NAME_SIZE); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors Cc: stable@vger.kernel.org # v4.14 Signed-off-by: Desnes A. Nunes do Rosario <desnesn@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20191003211010.9711-1-desnesn@linux.ibm.com [sandipan: Backported to v4.14] Signed-off-by: Sandipan Das <sandipan@linux.ibm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions