summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/powerpc/mm/Makefile
diff options
context:
space:
mode:
authorDesnes A. Nunes do Rosario <desnesn@linux.ibm.com>2019-10-03 18:10:10 -0300
committerMichael Ellerman <mpe@ellerman.id.au>2019-10-09 17:16:59 +1100
commit5b216ea1c40cf06eead15054c70e238c9bd4729e (patch)
tree663b059fff3b304a058059aea48efc22143e2d44 /tools/testing/selftests/powerpc/mm/Makefile
parent4ab8a485f7bc69e04e3e8d75f62bdcac5f4ed02e (diff)
selftests/powerpc: Fix compile error on tlbie_test due to newer gcc
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 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
Diffstat (limited to 'tools/testing/selftests/powerpc/mm/Makefile')
0 files changed, 0 insertions, 0 deletions