The patch titled Subject: mm-teach-pfn_to_online_page-about-zone_device-section-collisions-fix has been removed from the -mm tree. Its filename was mm-teach-pfn_to_online_page-about-zone_device-section-collisions-fix.patch This patch was dropped because it was folded into mm-teach-pfn_to_online_page-about-zone_device-section-collisions.patch ------------------------------------------------------ From: Dan Williams <dan.j.williams@xxxxxxxxx> Subject: mm-teach-pfn_to_online_page-about-zone_device-section-collisions-fix fix CONFIG_ZONE_DEVICE=n build Link: https://lkml.kernel.org/r/CAPcyv4iX+7LAgAeSqx7Zw-Zd=ZV9gBv8Bo7oTbwCOOqJoZ3+Yg@xxxxxxxxxxxxxx Reported-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/linux/mmzone.h | 12 ++++++++++++ mm/memory_hotplug.c | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) --- a/include/linux/mmzone.h~mm-teach-pfn_to_online_page-about-zone_device-section-collisions-fix +++ a/include/linux/mmzone.h @@ -918,6 +918,18 @@ static inline int local_memory_node(int */ #define zone_idx(zone) ((zone) - (zone)->zone_pgdat->node_zones) +#ifdef CONFIG_ZONE_DEVICE +static inline bool zone_is_zone_device(struct zone *zone) +{ + return zone_idx(zone) == ZONE_DEVICE; +} +#else +static inline bool zone_is_zone_device(struct zone *zone) +{ + return false; +} +#endif + /* * Returns true if a zone has pages managed by the buddy allocator. * All the reclaim decisions have to use this function rather than --- a/mm/memory_hotplug.c~mm-teach-pfn_to_online_page-about-zone_device-section-collisions-fix +++ a/mm/memory_hotplug.c @@ -769,7 +769,7 @@ void __ref move_pfn_range_to_zone(struct * ZONE_DEVICE pages in an otherwise ZONE_{NORMAL,MOVABLE} * section. */ - if (zone_idx(zone) == ZONE_DEVICE) { + if (zone_is_zone_device(zone)) { if (!IS_ALIGNED(start_pfn, PAGES_PER_SECTION)) section_taint_zone_device(start_pfn); if (!IS_ALIGNED(start_pfn + nr_pages, PAGES_PER_SECTION)) _ Patches currently in -mm which might be from dan.j.williams@xxxxxxxxx are mm-move-pfn_to_online_page-out-of-line.patch mm-teach-pfn_to_online_page-to-consider-subsection-validity.patch mm-teach-pfn_to_online_page-about-zone_device-section-collisions.patch mm-fix-memory_failure-handling-of-dax-namespace-metadata.patch