diff options
author | Terry Tritton <terry.tritton@linaro.org> | 2024-02-05 14:50:56 +0000 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2024-02-20 14:20:48 -0800 |
commit | 7efa6f2c803366f84c3c362f01e822490669d72b (patch) | |
tree | 72336a0315999397d6fc84e3e224e002a67f4b68 /tools/testing/radix-tree/Makefile | |
parent | e9e3db69966d5e9e6f7e7d017b407c0025180fe5 (diff) | |
download | linux-stable-7efa6f2c803366f84c3c362f01e822490669d72b.tar.gz linux-stable-7efa6f2c803366f84c3c362f01e822490669d72b.tar.bz2 linux-stable-7efa6f2c803366f84c3c362f01e822490669d72b.zip |
selftests/mm: uffd-unit-test check if huge page size is 0
If HUGETLBFS is not enabled then the default_huge_page_size function will
return 0 and cause a divide by 0 error. Add a check to see if the huge page
size is 0 and skip the hugetlb tests if it is.
Link: https://lkml.kernel.org/r/20240205145055.3545806-2-terry.tritton@linaro.org
Fixes: 16a45b57cbf2 ("selftests/mm: add framework for uffd-unit-test")
Signed-off-by: Terry Tritton <terry.tritton@linaro.org>
Cc: Peter Griffin <peter.griffin@linaro.org>
Cc: Shuah Khan <shuah@kernel.org>
Cc: Peter Xu <peterx@redhat.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/testing/radix-tree/Makefile')
0 files changed, 0 insertions, 0 deletions