]> git.baikalelectronics.ru Git - kernel.git/commit
userfaultfd: selftest: don't error out if pthread_mutex_t isn't identical
authorAndrea Arcangeli <aarcange@redhat.com>
Tue, 22 Sep 2015 21:59:06 +0000 (14:59 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 22 Sep 2015 22:09:53 +0000 (15:09 -0700)
commitd4692ec723c95d1dfff1740566294c701eda24a6
tree6af78dda3dbc9b5f3d0ecca8dc5768209efcb189
parent77a2a4338a3f3005976d880d0e53449ce96acc37
userfaultfd: selftest: don't error out if pthread_mutex_t isn't identical

On ppc big endian this check fails, the mutex doesn't necessarily need
to be identical for all pages after pthread_mutex_lock/unlock cycles.
The count verification (outside of the pthread_mutex_t structure)
suffices and that is retained.

Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Cc: Dr. David Alan Gilbert <dgilbert@redhat.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
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