From 37d299e4f259ecc3eb67b817289b06e5f102ac08 Mon Sep 17 00:00:00 2001 From: Stricted Date: Sat, 19 Jun 2021 22:48:54 +0000 Subject: [PATCH] vmscan: Fix enum conversion warning Change-Id: Ib06e0e5ec2660eb63c14c5e4ad2b5d8bb2261467 --- mm/vmscan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/vmscan.c b/mm/vmscan.c index 33b88cc838da..2cee014f2a05 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -1685,7 +1685,7 @@ static int too_many_isolated(struct pglist_data *pgdat, int file, } #ifdef CONFIG_AMLOGIC_CMA - isolated -= node_page_state(pgdat, NR_CMA_ISOLATED); + isolated -= node_page_state(pgdat, (enum node_stat_item)NR_CMA_ISOLATED); #endif /* CONFIG_AMLOGIC_CMA */ /* * GFP_NOIO/GFP_NOFS callers are allowed to isolate more pages, so they @@ -1699,7 +1699,7 @@ static int too_many_isolated(struct pglist_data *pgdat, int file, #ifdef CONFIG_AMLOGIC_CMA WARN_ONCE(isolated > inactive, "isolated:%ld, cma:%ld, inactive:%ld, mask:%x, file:%d\n", - isolated, node_page_state(pgdat, NR_CMA_ISOLATED), + isolated, node_page_state(pgdat, (enum node_stat_item)NR_CMA_ISOLATED), inactive, sc->gfp_mask, file); #endif /* CONFIG_AMLOGIC_CMA */ return isolated > inactive; -- 2.20.1