From patchwork Thu Sep 2 21:54:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Morton X-Patchwork-Id: 12472991 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=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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 171ADC433F5 for ; Thu, 2 Sep 2021 21:54:15 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id D4E68610D2 for ; Thu, 2 Sep 2021 21:54:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org D4E68610D2 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id 6A72A6B00C5; Thu, 2 Sep 2021 17:54:14 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 654C38D0001; Thu, 2 Sep 2021 17:54:14 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 543736B00C7; Thu, 2 Sep 2021 17:54:14 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0039.hostedemail.com [216.40.44.39]) by kanga.kvack.org (Postfix) with ESMTP id 412346B00C5 for ; Thu, 2 Sep 2021 17:54:14 -0400 (EDT) Received: from smtpin32.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 080302C6B4 for ; Thu, 2 Sep 2021 21:54:14 +0000 (UTC) X-FDA: 78543987228.32.787FE38 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf27.hostedemail.com (Postfix) with ESMTP id AFEAD7000081 for ; Thu, 2 Sep 2021 21:54:13 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id BE57F610A2; Thu, 2 Sep 2021 21:54:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1630619653; bh=nDszfdZqRik/105UzHA3/WN0RkvdX966+iw/nlkM810=; h=Date:From:To:Subject:In-Reply-To:From; b=Zo3bOz9mVMKpj56O25yvqw+6ab3Pb3Kee0VeiytKbyGqkOAL/u/0wVRL3fUwdskoZ gi/f8yaw14SoPAVsi7Gdz/+030iqijZntZgVAriOyJqbOsMs5X0N6WakXFu7ZEuy1Q V24WjBAjRoNxoS+5B55r+/AUmkjojXbI0HY+XMgs= Date: Thu, 02 Sep 2021 14:54:12 -0700 From: Andrew Morton To: akpm@linux-foundation.org, hughd@google.com, linmiaohe@huawei.com, linux-mm@kvack.org, mm-commits@vger.kernel.org, torvalds@linux-foundation.org Subject: [patch 081/212] shmem: remove unneeded function forward declaration Message-ID: <20210902215412.EATI8TEIM%akpm@linux-foundation.org> In-Reply-To: <20210902144820.78957dff93d7bea620d55a89@linux-foundation.org> User-Agent: s-nail v14.8.16 X-Rspamd-Queue-Id: AFEAD7000081 Authentication-Results: imf27.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=Zo3bOz9m; dmarc=none; spf=pass (imf27.hostedemail.com: domain of akpm@linux-foundation.org designates 198.145.29.99 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org X-Rspamd-Server: rspam01 X-Stat-Signature: 51giourj83c46q9ry3d5ihd7hga6xyrp X-HE-Tag: 1630619653-167662 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: From: Miaohe Lin Subject: shmem: remove unneeded function forward declaration The forward declaration for shmem_should_replace_page() and shmem_replace_page() is unnecessary. Remove them. Link: https://lkml.kernel.org/r/20210812120350.49801-4-linmiaohe@huawei.com Signed-off-by: Miaohe Lin Cc: Hugh Dickins Signed-off-by: Andrew Morton --- mm/shmem.c | 3 --- 1 file changed, 3 deletions(-) --- a/mm/shmem.c~shmem-remove-unneeded-function-forward-declaration +++ a/mm/shmem.c @@ -135,9 +135,6 @@ static unsigned long shmem_default_max_i } #endif -static bool shmem_should_replace_page(struct page *page, gfp_t gfp); -static int shmem_replace_page(struct page **pagep, gfp_t gfp, - struct shmem_inode_info *info, pgoff_t index); static int shmem_swapin_page(struct inode *inode, pgoff_t index, struct page **pagep, enum sgp_type sgp, gfp_t gfp, struct vm_area_struct *vma,