Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp581945rwl; Thu, 5 Jan 2023 01:23:17 -0800 (PST) X-Google-Smtp-Source: AMrXdXubf5g59eQLQYp/SCSGzEoZHOorAGzw9H68YssyMoFDkpiW8KwRURYMnCEY/dy3shBhTGJ/ X-Received: by 2002:a17:902:768c:b0:189:e360:ce5 with SMTP id m12-20020a170902768c00b00189e3600ce5mr66202418pll.12.1672910596838; Thu, 05 Jan 2023 01:23:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672910596; cv=none; d=google.com; s=arc-20160816; b=z8/fVXdn4Fn+DGv8cstTXp7K8dMSX6ZXTvU9KB84bs2mI5I2JbyW1IFMX98fVRjdgj y6LrCXkAbLhpcmXsslkKvTa1XRYqSt7rZLc3IbLt8fHYhYw/k2u1L5oJvvsVWPKuihVj hFWJdMrM7o9qUgOY7Cw6mvfKxao0v06bee1EpWUdGmA7SWJcjgJRz44Dxn1IECYjsSdc +3t83379W6DRGVYW+O7UABb77+4IzfCKucdRvmDW9vul4yymU/TgwfD6VDOzJ1TnhBxV FiBKoc1J02eP6es/uJ1XgFUk+yxpwy6k6HXAkmaU1IPlt/2fp6MvQSFptDaX01RguakR 0QsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=mivGveVO7EPKyYl6Q2SweaQjHH0EbHxB84q3vGH4pq4=; b=b8TBqOIyKvV8Qz1gtXgiwcR16tDi8w3FFDGoSbqA5hOBHpfv7JPmNIKld1Fdk8l3w3 6cr01Yvr1tUmK/ncC7sJDLcvMJkxvDlsFJUlpS9z6MnqzNipvNYUOixPNDH2rE/LsCbK vfYjBHJnQdky2PdMH4STvaNoXiU+h9lbGygtJmEnC89t/LoPoWWc+hPImAN5xCEsxaOe k9ZxzFWXwsvCeASlwwBd+NBVw1WCZ8NohtV88/DcfftMZ6mV8c+mzjgQK6kDPIyeb5Tu JfPHWNaLgVNtjIAOwtMfHZp9RqU9AQaGb/qS48sesLUW3vpqorBFpenOMafK4X1SJsIw yhEg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jj7-20020a170903048700b00186ed93fc75si35188090plb.204.2023.01.05.01.23.09; Thu, 05 Jan 2023 01:23:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231736AbjAEJB6 (ORCPT + 55 others); Thu, 5 Jan 2023 04:01:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231674AbjAEJB4 (ORCPT ); Thu, 5 Jan 2023 04:01:56 -0500 Received: from out30-44.freemail.mail.aliyun.com (out30-44.freemail.mail.aliyun.com [115.124.30.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1836350068 for ; Thu, 5 Jan 2023 01:01:54 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R231e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046050;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=12;SR=0;TI=SMTPD_---0VYvE98r_1672909303; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VYvE98r_1672909303) by smtp.aliyun-inc.com; Thu, 05 Jan 2023 17:01:51 +0800 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 v2] x86/xen: Remove the unused function p2m_index() Date: Thu, 5 Jan 2023 17:01:41 +0800 Message-Id: <20230105090141.36248-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The function p2m_index 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=3557 Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- Changes in v2: -Modify title and submission. 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; } -static inline unsigned p2m_index(unsigned long pfn) -{ - return pfn % P2M_PER_PAGE; -} - static void p2m_top_mfn_init(unsigned long *top) { unsigned i; -- 2.20.1.7.g153144c