From patchwork Sat Sep 17 12:12:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Yingliang X-Patchwork-Id: 12979147 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 1EC22C54EE9 for ; Sat, 17 Sep 2022 12:05:32 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 70DF28D0002; Sat, 17 Sep 2022 08:05:32 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 6BCDF8D0001; Sat, 17 Sep 2022 08:05:32 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5AB868D0002; Sat, 17 Sep 2022 08:05:32 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 49C2A8D0001 for ; Sat, 17 Sep 2022 08:05:32 -0400 (EDT) Received: from smtpin18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 1A412160BC9 for ; Sat, 17 Sep 2022 12:05:32 +0000 (UTC) X-FDA: 79921447704.18.33A6F5B Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by imf11.hostedemail.com (Postfix) with ESMTP id 43CF8400A3 for ; Sat, 17 Sep 2022 12:05:30 +0000 (UTC) Received: from dggpemm500020.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4MV8fm4YVVzlVwB; Sat, 17 Sep 2022 20:01:20 +0800 (CST) Received: from dggpemm500007.china.huawei.com (7.185.36.183) by dggpemm500020.china.huawei.com (7.185.36.49) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Sat, 17 Sep 2022 20:05:22 +0800 Received: from huawei.com (10.175.103.91) by dggpemm500007.china.huawei.com (7.185.36.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Sat, 17 Sep 2022 20:05:22 +0800 From: Yang Yingliang To: , CC: , , Subject: [PATCH -next] mm/damon: change damon_lru_sort_stub_pattern to static Date: Sat, 17 Sep 2022 20:12:28 +0800 Message-ID: <20220917121228.1889699-1-yangyingliang@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.175.103.91] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpemm500007.china.huawei.com (7.185.36.183) X-CFilter-Loop: Reflected ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1663416331; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references; bh=sy4UZYW1GCGC3oPSJ9zX/VQfw6+W38xuiRsOVyE7o3A=; b=xrw2HBmj9YEh0ICitlKDu5p+C4Fl9mTw08oCa2Y4tczGjnNk+Dz+/XYwpEGF567uJOeGdW ooBl5yCNiecyAiZcXnNFCGFFpGUi+Eb7yzJWXuwi0XjsRMNXqqYc6XX6pBzjKQ/A6MAQ0S dTWGT0prjjHaoo0m8nInHgsnsziGv3s= ARC-Authentication-Results: i=1; imf11.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf11.hostedemail.com: domain of yangyingliang@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=yangyingliang@huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1663416331; a=rsa-sha256; cv=none; b=H4MfqWekDFAXCtWVBXrWUEcN+ME+xkAUrbQMGN5Vi9DsaF92HDcuMgx0gk/d6Fu6a3CLWZ i3uyCzZkrCXGkQbGRgOJ1IlyOXqunzyO10ahPpDKNzf+zzjevtDqVJ4uBAAhbDpN/bthlL SOlKUy8gvGVHZKqY3BeW7Vr+SYajKgM= X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 43CF8400A3 X-Rspam-User: Authentication-Results: imf11.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf11.hostedemail.com: domain of yangyingliang@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=yangyingliang@huawei.com X-Stat-Signature: w88nk853fy5hgxjmjihaj87er1b1u1z9 X-HE-Tag: 1663416330-152354 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: damon_lru_sort_stub_pattern is only used in lru_sort.c now, change it to static. Fixes: 27812ec2a990 ("mm/damon: simplify scheme create in lru_sort.c") Signed-off-by: Yang Yingliang --- mm/damon/lru_sort.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/damon/lru_sort.c b/mm/damon/lru_sort.c index abfaf471e3e9..4a40054ba03b 100644 --- a/mm/damon/lru_sort.c +++ b/mm/damon/lru_sort.c @@ -132,7 +132,7 @@ DEFINE_DAMON_MODULES_DAMOS_STATS_PARAMS(damon_lru_sort_cold_stat, lru_sort_tried_cold_regions, lru_sorted_cold_regions, cold_quota_exceeds); -struct damos_access_pattern damon_lru_sort_stub_pattern = { +static struct damos_access_pattern damon_lru_sort_stub_pattern = { /* Find regions having PAGE_SIZE or larger size */ .min_sz_region = PAGE_SIZE, .max_sz_region = ULONG_MAX,