diff options
author | 2021-11-05 13:42:07 -0700 | |
---|---|---|
committer | 2021-11-06 13:30:39 -0700 | |
commit | 1c10e674b35e2c2566b621ceca74064817c249f0 (patch) | |
tree | 2d2e008144beb292fc9281859eee3fa2e0f34426 /mm/backing-dev.c | |
parent | hugetlb: remove unnecessary set_page_count in prep_compound_gigantic_page (diff) | |
download | wireguard-linux-1c10e674b35e2c2566b621ceca74064817c249f0.tar.xz wireguard-linux-1c10e674b35e2c2566b621ceca74064817c249f0.zip |
userfaultfd/selftests: don't rely on GNU extensions for random numbers
Patch series "Small userfaultfd selftest fixups", v2.
This patch (of 3):
Two arguments for doing this:
First, and maybe most importantly, the resulting code is significantly
shorter / simpler.
Then, we avoid using GNU libc extensions. Why does this matter? It
makes testing userfaultfd with the selftest easier e.g. on distros
which use something other than glibc (e.g., Alpine, which uses musl);
basically, it makes the test more portable.
Link: https://lkml.kernel.org/r/20210930212309.4001967-2-axelrasmussen@google.com
Signed-off-by: Axel Rasmussen <axelrasmussen@google.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/backing-dev.c')
0 files changed, 0 insertions, 0 deletions