On Wed, Aug 19, 2020 at 07:48:43PM +0100, Matthew Wilcox (Oracle) wrote: > Provide this functionality from the swap cache. It's useful for > more than just mincore(). The build bot showed I was missing this for some configs: diff --git a/mm/swap_state.c b/mm/swap_state.c index 986b4e3d3bad..92a1f40be589 100644 --- a/mm/swap_state.c +++ b/mm/swap_state.c @@ -21,6 +21,7 @@ #include <linux/vmalloc.h> #include <linux/swap_slots.h> #include <linux/huge_mm.h> +#include <linux/shmem_fs.h> #include "internal.h" /* I'll wait for more feedback before reposting the series in ~24 hours.