From nobody Sun May 5 09:55:19 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail(p=none dis=none) header.from=linux.alibaba.com Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1672129329331163.82977669282138; Tue, 27 Dec 2022 00:22:09 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.469369.728726 (Exim 4.92) (envelope-from ) id 1pA5DL-0003Wt-By; Tue, 27 Dec 2022 08:21:35 +0000 Received: by outflank-mailman (output) from mailman id 469369.728726; Tue, 27 Dec 2022 08:21:35 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1pA5DL-0003Wm-9L; Tue, 27 Dec 2022 08:21:35 +0000 Received: by outflank-mailman (input) for mailman id 469369; Tue, 27 Dec 2022 08:21:34 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1pA5DK-0003Wg-7T for xen-devel@lists.xenproject.org; Tue, 27 Dec 2022 08:21:34 +0000 Received: from out30-1.freemail.mail.aliyun.com (out30-1.freemail.mail.aliyun.com [115.124.30.1]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 755d36ca-85bf-11ed-91b6-6bf2151ebd3b; Tue, 27 Dec 2022 09:21:31 +0100 (CET) Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VYCusZ4_1672129277) by smtp.aliyun-inc.com; Tue, 27 Dec 2022 16:21:25 +0800 X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 755d36ca-85bf-11ed-91b6-6bf2151ebd3b X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R191e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045170;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=12;SR=0;TI=SMTPD_---0VYCusZ4_1672129277; From: Jiapeng Chong To: jgross@suse.com Cc: boris.ostrovsky@oracle.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] x86/xen: Remove the unused function p2m_top_mfn_init() Date: Tue, 27 Dec 2022 16:21:15 +0800 Message-Id: <20221227082115.59000-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1672129332015000001 Content-Type: text/plain; charset="utf-8" The function p2m_top_mfn_init is defined in the p2m.c file, but not called elsewhere, so remove this unused function. arch/x86/xen/p2m.c:137:24: warning: unused function 'p2m_index'. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3D3557 Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- arch/x86/xen/p2m.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/arch/x86/xen/p2m.c b/arch/x86/xen/p2m.c index 58db86f7b384..9bdc3b656b2c 100644 --- a/arch/x86/xen/p2m.c +++ b/arch/x86/xen/p2m.c @@ -134,11 +134,6 @@ static inline unsigned p2m_mid_index(unsigned long pfn) return (pfn / P2M_PER_PAGE) % P2M_MID_PER_PAGE; } =20 -static inline unsigned p2m_index(unsigned long pfn) -{ - return pfn % P2M_PER_PAGE; -} - static void p2m_top_mfn_init(unsigned long *top) { unsigned i; --=20 2.20.1.7.g153144c