Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2839163pxk; Tue, 15 Sep 2020 03:50:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwVn5TMSWpjXeodQIW0njmdZVsCubERNf54UyAQLALP5OEHrGcDFk4O0Dwbfp5ufpao89xD X-Received: by 2002:a50:99d6:: with SMTP id n22mr22050261edb.265.1600167044377; Tue, 15 Sep 2020 03:50:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600167044; cv=none; d=google.com; s=arc-20160816; b=izdUwKPwKR/KQ04WTkx15AURyBljBouMaaVha9u0/Cr93OX5ISwdamZytMFRTs5art GEAwFJw5Ao0iEQS1iDuS180swmhv6FqsuYJ9A5wYAhbbnm5+n6+LWvLkhsThiQjfBUaV xPkrNhhISIAzsY7nXUfdZNPqAYfx9DPtGJ6X+D5KdUnNYNpsV0yYHiU7+DhE3Dw84eHV h+ZAdDZfKZ7ijMek2CUcdpqtks0Jmu8TocpdJ4VbmMYwgqAlpw3WzHXOnBOf+jdu2oZj 1ECZz+0i4U5WtqtNjI8gRbe+nOJh5pPSl1OadpkqgJIhT6ooWQlGFwnN8YMZ2Upcge0c x64w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=WpFCUr3RpWkZ5wkfiU8bUMyRV7A+1PWw5+GLjxm7xfE=; b=WZZiR3gWBoO1QPnkuzTz4Gd1znJeQBVjXIdz5GkBHStG9TpD4ypBvanCJvOZPnu9bE rjPBHuZpa4EtnXClsopGSxhq4Y0bF3GZFDbpmb9pr+EBM9IUmychd5Wlzcr+JGWS2GI/ ud89qpzUCcY3vyFt6h2YXnlnEktMRBcdDfu0GiBEXizByO9tYgHksoAxSFib8euMNKWe 1Ru3FEtwih/8QtDYf4BGh6bLEBcjvPZw/iCp83Ts4m3L3AXprUV+FUbmlf7PCORQmdNJ hSscV3HXoRxVnLNsKBesq3N5LV29ZjSIivQZVWbA6GqSyquMQ4laIpE7q+/yOkihRGXc S7Cg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ak11si8745528ejc.554.2020.09.15.03.50.21; Tue, 15 Sep 2020 03:50:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726410AbgIOKsK (ORCPT + 99 others); Tue, 15 Sep 2020 06:48:10 -0400 Received: from mail5.windriver.com ([192.103.53.11]:58096 "EHLO mail5.wrs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726174AbgIOKrg (ORCPT ); Tue, 15 Sep 2020 06:47:36 -0400 Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail5.wrs.com (8.15.2/8.15.2) with ESMTPS id 08FAkQvb029270 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Tue, 15 Sep 2020 03:46:47 -0700 Received: from pek-lpggp1.wrs.com (128.224.153.74) by ALA-HCA.corp.ad.wrs.com (147.11.189.40) with Microsoft SMTP Server id 14.3.487.0; Tue, 15 Sep 2020 03:46:21 -0700 From: To: CC: , Subject: [PATCH] mm/page_alloc.c: variable type of 'progress' should be 'unsigned long' Date: Tue, 15 Sep 2020 18:46:20 +0800 Message-ID: <20200915104620.20582-1-yanfei.xu@windriver.com> X-Mailer: git-send-email 2.18.2 MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yanfei Xu try_to_free_pages returns the number of pages reclaimed, and the type of returns is 'unsigned long'. So we should use a matched type for storing it. Signed-off-by: Yanfei Xu --- mm/page_alloc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index fab5e97dc9ca..5f1016c70b94 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -4245,9 +4245,8 @@ static int __perform_reclaim(gfp_t gfp_mask, unsigned int order, const struct alloc_context *ac) { - int progress; unsigned int noreclaim_flag; - unsigned long pflags; + unsigned long pflags, progress; cond_resched(); -- 2.18.2