userfaultfd: selftest: only warn if __NR_userfaultfd is undefined
authorMichael Ellerman <[email protected]>
Tue, 22 Sep 2015 21:58:58 +0000 (14:58 -0700)
committerLinus Torvalds <[email protected]>
Tue, 22 Sep 2015 22:09:53 +0000 (15:09 -0700)
commit56ed8f169e225dce1f9e40f6eee2e2dabe7d06fc
tree6ecc1d7d2eaec950afcc43130565fa0daecce574
parent67f6a029b2ccf3399783a0ff2f812666f290d94f
userfaultfd: selftest: only warn if __NR_userfaultfd is undefined

If __NR_userfaultfd is not yet defined by the arch, warn but still build
and run the userfaultfd selftest successfully.

Signed-off-by: Michael Ellerman <[email protected]>
Signed-off-by: Andrea Arcangeli <[email protected]>
Cc: Dr. David Alan Gilbert <[email protected]>
Cc: Shuah Khan <[email protected]>
Cc: Thierry Reding <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
tools/testing/selftests/vm/userfaultfd.c