Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1480809pxu; Thu, 17 Dec 2020 10:57:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJwC9izRByuXvLJjMEbQyMjy06PPolRrbgsyYjsts/Wvq0H+e0RotB050iH+Dp0KDlKRbSXu X-Received: by 2002:a05:6402:95c:: with SMTP id h28mr816447edz.26.1608231420649; Thu, 17 Dec 2020 10:57:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608231420; cv=none; d=google.com; s=arc-20160816; b=NE0N4oyMZwUF8GKo0A8P4ShapX8V/7onCk2ELqrr78xsjpOE+KeBphhkzOS8pXjm74 gfPSKVeCch6JmGYqp7dqc7b8bhGYH2V4HTjYloSQry5lQU6MkJvSyMa0tUJHaNtDJYZb kWymgb+SZWYaI193j7wqP7qz/LVsFx+mwfF9I2dBvRqUnrJJvlf3OvYeaHfY4CEX9dWV tAkvYehthtd03xev298/kuNuv9qZbCeKWdtFpYcN+XbyrywMH74/+YrqjRtdVaZovhDw f/ZxbJ5OSvGHLBYSihWcL+RNEIgiQ78ajbrU2g+n7/dek3N8XNY/18zsUPDyy8demgcN I3FA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=Q+nZQmLz+g6ZtD9UXQKwPL3A91wbKfX5nZj6XsBF5oE=; b=VFiDZ6Nno7W3iRFL4oaD7dQXOmqGuIo7Wjy8t/sDVKP7VpMt1jvUhZDKV+KfV8JCf/ mzw1xaw3K2QltIp29Wlr7aXiddUoeJyQ8wN6O1WjsV/zEDrZPu9jQIw9ISDHOWh4n6Xz EqqC7ie+0J60XJOxerZQIomxQvAVZdT691CjkNDcZS0ttJwi0foQbbuEGum22nN1GZAP L5A/A9nkyDMiGY7dca8m62/eUasRsKPHUo5IXadhW1kXybjNTxSTFrdxMYPqn9b2dJE7 hDNKCR+UkU6jMatlfLTOSiWCZGrm9yZCF5oBY6ps7/RtsGDvwhbICuppWLh+wKVKyvz7 EcqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@soleen.com header.s=google header.b=JO8qsADG; 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 e21si4782102edv.260.2020.12.17.10.56.37; Thu, 17 Dec 2020 10:57:00 -0800 (PST) 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; dkim=pass header.i=@soleen.com header.s=google header.b=JO8qsADG; 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 S1731357AbgLQSyx (ORCPT + 99 others); Thu, 17 Dec 2020 13:54:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731127AbgLQSyu (ORCPT ); Thu, 17 Dec 2020 13:54:50 -0500 Received: from mail-qt1-x82a.google.com (mail-qt1-x82a.google.com [IPv6:2607:f8b0:4864:20::82a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E091C0619D7 for ; Thu, 17 Dec 2020 10:53:00 -0800 (PST) Received: by mail-qt1-x82a.google.com with SMTP id j26so20697634qtq.8 for ; Thu, 17 Dec 2020 10:53:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=soleen.com; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=Q+nZQmLz+g6ZtD9UXQKwPL3A91wbKfX5nZj6XsBF5oE=; b=JO8qsADGPR4ZcKb3Gq+FKSW5aYA37eOaMrDgEiIcr5jzVShlVNKWtFcFGT0Tx3cMaS wJK8H4/qkQAa91lkrvvrvVhvqvRTRrc0cXVG9prRf5eIUUOYkeXykED77uULERb3qi2S aKhixRDGpTBTfOPxg4C7w3zrkZQYLiR0+RfMBR9kTP4vmjFrTmFN0H68z77PVURftvfT 6zQWCURQR4W0gXHv3MUmiWL1LHTDZS/ikTWgkKkSVoypuey03I/hMAH2KRRKKfVV10dc iOwzTWGWVjztOR2Vx36yAmOnyLwBGqiXBWiq0B7YE4kuUgcKm865e7wWGRPqfZEu1nu8 aVxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Q+nZQmLz+g6ZtD9UXQKwPL3A91wbKfX5nZj6XsBF5oE=; b=RL6V5Wse2i3QjqcVPaE0GOPccCZWzoWlowCXvRdYMtCYqu/Q3T0Toy1RrwX/5hYaSB TYNNnLlieJJ0hrfLVX4YTljPvatDiv+dat6shkjhNEgUGbqRi5SMA5uiMROo7cQAMU9F CB5rq1oG84Ow0J+tD4754UstVUhA+DK9FTWnpoLn+iggEoBkdCYDGCDhPnJCA8Io09nt WzxVjwYnyEhdvAWLdmPFKQDXkftoIc4MBvEF7g8JLYfhpZXWvHTrxBEIB50ek4ipORIF aPH0yjdfc/1+4gCAaEZ7AS/JfMZrFPfHtQxayHkOe2/RnFOQzm3XZy+xb0YBg6U09CLv M8fA== X-Gm-Message-State: AOAM531uR4O4czb5YmSdprFToXr9k+G+HGurnYiOP8IPmipXJ6p0Nawy 6SMdUufnwrqn6ex8QkSi59BJsQ== X-Received: by 2002:aed:33a1:: with SMTP id v30mr196167qtd.50.1608231179869; Thu, 17 Dec 2020 10:52:59 -0800 (PST) Received: from localhost.localdomain (c-73-69-118-222.hsd1.nh.comcast.net. [73.69.118.222]) by smtp.gmail.com with ESMTPSA id m8sm4127434qkn.41.2020.12.17.10.52.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Dec 2020 10:52:59 -0800 (PST) From: Pavel Tatashin To: pasha.tatashin@soleen.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, akpm@linux-foundation.org, vbabka@suse.cz, mhocko@suse.com, david@redhat.com, osalvador@suse.de, dan.j.williams@intel.com, sashal@kernel.org, tyhicks@linux.microsoft.com, iamjoonsoo.kim@lge.com, mike.kravetz@oracle.com, rostedt@goodmis.org, mingo@redhat.com, jgg@ziepe.ca, peterz@infradead.org, mgorman@suse.de, willy@infradead.org, rientjes@google.com, jhubbard@nvidia.com, linux-doc@vger.kernel.org, ira.weiny@intel.com, linux-kselftest@vger.kernel.org Subject: [PATCH v4 07/10] mm/gup: change index type to long as it counts pages Date: Thu, 17 Dec 2020 13:52:40 -0500 Message-Id: <20201217185243.3288048-8-pasha.tatashin@soleen.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201217185243.3288048-1-pasha.tatashin@soleen.com> References: <20201217185243.3288048-1-pasha.tatashin@soleen.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In __get_user_pages_locked() i counts number of pages which should be long. Signed-off-by: Pavel Tatashin --- mm/gup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/gup.c b/mm/gup.c index 591d8e2dfc70..1ebb7cc2fbe4 100644 --- a/mm/gup.c +++ b/mm/gup.c @@ -1481,7 +1481,7 @@ static long __get_user_pages_locked(struct mm_struct *mm, unsigned long start, { struct vm_area_struct *vma; unsigned long vm_flags; - int i; + long i; /* calculate required read or write permissions. * If FOLL_FORCE is set, we only require the "MAY" flags. -- 2.25.1