]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit54d3f5c99de5d971da1c620db66153f661262573
treeb68e6dc550b76a5b0b9a47042e0609c9d00da15a
parent97c19e2e7b502822bac34e997bbf855807a064b7
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