The patch titled Subject: include/linux/mmzone.h: remove unused early_pfn_valid() has been added to the -mm tree. Its filename is mm-remove-unused-early_pfn_valid.patch This patch should soon appear at https://ozlabs.org/~akpm/mmots/broken-out/mm-remove-unused-early_pfn_valid.patch and later at https://ozlabs.org/~akpm/mmotm/broken-out/mm-remove-unused-early_pfn_valid.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: Mike Rapoport <rppt@xxxxxxxxxxxxx> Subject: include/linux/mmzone.h: remove unused early_pfn_valid() The early_pfn_valid() macro is defined but it is never used. Remove it. Link: https://lkml.kernel.org/r/20200923162915.26935-1-rppt@xxxxxxxxxx Signed-off-by: Mike Rapoport <rppt@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/linux/mmzone.h | 5 ----- 1 file changed, 5 deletions(-) --- a/include/linux/mmzone.h~mm-remove-unused-early_pfn_valid +++ a/include/linux/mmzone.h @@ -1420,7 +1420,6 @@ static inline unsigned long next_present #define pfn_to_nid(pfn) (0) #endif -#define early_pfn_valid(pfn) pfn_valid(pfn) void sparse_init(void); #else #define sparse_init() do {} while (0) @@ -1440,10 +1439,6 @@ struct mminit_pfnnid_cache { int last_nid; }; -#ifndef early_pfn_valid -#define early_pfn_valid(pfn) (1) -#endif - /* * If it is possible to have holes within a MAX_ORDER_NR_PAGES, then we * need to check pfn validity within that MAX_ORDER_NR_PAGES block. _ Patches currently in -mm which might be from rppt@xxxxxxxxxxxxx are mm-account-pmd-tables-like-pte-tables-fix.patch kvm-ppc-book3s-hv-simplify-kvm_cma_reserve.patch dma-contiguous-simplify-cma_early_percent_memory.patch arm-xtensa-simplify-initialization-of-high-memory-pages.patch arm64-numa-simplify-dummy_numa_init.patch h8300-nds32-openrisc-simplify-detection-of-memory-extents.patch riscv-drop-unneeded-node-initialization.patch mircoblaze-drop-unneeded-numa-and-sparsemem-initializations.patch memblock-make-for_each_memblock_type-iterator-private.patch memblock-make-memblock_debug-and-related-functionality-private.patch memblock-reduce-number-of-parameters-in-for_each_mem_range.patch arch-mm-replace-for_each_memblock-with-for_each_mem_pfn_range.patch arch-drivers-replace-for_each_membock-with-for_each_mem_range.patch arch-drivers-replace-for_each_membock-with-for_each_mem_range-fix-2.patch x86-setup-simplify-initrd-relocation-and-reservation.patch x86-setup-simplify-reserve_crashkernel.patch memblock-remove-unused-memblock_mem_size.patch memblock-implement-for_each_reserved_mem_region-using-__next_mem_region.patch memblock-use-separate-iterators-for-memory-and-reserved-regions.patch mm-remove-unused-early_pfn_valid.patch mm-add-definition-of-pmd_page_order.patch mmap-make-mlock_future_check-global.patch mm-introduce-memfd_secret-system-call-to-create-secret-memory-areas.patch arch-mm-wire-up-memfd_secret-system-call-were-relevant.patch mm-secretmem-use-pmd-size-pages-to-amortize-direct-map-fragmentation.patch secretmem-test-add-basic-selftest-for-memfd_secret2.patch