diff --git a/mm/page_alloc.c b/mm/page_alloc.c index c055b4cd37f01084f0714744d0495a199ea562b0..ec865cfd0c3a75d553ee91052f0eb94c7c8efcee 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -6881,7 +6881,7 @@ void __ref memmap_init_zone_device(struct zone *zone, unsigned long start = jiffies; int nid = pgdat->node_id; - if (WARN_ON_ONCE(!pgmap || zone_idx(zone) != ZONE_DEVICE)) + if (WARN_ON_ONCE(!pgmap || zone_idx != ZONE_DEVICE)) return; /*