From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751539AbdCPCDp (ORCPT ); Wed, 15 Mar 2017 22:03:45 -0400 Received: from smtprelay0162.hostedemail.com ([216.40.44.162]:44711 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751077AbdCPCCa (ORCPT ); Wed, 15 Mar 2017 22:02:30 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::,RULES_HIT:41:355:379:541:800:960:966:973:988:989:1260:1345:1359:1437:1534:1542:1711:1730:1747:1777:1792:2196:2198:2199:2200:2393:2559:2562:2731:3138:3139:3140:3141:3142:3353:3865:3867:3868:3871:3872:4385:4605:5007:6119:6261:7903:10004:10848:11026:11658:11914:12043:12296:12438:12555:12895:14096:14181:14394:14721:21080:21433:30054,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:1,LUA_SUMMARY:none X-HE-Tag: judge49_61543c38f214e X-Filterd-Recvd-Size: 2946 From: Joe Perches To: Andrew Morton , linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org Subject: [PATCH 06/15] mm: page_alloc: Use unsigned int instead of unsigned Date: Wed, 15 Mar 2017 19:00:03 -0700 Message-Id: <6608d7178089b48ca4d33cc134ffd86dcdfd0d5d.1489628477.git.joe@perches.com> X-Mailer: git-send-email 2.10.0.rc2.1.g053435c In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It's what's generally desired. Signed-off-by: Joe Perches --- mm/page_alloc.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 2933a8a11927..dca8904bbe2e 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -467,7 +467,7 @@ void set_pageblock_migratetype(struct page *page, int migratetype) static int page_outside_zone_boundaries(struct zone *zone, struct page *page) { int ret = 0; - unsigned seq; + unsigned int seq; unsigned long pfn = page_to_pfn(page); unsigned long sp, start_pfn; @@ -1582,7 +1582,7 @@ void __init page_alloc_init_late(void) /* Free whole pageblock and set its migration type to MIGRATE_CMA. */ void __init init_cma_reserved_pageblock(struct page *page) { - unsigned i = pageblock_nr_pages; + unsigned int i = pageblock_nr_pages; struct page *p = page; do { @@ -3588,7 +3588,7 @@ bool gfp_pfmemalloc_allowed(gfp_t gfp_mask) * Returns true if a retry is viable or false to enter the oom path. */ static inline bool -should_reclaim_retry(gfp_t gfp_mask, unsigned order, +should_reclaim_retry(gfp_t gfp_mask, unsigned int order, struct alloc_context *ac, int alloc_flags, bool did_some_progress, int *no_progress_loops) { @@ -7508,7 +7508,7 @@ static int __alloc_contig_migrate_range(struct compact_control *cc, * need to be freed with free_contig_range(). */ int alloc_contig_range(unsigned long start, unsigned long end, - unsigned migratetype, gfp_t gfp_mask) + unsigned int migratetype, gfp_t gfp_mask) { unsigned long outer_start, outer_end; unsigned int order; @@ -7632,7 +7632,7 @@ int alloc_contig_range(unsigned long start, unsigned long end, return ret; } -void free_contig_range(unsigned long pfn, unsigned nr_pages) +void free_contig_range(unsigned long pfn, unsigned int nr_pages) { unsigned int count = 0; @@ -7653,7 +7653,7 @@ void free_contig_range(unsigned long pfn, unsigned nr_pages) */ void __meminit zone_pcp_update(struct zone *zone) { - unsigned cpu; + unsigned int cpu; mutex_lock(&pcp_batch_high_lock); for_each_possible_cpu(cpu) -- 2.10.0.rc2.1.g053435c