selftests/powerpc: Allow the tm-syscall test to build with old headers
authorMichael Ellerman <mpe@ellerman.id.au>
Thu, 15 Oct 2015 00:39:28 +0000 (11:39 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 15 Oct 2015 09:32:04 +0000 (20:32 +1100)
commit20d09927e669b7e92795c804a3cf82d6c4f3c909
treeb68e6dc550b76a5b0b9a47042e0609c9d00da15a
parent65b6ba6359eefe5560565af2a0e3b06ec6a0f30e
selftests/powerpc: Allow the tm-syscall test to build with old headers

When building against older kernel headers, currently the tm-syscall
test fails to build because PPC_FEATURE2_HTM_NOSC is not defined.

Tweak the test so that if PPC_FEATURE2_HTM_NOSC is not defined it still
builds, but prints a warning at run time and marks the test as skipped.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
tools/testing/selftests/powerpc/tm/tm-syscall.c