[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20180212164543.26592-1-pasha.tatashin@oracle.com>
Date: Mon, 12 Feb 2018 11:45:43 -0500
From: Pavel Tatashin <pasha.tatashin@...cle.com>
To: steven.sistare@...cle.com, daniel.m.jordan@...cle.com,
pasha.tatashin@...cle.com, m.mizuma@...fujitsu.com,
akpm@...ux-foundation.org, mhocko@...e.com,
catalin.marinas@....com, takahiro.akashi@...aro.org,
gi-oh.kim@...fitbricks.com, heiko.carstens@...ibm.com,
baiyaowei@...s.chinamobile.com, richard.weiyang@...il.com,
paul.burton@...s.com, miles.chen@...iatek.com, vbabka@...e.cz,
mgorman@...e.de, hannes@...xchg.org, linux-kernel@...r.kernel.org,
linux-mm@...ck.org
Subject: mm-initialize-pages-on-demand-during-boot-fix2
fixes types mismatch warning reported by kbuild
Signed-off-by: Pavel Tatashin <pasha.tatashin@...cle.com>
---
mm/page_alloc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index b310a0587c3b..5a45255e3aa0 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -6354,8 +6354,8 @@ void __paginginit free_area_init_node(int nid, unsigned long *zones_size,
* We start only with one section of pages, more pages are added as
* needed until the rest of deferred pages are initialized.
*/
- pgdat->static_init_pgcnt = min(PAGES_PER_SECTION,
- pgdat->node_spanned_pages);
+ pgdat->static_init_pgcnt = min_t(unsigned long, PAGES_PER_SECTION,
+ pgdat->node_spanned_pages);
pgdat->first_deferred_pfn = ULONG_MAX;
#endif
free_area_init_core(pgdat);
--
2.16.1
Powered by blists - more mailing lists