Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2936579pxb; Mon, 16 Nov 2020 00:53:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJzNMtf7T60vPsU5ZUh9FscC47hNOBvdfQnobfHsS1fzi9us90ljjTEnFyb3WVyTpFgA/ENz X-Received: by 2002:a17:906:3ec8:: with SMTP id d8mr13840253ejj.32.1605516795089; Mon, 16 Nov 2020 00:53:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605516795; cv=none; d=google.com; s=arc-20160816; b=VjczxFBVJFnzm9URphsfkBh2R82hOTg87Y2vOUXzrejc9/auhmE9s09o7BGxe7cjCc dnyoZpjxX6KLbRLZdzrrD2rKxLXV3ikM3/21iR2jVwRWWe+s68R6bPBFCcQnH1LoNcbN y5zJyBkdxFwtP6crBC1rxeQP4R3VokInHABik/ndihGoGSt+cRJ/hXTidcm12CIn+CVr gYXCFk46qT4G/+nGRWKRRiJSurtPGGkLie5yCD+m6G6SuRV9Ipy8HKDHQEds66S/KGyg FlpOoq46qnctwNA1B9LLAqY2ElK+kMNGmCber6QCYWSSQ6ew6v5C0NHZyJWCpH7yxGkh pcAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=akH7FoIwt5IsImK/BHquD1IpZwllRPYKAncu/wPhfiM=; b=GZ9Jp3jAVvV0mxl14ACVGMEFE1AmbbvfHr+x3CxfCOUgxfrzxmOAVQ9jtHFpk6u56h oCdeVjfiuvYEGHtX3Ic3f9TQSAKAzKZb33QVcQxVmvO1gdlt2w1H+xvdCUHhRq4oOMuM wYP/fAzS5RBH8u8Fdn35Z87rTJAs0fLoBDDTLV4yR93xypW3f2I7QvcXBo7ZdJyBBTbj OSSvLPtoVQkdpCTTFvtEQGbc7qQwkMkY5gmEaBuEWCECUBVSITTnV5DQHGhu2FLLFE8E IwY5k+n4AmJyB1sZKzB7F2yK4I2a9oejSCdqAtyAKkGLZM1oSvb+ZfyfF0iHxmiHEWBc 90JQ== 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 f24si11291248edw.120.2020.11.16.00.52.52; Mon, 16 Nov 2020 00:53:15 -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; 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 S1728140AbgKPIvM (ORCPT + 99 others); Mon, 16 Nov 2020 03:51:12 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:7247 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726172AbgKPIvM (ORCPT ); Mon, 16 Nov 2020 03:51:12 -0500 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4CZN8D1cN6zkY6m; Mon, 16 Nov 2020 16:50:52 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.487.0; Mon, 16 Nov 2020 16:51:00 +0800 From: Zou Wei To: CC: , , Zou Wei Subject: [PATCH -next] mm/page_alloc: Mark some symbols with static keyword Date: Mon, 16 Nov 2020 17:02:45 +0800 Message-ID: <1605517365-65858-1-git-send-email-zou_wei@huawei.com> X-Mailer: git-send-email 2.6.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.103.112] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following sparse warnings: mm/page_alloc.c:3040:6: warning: symbol '__drain_all_pages' was not declared. Should it be static? mm/page_alloc.c:6349:6: warning: symbol '__zone_set_pageset_high_and_batch' was not declared. Should it be static? Signed-off-by: Zou Wei --- mm/page_alloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 63d8d8b..e7548344 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -3037,7 +3037,7 @@ static void drain_local_pages_wq(struct work_struct *work) * that need the guarantee that every CPU has drained can disable the * optimizing racy check. */ -void __drain_all_pages(struct zone *zone, bool force_all_cpus) +static void __drain_all_pages(struct zone *zone, bool force_all_cpus) { int cpu; @@ -6346,7 +6346,7 @@ static void pageset_init(struct per_cpu_pageset *p) pcp->batch = BOOT_PAGESET_BATCH; } -void __zone_set_pageset_high_and_batch(struct zone *zone, unsigned long high, +static void __zone_set_pageset_high_and_batch(struct zone *zone, unsigned long high, unsigned long batch) { struct per_cpu_pageset *p; -- 2.6.2