The patch titled Subject: mempolicy.h: Remove unnecessary header file inclusions has been added to the -mm mm-unstable branch. Its filename is mempolicyh-remove-unnecessary-header-file-inclusions.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mempolicyh-remove-unnecessary-header-file-inclusions.patch This patch will later appear in the mm-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: Junjie Fu <fujunjie1@xxxxxx> Subject: mempolicy.h: Remove unnecessary header file inclusions Date: Fri, 6 Dec 2024 23:53:49 +0800 Originally, linux/mempolicy.h included linux/pagemap.h because vma_migratable() was implemented inline within the header, requiring mapping_gfp_mask() function to implement vma_migratable(). Now that vma_migratable() is only declared in linux/mempolicy.h and its implementation has been moved to mempolicy.c, the inclusion of linux/pagemap.h in the header is no longer necessary. Additionally, since mempolicy.c includes internal.h, and internal.h already includes linux/pagemap.h, so there is no need to modify mempolicy.c after removing the direct inclusion of linux/pagemap.h from linux/mempolicy.h Link: https://lkml.kernel.org/r/tencent_08B979048FE091821B290B18AE97E70DC507@xxxxxx Signed-off-by: Junjie Fu <fujunjie1@xxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/linux/mempolicy.h | 1 - 1 file changed, 1 deletion(-) --- a/include/linux/mempolicy.h~mempolicyh-remove-unnecessary-header-file-inclusions +++ a/include/linux/mempolicy.h @@ -12,7 +12,6 @@ #include <linux/rbtree.h> #include <linux/spinlock.h> #include <linux/nodemask.h> -#include <linux/pagemap.h> #include <uapi/linux/mempolicy.h> struct mm_struct; _ Patches currently in -mm which might be from fujunjie1@xxxxxx are mempolicyh-remove-unnecessary-header-file-inclusions.patch