From patchwork Tue Mar 22 21:42:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Morton X-Patchwork-Id: 12789124 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 455F6C433F5 for ; Tue, 22 Mar 2022 21:42:52 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id CDE2B6B00CC; Tue, 22 Mar 2022 17:42:51 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C65886B00CD; Tue, 22 Mar 2022 17:42:51 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B06166B00CE; Tue, 22 Mar 2022 17:42:51 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0023.hostedemail.com [216.40.44.23]) by kanga.kvack.org (Postfix) with ESMTP id 9911F6B00CC for ; Tue, 22 Mar 2022 17:42:51 -0400 (EDT) Received: from smtpin28.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 542BAA0FAD for ; Tue, 22 Mar 2022 21:42:51 +0000 (UTC) X-FDA: 79273347342.28.173934E Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by imf20.hostedemail.com (Postfix) with ESMTP id D2A781C0038 for ; Tue, 22 Mar 2022 21:42:50 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id B3CB2B81DAF; Tue, 22 Mar 2022 21:42:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 69587C340EC; Tue, 22 Mar 2022 21:42:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1647985368; bh=65vsjaCa7K823HTWNhYf+T6ODYlPVC1bXOGpsV6LcrY=; h=Date:To:From:In-Reply-To:Subject:From; b=CGwX50YZDJZgYNuN7CkQRueu6llexKonykLskDYIsgrceEVohXlGUyUJPxf/VqPgF Jw1rQbTaxJkwTstxb66Zn4bQ11ABYjorb314NO9Q2hcZttG4UyXnZvmBnxcGiqAnJK FMHXw45dCB60G7ilTkwU/2Z4xizaYrPW85hUsAzU= Date: Tue, 22 Mar 2022 14:42:47 -0700 To: urezki@gmail.com,linmiaohe@huawei.com,akpm@linux-foundation.org,patches@lists.linux.dev,linux-mm@kvack.org,mm-commits@vger.kernel.org,torvalds@linux-foundation.org,akpm@linux-foundation.org From: Andrew Morton In-Reply-To: <20220322143803.04a5e59a07e48284f196a2f9@linux-foundation.org> Subject: [patch 084/227] mm/vmalloc: remove unneeded function forward declaration Message-Id: <20220322214248.69587C340EC@smtp.kernel.org> X-Stat-Signature: a8n1kwrn4axh9asehuqd95djb6xa37nn Authentication-Results: imf20.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=CGwX50YZ; spf=pass (imf20.hostedemail.com: domain of akpm@linux-foundation.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org; dmarc=none X-Rspam-User: X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: D2A781C0038 X-HE-Tag: 1647985370-60568 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: mm/vmalloc: remove unneeded function forward declaration The forward declaration for lazy_max_pages() is unnecessary. Remove it. Link: https://lkml.kernel.org/r/20220124133752.60663-1-linmiaohe@huawei.com Signed-off-by: Miaohe Lin Cc: Uladzislau Rezki Signed-off-by: Andrew Morton --- mm/vmalloc.c | 1 - 1 file changed, 1 deletion(-) --- a/mm/vmalloc.c~mm-vmalloc-remove-unneeded-function-forward-declaration +++ a/mm/vmalloc.c @@ -791,7 +791,6 @@ RB_DECLARE_CALLBACKS_MAX(static, free_vm static void purge_vmap_area_lazy(void); static BLOCKING_NOTIFIER_HEAD(vmap_notify_list); -static unsigned long lazy_max_pages(void); static atomic_long_t nr_vmalloc_pages;