From patchwork Thu Nov 25 19:43:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yixuan Cao X-Patchwork-Id: 12639777 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id A6857C433EF for ; Thu, 25 Nov 2021 19:44:16 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 181096B0074; Thu, 25 Nov 2021 14:44:01 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 131286B0075; Thu, 25 Nov 2021 14:44:01 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id F3B4E6B0078; Thu, 25 Nov 2021 14:44:00 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0049.hostedemail.com [216.40.44.49]) by kanga.kvack.org (Postfix) with ESMTP id E15D76B0074 for ; Thu, 25 Nov 2021 14:44:00 -0500 (EST) Received: from smtpin30.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 70D718C59B for ; Thu, 25 Nov 2021 19:43:50 +0000 (UTC) X-FDA: 78848477820.30.96425D7 Received: from smtpbgbr2.qq.com (smtpbgbr2.qq.com [54.207.22.56]) by imf02.hostedemail.com (Postfix) with ESMTP id 9F31D7001702 for ; Thu, 25 Nov 2021 19:43:44 +0000 (UTC) X-QQ-mid: bizesmtp37t1637869414t7flocso Received: from localhost.localdomain.localdoma (unknown [58.251.166.36]) by esmtp6.qq.com (ESMTP) with id ; Fri, 26 Nov 2021 03:43:07 +0800 (CST) X-QQ-SSF: 01400000000000C0L000000A0000000 X-QQ-FEAT: Z953UCsBqO6+dtTTTmi9q2ZVeyylH6u5hmnaaeanX/IkKg0BSByxCXu2XDwOe fiaPyEFbvuw2u/KbsO9yP/MrKDmRYVipBT80HfOnS16InuAhubgCkG5bV12O402mxNaHV3j XPtkahN8msXdqlbTlVMadrTTRkXri9zdjcV/Wge7RN+IloN9JK72u4mknypAzPUNcw9W0xf HkxwKwOMoMgAmMLCVz9bhiD+cZXWdaX3Fiyh9oELgyJ3VeC9T/48FOTr2xbj5D1R1mqRwx7 wvFqeE8eE0fxlG3hF+Z9r5h2cr+9ufBdiqtbMFu6EgBEI+0pn3s8D30mev5PkKENGOlsk0a c7KU19J8F46VSz44Qea8Q90e8HlfA== X-QQ-GoodBg: 2 From: Yixuan Cao To: akpm@linux-foundation.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Yixuan Cao Subject: [PATCH] mm: fix the type of a parameter Date: Fri, 26 Nov 2021 03:43:01 +0800 Message-Id: <20211125194301.19244-1-caoyixuan2019@email.szu.edu.cn> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:email.szu.edu.cn:qybgforeign:qybgforeign7 X-QQ-Bgrelay: 1 X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: 9F31D7001702 X-Stat-Signature: ftf1ssoiebndzejijyfzxapyn5w3md7m Authentication-Results: imf02.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=email.szu.edu.cn; spf=pass (imf02.hostedemail.com: domain of caoyixuan2019@email.szu.edu.cn designates 54.207.22.56 as permitted sender) smtp.mailfrom=caoyixuan2019@email.szu.edu.cn X-HE-Tag: 1637869424-303810 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: The type of "last_migrate_reason" in struct page_owner is short. However, the type of "reason" in the argument list of function __set_page_owner_migrate_reason is int, which is inconsistent. Signed-off-by: Yixuan Cao --- mm/page_owner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/page_owner.c b/mm/page_owner.c index 4f924957ce7a..4c23e910caf9 100644 --- a/mm/page_owner.c +++ b/mm/page_owner.c @@ -182,7 +182,7 @@ noinline void __set_page_owner(struct page *page, unsigned short order, __set_page_owner_handle(page_ext, handle, order, gfp_mask); } -void __set_page_owner_migrate_reason(struct page *page, int reason) +void __set_page_owner_migrate_reason(struct page *page, short reason) { struct page_ext *page_ext = lookup_page_ext(page); struct page_owner *page_owner;