vmscan: Fix enum conversion warning
authorStricted <info@stricted.net>
Sat, 19 Jun 2021 22:48:54 +0000 (22:48 +0000)
committerNolen Johnson <johnsonnolen@gmail.com>
Tue, 21 Dec 2021 18:35:24 +0000 (13:35 -0500)
Change-Id: Ib06e0e5ec2660eb63c14c5e4ad2b5d8bb2261467

mm/vmscan.c

index 33b88cc838dad3e284e73c0b42d86e3cfe66228a..2cee014f2a050a2d7eea2fbbff79313c6e32a282 100644 (file)
@@ -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;