The patch titled Subject: frontswap: remove the frontswap exports has been added to the -mm tree. Its filename is frontswap-remove-the-frontswap-exports.patch This patch should soon appear at https://ozlabs.org/~akpm/mmots/broken-out/frontswap-remove-the-frontswap-exports.patch and later at https://ozlabs.org/~akpm/mmotm/broken-out/frontswap-remove-the-frontswap-exports.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/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Christoph Hellwig <hch@xxxxxx> Subject: frontswap: remove the frontswap exports None of the frontswap API is called from modular code. Link: https://lkml.kernel.org/r/20211224062246.1258487-8-hch@xxxxxx Signed-off-by: Christoph Hellwig <hch@xxxxxx> Reviewed-by: Juergen Gross <jgross@xxxxxxxx> Cc: Dan Streetman <ddstreet@xxxxxxxx> Cc: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> Cc: Hugh Dickins <hughd@xxxxxxxxxx> Cc: Konrad Rzeszutek Wilk <Konrad.wilk@xxxxxxxxxx> Cc: Matthew Wilcox (Oracle) <willy@xxxxxxxxxxxxx> Cc: Seth Jennings <sjenning@xxxxxxxxxx> Cc: Vitaly Wool <vitaly.wool@xxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/frontswap.c | 6 ------ 1 file changed, 6 deletions(-) --- a/mm/frontswap.c~frontswap-remove-the-frontswap-exports +++ a/mm/frontswap.c @@ -151,7 +151,6 @@ void frontswap_register_ops(struct front } } } -EXPORT_SYMBOL(frontswap_register_ops); /* * Called when a swap device is swapon'd. @@ -187,7 +186,6 @@ bool __frontswap_test(struct swap_info_s return test_bit(offset, sis->frontswap_map); return false; } -EXPORT_SYMBOL(__frontswap_test); static inline void __frontswap_set(struct swap_info_struct *sis, pgoff_t offset) @@ -250,7 +248,6 @@ int __frontswap_store(struct page *page) return ret; } -EXPORT_SYMBOL(__frontswap_store); /* * "Get" data from frontswap associated with swaptype and offset that were @@ -283,7 +280,6 @@ int __frontswap_load(struct page *page) inc_frontswap_loads(); return ret; } -EXPORT_SYMBOL(__frontswap_load); /* * Invalidate any data from frontswap associated with the specified swaptype @@ -305,7 +301,6 @@ void __frontswap_invalidate_page(unsigne __frontswap_clear(sis, offset); inc_frontswap_invalidates(); } -EXPORT_SYMBOL(__frontswap_invalidate_page); /* * Invalidate all data from frontswap associated with all offsets for the @@ -327,7 +322,6 @@ void __frontswap_invalidate_area(unsigne atomic_set(&sis->frontswap_pages, 0); bitmap_zero(sis->frontswap_map, sis->max); } -EXPORT_SYMBOL(__frontswap_invalidate_area); static int __init init_frontswap(void) { _ Patches currently in -mm which might be from hch@xxxxxx are mm-remove-cleancache.patch frontswap-remove-frontswap_writethrough.patch frontswap-remove-frontswap_tmem_exclusive_gets.patch frontswap-remove-frontswap_shrink.patch frontswap-remove-frontswap_curr_pages.patch frontswap-simplify-frontswap_init.patch frontswap-remove-the-frontswap-exports.patch mm-simplify-try_to_unuse.patch frontswap-remove-frontswap_test.patch frontswap-simplify-frontswap_register_ops.patch mm-mark-swap_lock-and-swap_active_head-static.patch frontswap-remove-support-for-multiple-ops.patch mm-hide-the-frontswap-kconfig-symbol.patch