Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1534058pxu; Fri, 27 Nov 2020 09:16:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJzi5QcAqmp+B99hyOW+8o/YKEw25BtOgucGd6v5RHZFDEsYvfl1fhijYl8K4i1PxZOAIto6 X-Received: by 2002:a17:906:4805:: with SMTP id w5mr8893923ejq.378.1606497355942; Fri, 27 Nov 2020 09:15:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606497355; cv=none; d=google.com; s=arc-20160816; b=USS5PgleNcRXtpvUzbGlwrkywcQLqgGnjcwagaZwhZjnditiHOZNHZNkov8eSjfplu ull6VvfL2a5xlYZMpoCdy+40T7n0+SRv7rrD6iwvXfFVyRgQmXa1aLaDeDvHKNZi8bCf X00Kqv8MQoIOGRi1+vXFf5UUuOPSLh4N2oK5oflcVt2bkFbxVI6wsnQ3g4e55WuObuPI 17ROIbpp2yehEhSb3ipOOvg4JkUefHyOUSt8JpyjdTJRW+5kdy9Srb16daSMyoFIHetA LAivogTWr/8IiPz7yPtHw2k1TbWiN81Tp7yNXhXomBrF1KVMTzqaeuFKsEW2Ie/0G50y W2Hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=j/dg7iqnyZFeffqsU8psrnyyvEKjgeSFGbaRf+LRQto=; b=FVT4AD4Ij9uGMS7h9IdiabtL/YjqlIGz/NAoHnVDaZDTwMMpS3QQLj0QL2lDNGhpD0 RpsykRkYYDeq8gHwNlNAeujF+3zXdzpZ7tdZKLDPcFlMU3//79nc0kJK8mn9QK5+wuMI 1uwh48hpzQNIZiwT5QL/47DdoaQ+eYB3icq7LCYW8Ja7HN3/9ymEg8zTZDcqUy5PZBe8 2qDlkigtzd03UDPtSsIcGzVkNfmfOnb524btAyYgxK0gkNXyGX56MCbBNZlXOkCBFliC n7zzzuKtVItMv0KV3hZgsr7V7uGo77DK6kCs11PbKAL8qHJTNfBZcpL/g8nN5H8M+/Jh k+2A== 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 lw7si5574317ejb.149.2020.11.27.09.15.27; Fri, 27 Nov 2020 09:15:55 -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 S1731691AbgK0RN1 (ORCPT + 99 others); Fri, 27 Nov 2020 12:13:27 -0500 Received: from mx2.suse.de ([195.135.220.15]:47566 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731582AbgK0RN1 (ORCPT ); Fri, 27 Nov 2020 12:13:27 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 08897AC0C; Fri, 27 Nov 2020 17:13:26 +0000 (UTC) Subject: Re: [PATCH -next] mm/page_alloc: Mark some symbols with static keyword To: Zou Wei , akpm@linux-foundation.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <1605517365-65858-1-git-send-email-zou_wei@huawei.com> From: Vlastimil Babka Message-ID: <27899673-2d79-2a26-fc66-d2ecce9cb1b3@suse.cz> Date: Fri, 27 Nov 2020 18:13:25 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: <1605517365-65858-1-git-send-email-zou_wei@huawei.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/16/20 10:02 AM, Zou Wei wrote: > 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 Acked-by: Vlastimil Babka > --- > 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; >