From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BE1F7C4361B for ; Thu, 17 Dec 2020 02:06:18 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 17CCB23444 for ; Thu, 17 Dec 2020 02:06:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 17CCB23444 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=huawei.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 3B8E16B0036; Wed, 16 Dec 2020 21:06:17 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 369316B005D; Wed, 16 Dec 2020 21:06:17 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2A64C6B0068; Wed, 16 Dec 2020 21:06:17 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0116.hostedemail.com [216.40.44.116]) by kanga.kvack.org (Postfix) with ESMTP id 0FBA56B0036 for ; Wed, 16 Dec 2020 21:06:17 -0500 (EST) Received: from smtpin04.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 8F05A8249980 for ; Thu, 17 Dec 2020 02:06:16 +0000 (UTC) X-FDA: 77601134352.04.flame14_0b1016627431 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin04.hostedemail.com (Postfix) with ESMTP id 701C18005050 for ; Thu, 17 Dec 2020 02:06:16 +0000 (UTC) X-HE-Tag: flame14_0b1016627431 X-Filterd-Recvd-Size: 1948 Received: from szxga05-in.huawei.com (szxga05-in.huawei.com [45.249.212.191]) by imf05.hostedemail.com (Postfix) with ESMTP for ; Thu, 17 Dec 2020 02:06:15 +0000 (UTC) Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4CxFhC6YkdzhnJj; Thu, 17 Dec 2020 10:05:31 +0800 (CST) Received: from huawei.com (10.175.112.227) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.498.0; Thu, 17 Dec 2020 10:06:05 +0800 From: Xiangyang Yu To: CC: , Subject: [PATCH] mm/filemap: Fix warning: no previous prototype Date: Thu, 17 Dec 2020 10:03:11 +0800 Message-ID: <20201217020311.491799-1-yuxiangyang4@huawei.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Originating-IP: [10.175.112.227] X-CFilter-Loop: Reflected Content-Transfer-Encoding: quoted-printable 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: Fixed the warning when building with warnings enabled (W=3D1), This function is only used in filemap.c, so mark this function with 'static'. mm/filemap.c:830:14: warning: no previous prototype for =E2=80=98__add_to= _page_cache_locked=E2=80=99 [-Wmissing-prototypes] Signed-off-by: Xiangyang Yu --- mm/filemap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/filemap.c b/mm/filemap.c index c178022d7893..edaba5251bec 100644 --- a/mm/filemap.c +++ b/mm/filemap.c @@ -827,7 +827,7 @@ int replace_page_cache_page(struct page *old, struct = page *new, gfp_t gfp_mask) } EXPORT_SYMBOL_GPL(replace_page_cache_page); =20 -noinline int __add_to_page_cache_locked(struct page *page, +static noinline int __add_to_page_cache_locked(struct page *page, struct address_space *mapping, pgoff_t offset, gfp_t gfp, void **shadowp) --=20 2.23.0