summaryrefslogtreecommitdiffstats
path: root/lib/klist.c
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2018-02-26 15:22:22 +1100
committerMichael Ellerman <mpe@ellerman.id.au>2018-03-02 11:37:04 +1100
commitcd4a6f3ab4d80cb919d15897eb3cbc85c2009d4b (patch)
tree43faf9b8906c7cc12ed01e060c856876e833e176 /lib/klist.c
parentb7abbd5a3533a31a1e7d4696ea275df543440c51 (diff)
downloadlinux-stable-cd4a6f3ab4d80cb919d15897eb3cbc85c2009d4b.tar.gz
linux-stable-cd4a6f3ab4d80cb919d15897eb3cbc85c2009d4b.tar.bz2
linux-stable-cd4a6f3ab4d80cb919d15897eb3cbc85c2009d4b.zip
selftests/powerpc: Skip the subpage_prot tests if the syscall is unavailable
The subpage_prot syscall is only functional when the system is using the Hash MMU. Since commit 5b2b80714796 ("powerpc/mm: Invalidate subpage_prot() system call on radix platforms") it returns ENOENT when the Radix MMU is active. Currently this just makes the test fail. Additionally the syscall is not available if the kernel is built with 4K pages, or if CONFIG_PPC_SUBPAGE_PROT=n, in which case it returns ENOSYS because the syscall is missing entirely. So check explicitly for ENOENT and ENOSYS and skip if we see either of those. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'lib/klist.c')
0 files changed, 0 insertions, 0 deletions