Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp32831pxk; Tue, 15 Sep 2020 19:24:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzRaE54PpnxURJR1dZk4K/Q4zLamm02R/Jq/Gbw93JdBVrr4FLUss636P3GP8CqEIZYAjKf X-Received: by 2002:a50:abc3:: with SMTP id u61mr24649701edc.129.1600223054515; Tue, 15 Sep 2020 19:24:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600223054; cv=none; d=google.com; s=arc-20160816; b=v1XxCzSseiMLhdf1+vqA+vMgaPHFUMHBZdTwEzmFtEf1F8ASqpVZ2V1kPoNFRP3PJR clQ/VNAYvjv/9hbqAt7Jh6EvfsoILVZVC0di0QxsARdRtpppzP/S+EHx5lPdfUiwxre9 wcuEfh6l8gpUuqGlx3+7mvex1RZ8BZsDCgetGpz3eZuJooOyXo/I4YZ/z5bv7Wu2xPZn ppI2xyurq2u3YqW2cJ28jJlp9N3qWvIReeh77GrRFvrqNSrfNndeAHEJReMpZHEqhsCD voX7qY+hGPnq6yi8xbDuC29NCMKC3rYl6V9adlhZ0xY8voLr/N1GD7SLHl/aCKcaM1rx 80LQ== 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=/DpfcSQZMDrRVUkg/YpOBTnUypaRhrapfy7aG+ZOib4=; b=e0PrpbAS90nv1sn8+OHh0a1v3c7nM9WTGie7vDma7E+9fKZR73iUxeKoO0ogiVi55H gNMVTzJumcxBqeRKKbrtpkh0WHbZWUvIUf5rc9VAxYZUTu/oQvgyubkzVLv43DNkZjjJ NgvGGeAwhRJZTMMfRut7MZHbRoGcBNJAfiBbuwTehD7xv6bty4S1nbzouJCT/Vg7LqHI WNIVc3R4WzSXUDZyY6SMwFRZpBEGYLaH7GFzHw6nIWpCtPy8VKg0EadFAWnHDWLonizo ZsrnLW8n5H+iw98PIBkffdBdx4w441ZRJ7Dy+53PB87a3mJzGnC6kuiecvFc1ArVFW5m wEwA== 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 g22si10862690ejj.443.2020.09.15.19.23.52; Tue, 15 Sep 2020 19:24:14 -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 S1726332AbgIPCXB (ORCPT + 99 others); Tue, 15 Sep 2020 22:23:01 -0400 Received: from mail5.windriver.com ([192.103.53.11]:43174 "EHLO mail5.wrs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726276AbgIPCW6 (ORCPT ); Tue, 15 Sep 2020 22:22:58 -0400 Received: from ALA-HCB.corp.ad.wrs.com (ala-hcb.corp.ad.wrs.com [147.11.189.41]) by mail5.wrs.com (8.15.2/8.15.2) with ESMTPS id 08G2M38i027889 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Tue, 15 Sep 2020 19:22:13 -0700 Received: from pek-lpggp1.wrs.com (128.224.153.74) by ALA-HCB.corp.ad.wrs.com (147.11.189.41) with Microsoft SMTP Server id 14.3.487.0; Tue, 15 Sep 2020 19:21:40 -0700 From: To: CC: , Subject: [PATCH v2] mm/page_alloc.c: __perform_reclaim should return 'unsigned long' Date: Wed, 16 Sep 2020 10:21:38 +0800 Message-ID: <20200916022138.16740-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 __perform_reclaim()'s single caller expects it to return 'unsigned long', hence change its return value and a local variable to 'unsigned long'. Signed-off-by: Yanfei Xu Suggested-by: Andrew Morton --- mm/page_alloc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index fab5e97dc9ca..9c985b0c316c 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -4241,13 +4241,12 @@ EXPORT_SYMBOL_GPL(fs_reclaim_release); #endif /* Perform direct synchronous page reclaim */ -static int +static unsigned long __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