The patch titled Subject: mm: thp: fix build of reuse_swap_page with CONFIG_SWAP=n has been added to the -mm tree. Its filename is mm-thp-calculate-the-mapcount-correctly-for-thp-pages-during-wp-faults-fix.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-thp-calculate-the-mapcount-correctly-for-thp-pages-during-wp-faults-fix.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-thp-calculate-the-mapcount-correctly-for-thp-pages-during-wp-faults-fix.patch 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/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Andrea Arcangeli <aarcange@xxxxxxxxxx> Subject: mm: thp: fix build of reuse_swap_page with CONFIG_SWAP=n page_trans_huge_compound is inline defined in mm.h. reuse_swap_page is calling page_trans_huge_compound in swap.h which included early on by mm.h before page_trans_huge_compound is defined. This is why reuse_swap_page was a preprocessor macro, so make it a preprocessor macro again. Signed-off-by: Andrea Arcangeli <aarcange@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/linux/swap.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff -puN include/linux/swap.h~mm-thp-calculate-the-mapcount-correctly-for-thp-pages-during-wp-faults-fix include/linux/swap.h --- a/include/linux/swap.h~mm-thp-calculate-the-mapcount-correctly-for-thp-pages-during-wp-faults-fix +++ a/include/linux/swap.h @@ -513,10 +513,8 @@ static inline int swp_swapcount(swp_entr return 0; } -static inline bool reuse_swap_page(struct page *page, int *total_mapcount) -{ - return page_trans_huge_mapcount(page, total_mapcount) == 1; -} +#define reuse_swap_page(page, total_mapcount) \ + (page_trans_huge_mapcount(page, total_mapcount) == 1) static inline int try_to_free_swap(struct page *page) { _ Patches currently in -mm which might be from aarcange@xxxxxxxxxx are mm-thp-calculate-the-mapcount-correctly-for-thp-pages-during-wp-faults.patch mm-thp-calculate-the-mapcount-correctly-for-thp-pages-during-wp-faults-fix.patch mm-thp-microoptimize-compound_mapcount.patch mm-thp-split_huge_pmd_address-comment-improvement.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html