userfaultfd: selftest: only warn if __NR_userfaultfd is undefined
authorMichael Ellerman <mpe@ellerman.id.au>
Tue, 22 Sep 2015 21:58:58 +0000 (14:58 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
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 <mpe@ellerman.id.au>
Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Cc: Dr. David Alan Gilbert <dgilbert@redhat.com>
Cc: Shuah Khan <shuahkh@osg.samsung.com>
Cc: Thierry Reding <treding@nvidia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
tools/testing/selftests/vm/userfaultfd.c