]> Git Repo - linux.git/commit
mm: page_frag: fix a compile error when kernel is not compiled
authorYunsheng Lin <[email protected]>
Tue, 19 Nov 2024 03:30:11 +0000 (11:30 +0800)
committerPaolo Abeni <[email protected]>
Tue, 19 Nov 2024 11:20:40 +0000 (12:20 +0100)
commit96ed62ea02984f14b6d4f2e4aed327d803875b7a
tree493a6e3bdd0dedd6e57791508887a48947e1242f
parenta202e6014709d329346b0766e89f797ef0d1eccf
mm: page_frag: fix a compile error when kernel is not compiled

page_frag test module is an out of tree module, but built
using KDIR as the main kernel tree, the mm test suite is
just getting skipped if newly added page_frag test module
fails to compile due to kernel not yet compiled.

Fix the above problem by ensuring both kernel is built first
and a newer kernel which has page_frag_cache.h is used.

CC: Andrew Morton <[email protected]>
CC: Alexander Duyck <[email protected]>
CC: Linux-MM <[email protected]>
Fixes: 7fef0dec415c ("mm: page_frag: add a test module for page_frag")
Fixes: 65941f10caf2 ("mm: move the page fragment allocator from page_alloc into its own file")
Reported-by: Mark Brown <[email protected]>
Signed-off-by: Yunsheng Lin <[email protected]>
Tested-by: Mark Brown <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Paolo Abeni <[email protected]>
tools/testing/selftests/mm/Makefile
tools/testing/selftests/mm/page_frag/Makefile
This page took 0.065841 seconds and 4 git commands to generate.