diff options
author | Kees Cook <kees@kernel.org> | 2024-06-19 22:25:17 +0200 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2024-07-02 18:11:40 +0200 |
commit | 4d6cf248325f686f256f2446f3f9d5fbab6e4356 (patch) | |
tree | a1425c854d4365cb9a37479ce979115a6d28fe1c /mm/util.c | |
parent | usercopy: Convert test_user_copy to KUnit test (diff) | |
download | linux-4d6cf248325f686f256f2446f3f9d5fbab6e4356.tar.xz linux-4d6cf248325f686f256f2446f3f9d5fbab6e4356.zip |
kunit/usercopy: Disable testing on !CONFIG_MMU
Since arch_pick_mmap_layout() is an inline for non-MMU systems, disable
this test there.
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202406160505.uBge6TMY-lkp@intel.com/
Signed-off-by: Kees Cook <kees@kernel.org>
Reviewed-by: Rae Moar <rmoar@google.com>
Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'mm/util.c')
-rw-r--r-- | mm/util.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/util.c b/mm/util.c index df37c47d9374..e70e8e439258 100644 --- a/mm/util.c +++ b/mm/util.c @@ -484,7 +484,9 @@ void arch_pick_mmap_layout(struct mm_struct *mm, struct rlimit *rlim_stack) clear_bit(MMF_TOPDOWN, &mm->flags); } #endif +#ifdef CONFIG_MMU EXPORT_SYMBOL_IF_KUNIT(arch_pick_mmap_layout); +#endif /** * __account_locked_vm - account locked pages to an mm's locked_vm |