From bcf948746b4e6eb10d5823a2533257eba801f73b Mon Sep 17 00:00:00 2001 From: Hugh Dickins Date: Thu, 22 Oct 2015 09:03:30 +1100 Subject: [PATCH] mm: use unsigned int for page order fix 2 Some configs now end up with MAX_ORDER and pageblock_order having different types: silence compiler warning in __free_one_page(). Signed-off-by: Hugh Dickins Cc: "Kirill A. Shutemov" Signed-off-by: Andrew Morton --- mm/page_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 239700bc75c6..94bb8a0bfcda 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -675,7 +675,7 @@ static inline void __free_one_page(struct page *page, * pageblock. Without this, pageblock isolation * could cause incorrect freepage accounting. */ - max_order = min(MAX_ORDER, pageblock_order + 1); + max_order = min_t(unsigned int, MAX_ORDER, pageblock_order + 1); } else { __mod_zone_freepage_state(zone, 1 << order, migratetype); } -- 2.39.5