From patchwork Tue Nov 1 07:00:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Yingliang X-Patchwork-Id: 13026695 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 BD087C433FE for ; Tue, 1 Nov 2022 07:01:54 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B64D46B0072; Tue, 1 Nov 2022 03:01:53 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B12F56B0073; Tue, 1 Nov 2022 03:01:53 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A01DB6B0074; Tue, 1 Nov 2022 03:01:53 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 9017E6B0072 for ; Tue, 1 Nov 2022 03:01:53 -0400 (EDT) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 54A69160E90 for ; Tue, 1 Nov 2022 07:01:53 +0000 (UTC) X-FDA: 80083978506.03.E60F199 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by imf22.hostedemail.com (Postfix) with ESMTP id 587E1C0002 for ; Tue, 1 Nov 2022 07:01:51 +0000 (UTC) Received: from dggpemm500020.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4N1gtK01skzmVZb; Tue, 1 Nov 2022 15:01:45 +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.31; Tue, 1 Nov 2022 15:01:26 +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.31; Tue, 1 Nov 2022 15:01:26 +0800 From: Yang Yingliang To: CC: , , , , Subject: [PATCH -next] mm/page_reporting: change page_reporting_param_ops to static Date: Tue, 1 Nov 2022 15:00:22 +0800 Message-ID: <20221101070022.1930028-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: dggems702-chm.china.huawei.com (10.3.19.179) To dggpemm500007.china.huawei.com (7.185.36.183) X-CFilter-Loop: Reflected ARC-Authentication-Results: i=1; imf22.hostedemail.com; dkim=none; spf=pass (imf22.hostedemail.com: domain of yangyingliang@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=yangyingliang@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1667286112; a=rsa-sha256; cv=none; b=erfQYliPoxD7lWYIkBjEajJurzNezjbXR7Qptpoca6X9DW/x0KvvMj2IStwAH7Ij+1WQAS ywwYH+tG2qcw11HHJALSvkxDADMPA8StUZduSHSxtj+oyOjij1cGOqBYUXFmW/tM2TIVg0 hO5fCK/rFdTLaM5ZFAsRRpTWypnSljE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1667286112; 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=3UmKnEbSgmYHwK7rYzhbWsqQIcWLxP3wRsaC5uznOUw=; b=6EY3CDmynhytQhFW9EoQoFgA1ncBzf+tbXP/j7vuJZENQmNUhQ2U6GiLD7wLS+ydZW/HId n0CopADEXJ6/2iARVbUiRLqNWL/n0wEmxEGXmXsYpjhzhr3CJmAuKx4etP0kT0Qapc13Su msKpW0AtnQm1qKwgZPMkyf9KBRmyxGU= X-Rspam-User: Authentication-Results: imf22.hostedemail.com; dkim=none; spf=pass (imf22.hostedemail.com: domain of yangyingliang@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=yangyingliang@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com X-Rspamd-Server: rspam07 X-Stat-Signature: 3g3wcbok9q9361sfqsh11cqecdqydgb8 X-Rspamd-Queue-Id: 587E1C0002 X-HE-Tag: 1667286111-172839 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: page_reporting_param_ops is only used in page_reporting.c now, change it to static. Fixes: 443063e483e3 ("mm/page_reporting: Add checks for page_reporting_order param") Signed-off-by: Yang Yingliang --- mm/page_reporting.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/page_reporting.c b/mm/page_reporting.c index 29d67c824fd2..6a8cb3b1ae1b 100644 --- a/mm/page_reporting.c +++ b/mm/page_reporting.c @@ -23,7 +23,7 @@ int page_order_update_notify(const char *val, const struct kernel_param *kp) return param_set_uint_minmax(val, kp, 0, MAX_ORDER-1); } -const struct kernel_param_ops page_reporting_param_ops = { +static const struct kernel_param_ops page_reporting_param_ops = { .set = &page_order_update_notify, /* * For the get op, use param_get_int instead of param_get_uint.